Determining if the function fseek64 exists failed with the following output: Change Dir: /home/calvin/src/xpdf-4.04/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_ba6dd/fast && /usr/bin/gmake -f CMakeFiles/cmTC_ba6dd.dir/build.make CMakeFiles/cmTC_ba6dd.dir/build gmake[1]: Entering directory '/home/calvin/src/xpdf-4.04/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_ba6dd.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=fseek64 -o CMakeFiles/cmTC_ba6dd.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.18/Modules/CheckFunctionExists.c Linking C executable cmTC_ba6dd /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ba6dd.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=fseek64 -rdynamic CMakeFiles/cmTC_ba6dd.dir/CheckFunctionExists.c.o -o cmTC_ba6dd /usr/bin/ld: CMakeFiles/cmTC_ba6dd.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text+0x10): undefined reference to `fseek64' collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_ba6dd.dir/build.make:106: cmTC_ba6dd] Error 1 gmake[1]: Leaving directory '/home/calvin/src/xpdf-4.04/CMakeFiles/CMakeTmp' gmake: *** [Makefile:140: cmTC_ba6dd/fast] Error 2 Determining if the function _fseeki64 exists failed with the following output: Change Dir: /home/calvin/src/xpdf-4.04/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_3dc46/fast && /usr/bin/gmake -f CMakeFiles/cmTC_3dc46.dir/build.make CMakeFiles/cmTC_3dc46.dir/build gmake[1]: Entering directory '/home/calvin/src/xpdf-4.04/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_3dc46.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=_fseeki64 -o CMakeFiles/cmTC_3dc46.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.18/Modules/CheckFunctionExists.c Linking C executable cmTC_3dc46 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3dc46.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=_fseeki64 -rdynamic CMakeFiles/cmTC_3dc46.dir/CheckFunctionExists.c.o -o cmTC_3dc46 /usr/bin/ld: CMakeFiles/cmTC_3dc46.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text+0x10): undefined reference to `_fseeki64' collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_3dc46.dir/build.make:106: cmTC_3dc46] Error 1 gmake[1]: Leaving directory '/home/calvin/src/xpdf-4.04/CMakeFiles/CMakeTmp' gmake: *** [Makefile:140: cmTC_3dc46/fast] Error 2 Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /home/calvin/src/xpdf-4.04/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_f5f4f/fast && /usr/bin/gmake -f CMakeFiles/cmTC_f5f4f.dir/build.make CMakeFiles/cmTC_f5f4f.dir/build gmake[1]: Entering directory '/home/calvin/src/xpdf-4.04/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f5f4f.dir/src.c.o /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_f5f4f.dir/src.c.o -c /home/calvin/src/xpdf-4.04/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_f5f4f /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f5f4f.dir/link.txt --verbose=1 /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -rdynamic CMakeFiles/cmTC_f5f4f.dir/src.c.o -o cmTC_f5f4f /usr/bin/ld: CMakeFiles/cmTC_f5f4f.dir/src.c.o: in function `main': src.c:(.text+0x2f): undefined reference to `pthread_create' /usr/bin/ld: src.c:(.text+0x3b): undefined reference to `pthread_detach' /usr/bin/ld: src.c:(.text+0x47): undefined reference to `pthread_cancel' /usr/bin/ld: src.c:(.text+0x58): undefined reference to `pthread_join' collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_f5f4f.dir/build.make:106: cmTC_f5f4f] Error 1 gmake[1]: Leaving directory '/home/calvin/src/xpdf-4.04/CMakeFiles/CMakeTmp' gmake: *** [Makefile:140: cmTC_f5f4f/fast] Error 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/calvin/src/xpdf-4.04/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_08e5e/fast && /usr/bin/gmake -f CMakeFiles/cmTC_08e5e.dir/build.make CMakeFiles/cmTC_08e5e.dir/build gmake[1]: Entering directory '/home/calvin/src/xpdf-4.04/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_08e5e.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_08e5e.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.18/Modules/CheckFunctionExists.c Linking C executable cmTC_08e5e /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_08e5e.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_08e5e.dir/CheckFunctionExists.c.o -o cmTC_08e5e -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_08e5e.dir/build.make:106: cmTC_08e5e] Error 1 gmake[1]: Leaving directory '/home/calvin/src/xpdf-4.04/CMakeFiles/CMakeTmp' gmake: *** [Makefile:140: cmTC_08e5e/fast] Error 2