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/i686/usr/i686-buildroot-linux-gnu/sysroot/usr/lib/crt1.o: In function `_start': /afs/slac.stanford.edu/package/linuxRT/vol6/buildroot-2016.11.1/buildroot-2016.11.1-i686/output/build/glibc-2.23/csu/../sysdeps/i386/start.S:111: undefined reference to `main' /tmp/ccuyiSdf.o: In function `blah': /afs/slac.stanford.edu/g/lcls/vol8/epics/R3.15.5-1.0/modules/fcom/R1.5.0/src/O.linuxRT-i686/conftst.c:2: undefined reference to `pthread_mutexattr_setprotocol' collect2: error: ld returned 1 exit status