cc -pthread -Wall -Wextra -Werror=implicit-function-declaration time/timer_getoverrun.c -o time/timer_getoverrun -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 time/timer_getoverrun.c: In function 'on_signal': time/timer_getoverrun.c:15:25: error: implicit declaration of function 'timer_getoverrun' [-Werror=implicit-function-declaration] 15 | if ( (overrun = timer_getoverrun(timer)) < 0 ) | ^~~~~~~~~~~~~~~~ time/timer_getoverrun.c: In function 'main': time/timer_getoverrun.c:37:44: warning: passing argument 2 of 'timer_create' from incompatible pointer type [-Wincompatible-pointer-types] 37 | if ( timer_create(CLOCK_MONOTONIC, &event, &timer) < 0 ) | ^~~~~~ | | | struct sigevent * In file included from /usr/include/signal.h:7, from time/timer_getoverrun.c:3: /usr/include/time.h:244:61: note: expected 'const struct sigevent *' but argument is of type 'struct sigevent *' 244 | int timer_create(clockid_t clock_id, const struct sigevent *evp, timer_t *timerid); | ~~~~~~~~~~~~~~~~~~~~~~~^~~ time/timer_getoverrun.c:63:14: error: implicit declaration of function 'clock_nanosleep' [-Werror=implicit-function-declaration] 63 | if ( clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &expiration, | ^~~~~~~~~~~~~~~ cc1: some warnings being treated as errors