Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /home/niklas/Downloads/glfw-3.3.5/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_aaf61/fast && /usr/bin/gmake -f CMakeFiles/cmTC_aaf61.dir/build.make CMakeFiles/cmTC_aaf61.dir/build gmake[1]: Verzeichnis „/home/niklas/Downloads/glfw-3.3.5/CMakeFiles/CMakeTmp“ wird betreten Building C object CMakeFiles/cmTC_aaf61.dir/src.c.o /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_aaf61.dir/src.c.o -c /home/niklas/Downloads/glfw-3.3.5/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_aaf61 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_aaf61.dir/link.txt --verbose=1 /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_aaf61.dir/src.c.o -o cmTC_aaf61 /usr/bin/ld: CMakeFiles/cmTC_aaf61.dir/src.c.o: in function `main': src.c:(.text+0x46): undefined reference to `pthread_create' /usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach' /usr/bin/ld: src.c:(.text+0x5e): undefined reference to `pthread_cancel' /usr/bin/ld: src.c:(.text+0x6f): undefined reference to `pthread_join' collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_aaf61.dir/build.make:106: cmTC_aaf61] Fehler 1 gmake[1]: Verzeichnis „/home/niklas/Downloads/glfw-3.3.5/CMakeFiles/CMakeTmp“ wird verlassen gmake: *** [Makefile:140: cmTC_aaf61/fast] Fehler 2 Source file was: #include 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; } Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /home/niklas/Downloads/glfw-3.3.5/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_5e51e/fast && /usr/bin/gmake -f CMakeFiles/cmTC_5e51e.dir/build.make CMakeFiles/cmTC_5e51e.dir/build gmake[1]: Verzeichnis „/home/niklas/Downloads/glfw-3.3.5/CMakeFiles/CMakeTmp“ wird betreten Building C object CMakeFiles/cmTC_5e51e.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_5e51e.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.18/Modules/CheckFunctionExists.c Linking C executable cmTC_5e51e /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5e51e.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_5e51e.dir/CheckFunctionExists.c.o -o cmTC_5e51e -lpthreads /usr/bin/ld: -lpthreads kann nicht gefunden werden collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_5e51e.dir/build.make:106: cmTC_5e51e] Fehler 1 gmake[1]: Verzeichnis „/home/niklas/Downloads/glfw-3.3.5/CMakeFiles/CMakeTmp“ wird verlassen gmake: *** [Makefile:140: cmTC_5e51e/fast] Fehler 2