cc -pthread -Wall -Wextra -Werror=implicit-function-declaration tcsetpgrp-zombie.c -o tcsetpgrp-zombie -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv relibc getrlimit(3, 0x7ffffffffc80): not implemented relibc getrlimit(3, 0x7ffffffffba0): not implemented relibc getrlimit(9, 0x7ffffffffb60): not implemented relibc getrlimit(9, 0x7ffffffffb90): not implemented relibc getrlimit(5, 0x7ffffffffb90): not implemented relibc getrlimit(9, 0x7ffffffffb60): not implemented tcsetpgrp-zombie.c: In function ‘main’: tcsetpgrp-zombie.c:44:22: error: implicit declaration of function ‘waitid’; did you mean ‘waitpid’? [-Werror=implicit-function-declaration] 44 | if ( waitid(P_PID, zombie, &info, WNOWAIT | WEXITED) < 0 ) | ^~~~~~ | waitpid tcsetpgrp-zombie.c:44:29: error: ‘P_PID’ undeclared (first use in this function) 44 | if ( waitid(P_PID, zombie, &info, WNOWAIT | WEXITED) < 0 ) | ^~~~~ tcsetpgrp-zombie.c:44:29: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors