cc -O2 -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_condattr_setpshared.c -o pthread/pthread_condattr_setpshared -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -lcrypt pthread/pthread_condattr_setpshared.c: In function 'main': pthread/pthread_condattr_setpshared.c:46:16: error: implicit declaration of function 'pthread_condattr_setpshared'; did you mean 'pthread_condattr_destroy'? [-Werror=implicit-function-declaration] 46 | if ( (errno = pthread_condattr_setpshared(&condattr, shared)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_condattr_destroy pthread/pthread_condattr_setpshared.c:55:16: error: implicit declaration of function 'pthread_mutexattr_setpshared'; did you mean 'pthread_mutexattr_settype'? [-Werror=implicit-function-declaration] 55 | if ( (errno = pthread_mutexattr_setpshared(&mutexattr, shared)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_mutexattr_settype cc1: some warnings being treated as errors