Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /home/psgendb/BIRCHDEV/install/salmon-1.10.1/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_cac12/fast && /usr/bin/gmake -f CMakeFiles/cmTC_cac12.dir/build.make CMakeFiles/cmTC_cac12.dir/build gmake[1]: Entering directory '/home/psgendb/BIRCHDEV/install/salmon-1.10.1/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_cac12.dir/src.c.o /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_cac12.dir/src.c.o -c /home/psgendb/BIRCHDEV/install/salmon-1.10.1/build/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_cac12 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cac12.dir/link.txt --verbose=1 /usr/bin/cc CMakeFiles/cmTC_cac12.dir/src.c.o -o cmTC_cac12 CMakeFiles/cmTC_cac12.dir/src.c.o: In function `main': src.c:(.text+0x2d): undefined reference to `pthread_create' src.c:(.text+0x39): undefined reference to `pthread_detach' src.c:(.text+0x45): undefined reference to `pthread_cancel' src.c:(.text+0x56): undefined reference to `pthread_join' collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_cac12.dir/build.make:99: cmTC_cac12] Error 1 gmake[1]: Leaving directory '/home/psgendb/BIRCHDEV/install/salmon-1.10.1/build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:127: cmTC_cac12/fast] Error 2 Source file was: #include static void* test_func(void* data) { return data; } int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_cancel(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL); return 0; }