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/arm/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/crt1.o: In function `_start': /afs/slac.stanford.edu/package/linuxRT/vol6/buildroot-2016.11.1/buildroot-2016.11.1-zynq/output/build/glibc-2.23/csu/../sysdeps/arm/start.S:119: undefined reference to `main' /tmp/ccx3od2h.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-arm_zynq/conftst.c:2: undefined reference to `pthread_mutexattr_setprotocol' collect2: error: ld returned 1 exit status