conftst.c: In function 'blah': conftst.c:2:1: warning: null argument where non-null required (argument 1) [-Wnonnull] int blah() { return pthread_mutexattr_setprotocol(0, PTHREAD_PRIO_INHERIT); } ^ /afs/slac.stanford.edu/package/linuxRT/vol6/buildroot-2016.11.1/host/linux-x86_64/x86_64/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/../lib64/crt1.o: In function `_start': /afs/slac.stanford.edu/package/linuxRT/vol6/buildroot-2016.11.1/buildroot-2016.11.1-x86_64/output/build/glibc-2.23/csu/../sysdeps/x86_64/start.S:114: undefined reference to `main' /tmp/cc3JPfSE.o: In function `blah': /afs/slac.stanford.edu/g/lcls/vol8/epics/R3.15.5-1.0/modules/fcom/R1.4.0/src/O.linuxRT-x86_64/conftst.c:2: undefined reference to `pthread_mutexattr_setprotocol' collect2: error: ld returned 1 exit status