We've received the appended bug report. To me, the solutions looks like adding -lpthread to the link line for test: gcc -o test main.o -L. -lx -lpthread Since main uses pthreads, it has to be linked with -lpthread. Any other opinions? Andreas