cd src && make all make[1]: Entering directory '/build/cpulimit/src/cpulimit-0.2/src' cc -c list.c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto cc -c process_iterator.c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto cc -c process_group.c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto process_group.c: In function ‘find_process_by_name’: process_group.c:64:29: warning: implicit declaration of function ‘basename’ [-Wimplicit-function-declaration] 64 | if (strncmp(basename(proc.command), process_name, strlen(process_name))==0 && kill(pid,SIGCONT)==0) { | ^~~~~~~~ process_group.c:64:29: warning: passing argument 1 of ‘strncmp’ makes pointer from integer without a cast [-Wint-conversion] 64 | if (strncmp(basename(proc.command), process_name, strlen(process_name))==0 && kill(pid,SIGCONT)==0) { | ^~~~~~~~~~~~~~~~~~~~~~ | | | int In file included from process_group.c:22: /usr/include/string.h:159:33: note: expected ‘const char *’ but argument is of type ‘int’ 159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | ~~~~~~~~~~~~^~~~ cc -o cpulimit cpulimit.c list.o process_iterator.o process_group.o -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto cpulimit.c:41:10: fatal error: sys/sysctl.h: No such file or directory 41 | #include | ^~~~~~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:15: cpulimit] Error 1 make[1]: Leaving directory '/build/cpulimit/src/cpulimit-0.2/src' make: *** [Makefile:4: all] Error 2 ==> ERROR:(B A failure occurred in build().(B  Aborting...(B