cc -O2 -pipe -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations pthread/pthread_mutex_consistent.c -o pthread/pthread_mutex_consistent -D_POSIX_C_SOURCE=202405L -lm -lpthread pthread/pthread_mutex_consistent.c:5:33: error: use of undeclared identifier 'pthread_mutex_consistent'; did you mean 'pthread_mutex_init'? int (*foo)(pthread_mutex_t *) = pthread_mutex_consistent; ^~~~~~~~~~~~~~~~~~~~~~~~ pthread_mutex_init /usr/include/pthread.h:229:6: note: 'pthread_mutex_init' declared here int pthread_mutex_init(pthread_mutex_t *, ^ pthread/pthread_mutex_consistent.c:5:7: error: incompatible function pointer types initializing 'int (*)(pthread_mutex_t *)' (aka 'int (*)(volatile struct pthread_mutex **)') with an expression of type 'int (pthread_mutex_t *, const pthread_mutexattr_t *)' (aka 'int (volatile struct pthread_mutex **, struct pthread_mutex_attr *const *)') [-Werror,-Wincompatible-function-pointer-types] int (*foo)(pthread_mutex_t *) = pthread_mutex_consistent; ^ ~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated.