In order to successfully compile kpm, the following is needed:
A Linux operating system based on kernel 2.0 or higher. kpm uses Linux's /proc filesystem. (Unfortunately, kpm is not portable to other systems, because every UNIX system has it's own way of gathering process information.)