Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_21772/fast && make[1]: Entering directory '/home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_21772.dir/build.make CMakeFiles/cmTC_21772.dir/build make[2]: Entering directory '/home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_21772.dir/src.c.o /home/buildroot/autobuild/instance-2/output-1/host/bin/mips-linux-gnu-gcc --sysroot=/home/buildroot/autobuild/instance-2/output-1/host/mips-buildroot-linux-gnu/sysroot -DCMAKE_HAVE_LIBC_PTHREAD -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -DNDEBUG -o CMakeFiles/cmTC_21772.dir/src.c.o -c /home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_21772 /home/buildroot/autobuild/instance-2/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_21772.dir/link.txt --verbose=1 /home/buildroot/autobuild/instance-2/output-1/host/bin/mips-linux-gnu-gcc --sysroot=/home/buildroot/autobuild/instance-2/output-1/host/mips-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -DNDEBUG -latomic CMakeFiles/cmTC_21772.dir/src.c.o -o cmTC_21772 /home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mips-linux-gnu/5.3.0/../../../../mips-linux-gnu/bin/ld: CMakeFiles/cmTC_21772.dir/src.c.o: undefined reference to symbol 'pthread_detach@@GLIBC_2.0' /home/buildroot/autobuild/instance-2/output-1/host/mips-buildroot-linux-gnu/sysroot/lib/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status CMakeFiles/cmTC_21772.dir/build.make:98: recipe for target 'cmTC_21772' failed make[2]: *** [cmTC_21772] Error 1 make[2]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' Makefile:127: recipe for target 'cmTC_21772/fast' failed make[1]: *** [cmTC_21772/fast] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' 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; } Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_4ca0f/fast && make[1]: Entering directory '/home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_4ca0f.dir/build.make CMakeFiles/cmTC_4ca0f.dir/build make[2]: Entering directory '/home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_4ca0f.dir/CheckFunctionExists.c.o /home/buildroot/autobuild/instance-2/output-1/host/bin/mips-linux-gnu-gcc --sysroot=/home/buildroot/autobuild/instance-2/output-1/host/mips-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -DCHECK_FUNCTION_EXISTS=pthread_create -DNDEBUG -o CMakeFiles/cmTC_4ca0f.dir/CheckFunctionExists.c.o -c /home/buildroot/autobuild/instance-2/output-1/host/share/cmake-3.22/Modules/CheckFunctionExists.c Linking C executable cmTC_4ca0f /home/buildroot/autobuild/instance-2/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4ca0f.dir/link.txt --verbose=1 /home/buildroot/autobuild/instance-2/output-1/host/bin/mips-linux-gnu-gcc --sysroot=/home/buildroot/autobuild/instance-2/output-1/host/mips-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -DCHECK_FUNCTION_EXISTS=pthread_create -DNDEBUG -latomic CMakeFiles/cmTC_4ca0f.dir/CheckFunctionExists.c.o -o cmTC_4ca0f -lpthreads /home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mips-linux-gnu/5.3.0/../../../../mips-linux-gnu/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status CMakeFiles/cmTC_4ca0f.dir/build.make:98: recipe for target 'cmTC_4ca0f' failed make[2]: *** [cmTC_4ca0f] Error 1 make[2]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' Makefile:127: recipe for target 'cmTC_4ca0f/fast' failed make[1]: *** [cmTC_4ca0f/fast] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' Determining if the function basename_r exists failed with the following output: Change Dir: /home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_d2aeb/fast && make[1]: Entering directory '/home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_d2aeb.dir/build.make CMakeFiles/cmTC_d2aeb.dir/build make[2]: Entering directory '/home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d2aeb.dir/CheckFunctionExists.c.o /home/buildroot/autobuild/instance-2/output-1/host/bin/mips-linux-gnu-gcc --sysroot=/home/buildroot/autobuild/instance-2/output-1/host/mips-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -DCHECK_FUNCTION_EXISTS=basename_r -DNDEBUG -o CMakeFiles/cmTC_d2aeb.dir/CheckFunctionExists.c.o -c /home/buildroot/autobuild/instance-2/output-1/host/share/cmake-3.22/Modules/CheckFunctionExists.c Linking C executable cmTC_d2aeb /home/buildroot/autobuild/instance-2/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d2aeb.dir/link.txt --verbose=1 /home/buildroot/autobuild/instance-2/output-1/host/bin/mips-linux-gnu-gcc --sysroot=/home/buildroot/autobuild/instance-2/output-1/host/mips-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -DCHECK_FUNCTION_EXISTS=basename_r -DNDEBUG -latomic CMakeFiles/cmTC_d2aeb.dir/CheckFunctionExists.c.o -o cmTC_d2aeb CMakeFiles/cmTC_d2aeb.dir/CheckFunctionExists.c.o: In function `main': CheckFunctionExists.c:(.text.startup+0x10): undefined reference to `basename_r' CheckFunctionExists.c:(.text.startup+0x40): undefined reference to `basename_r' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_d2aeb.dir/build.make:98: recipe for target 'cmTC_d2aeb' failed make[2]: *** [cmTC_d2aeb] Error 1 make[2]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' Makefile:127: recipe for target 'cmTC_d2aeb/fast' failed make[1]: *** [cmTC_d2aeb/fast] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp'