cc -pipe -O -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_mutexattr_setrobust.c -o pthread/pthread_mutexattr_setrobust -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lrt -lcrypt pthread/pthread_mutexattr_setrobust.c: In function 'main': pthread/pthread_mutexattr_setrobust.c:12:16: error: implicit declaration of function 'pthread_mutexattr_setrobust'; did you mean 'pthread_mutexattr_setprotocol'? [-Werror=implicit-function-declaration] if ( (errno = pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST)) ) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ pthread_mutexattr_setprotocol pthread/pthread_mutexattr_setrobust.c:12:51: error: 'PTHREAD_MUTEX_ROBUST' undeclared (first use in this function); did you mean 'PTHREAD_MUTEX_NORMAL'? if ( (errno = pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST)) ) ^~~~~~~~~~~~~~~~~~~~ PTHREAD_MUTEX_NORMAL pthread/pthread_mutexattr_setrobust.c:12:51: note: each undeclared identifier is reported only once for each function it appears in pthread/pthread_mutexattr_setrobust.c:15:16: error: implicit declaration of function 'pthread_mutexattr_getrobust'; did you mean 'pthread_mutexattr_getprotocol'? [-Werror=implicit-function-declaration] if ( (errno = pthread_mutexattr_getrobust(&attr, &robustness)) ) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ pthread_mutexattr_getprotocol cc1: some warnings being treated as errors