Determining if the function malloc_trim exists failed with the following output: Change Dir: /tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_f9f34/fast && make[1]: Entering directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_f9f34.dir/build.make CMakeFiles/cmTC_f9f34.dir/build make[2]: Entering directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f9f34.dir/CheckFunctionExists.c.o /tmp/instance-5/output-1/host/bin/x86_64-linux-gcc --sysroot=/tmp/instance-5/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -DCHECK_FUNCTION_EXISTS=malloc_trim -DNDEBUG -o CMakeFiles/cmTC_f9f34.dir/CheckFunctionExists.c.o -c /tmp/instance-5/output-1/host/share/cmake-3.16/Modules/CheckFunctionExists.c Linking C executable cmTC_f9f34 /tmp/instance-5/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f9f34.dir/link.txt --verbose=1 /tmp/instance-5/output-1/host/bin/x86_64-linux-gcc --sysroot=/tmp/instance-5/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -DCHECK_FUNCTION_EXISTS=malloc_trim -DNDEBUG CMakeFiles/cmTC_f9f34.dir/CheckFunctionExists.c.o -o cmTC_f9f34 /tmp/instance-5/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-musl/9.3.0/../../../../x86_64-buildroot-linux-musl/bin/ld: CMakeFiles/cmTC_f9f34.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text.startup+0x9): undefined reference to `malloc_trim' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cmTC_f9f34.dir/build.make:90: cmTC_f9f34] Error 1 make[2]: Leaving directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:124: cmTC_f9f34/fast] Error 2 make[1]: Leaving directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' Determining if the function basename_r exists failed with the following output: Change Dir: /tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_ea140/fast && make[1]: Entering directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_ea140.dir/build.make CMakeFiles/cmTC_ea140.dir/build make[2]: Entering directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_ea140.dir/CheckFunctionExists.c.o /tmp/instance-5/output-1/host/bin/x86_64-linux-gcc --sysroot=/tmp/instance-5/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -DCHECK_FUNCTION_EXISTS=basename_r -DNDEBUG -o CMakeFiles/cmTC_ea140.dir/CheckFunctionExists.c.o -c /tmp/instance-5/output-1/host/share/cmake-3.16/Modules/CheckFunctionExists.c Linking C executable cmTC_ea140 /tmp/instance-5/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ea140.dir/link.txt --verbose=1 /tmp/instance-5/output-1/host/bin/x86_64-linux-gcc --sysroot=/tmp/instance-5/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -DCHECK_FUNCTION_EXISTS=basename_r -DNDEBUG CMakeFiles/cmTC_ea140.dir/CheckFunctionExists.c.o -o cmTC_ea140 /tmp/instance-5/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-musl/9.3.0/../../../../x86_64-buildroot-linux-musl/bin/ld: CMakeFiles/cmTC_ea140.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text.startup+0x9): undefined reference to `basename_r' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cmTC_ea140.dir/build.make:90: cmTC_ea140] Error 1 make[2]: Leaving directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:124: cmTC_ea140/fast] Error 2 make[1]: Leaving directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' Performing C++ SOURCE FILE Test HAVE_GNU_STRERROR_R failed with the following output: Change Dir: /tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_ed294/fast && make[1]: Entering directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_ed294.dir/build.make CMakeFiles/cmTC_ed294.dir/build make[2]: Entering directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_ed294.dir/src.cxx.o /tmp/instance-5/output-1/host/bin/x86_64-linux-g++ --sysroot=/tmp/instance-5/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -DHAVE_GNU_STRERROR_R -DNDEBUG -o CMakeFiles/cmTC_ed294.dir/src.cxx.o -c /tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp/src.cxx /tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp/src.cxx: In function 'int main()': /tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp/src.cxx:11:59: error: invalid types 'int[int]' for array subscript 11 | check(strerror_r(EACCES, buffer, sizeof(buffer))[0]); | ^ make[2]: *** [CMakeFiles/cmTC_ed294.dir/build.make:69: CMakeFiles/cmTC_ed294.dir/src.cxx.o] Error 1 make[2]: Leaving directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:124: cmTC_ed294/fast] Error 2 make[1]: Leaving directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' Source file was: #include #include void check(char c) {} int main() { char buffer[1024]; /* This will not compile if strerror_r does not return a char* */ check(strerror_r(EACCES, buffer, sizeof(buffer))[0]); return 0; } Determining if the function getrpcent exists failed with the following output: Change Dir: /tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_6ebad/fast && make[1]: Entering directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_6ebad.dir/build.make CMakeFiles/cmTC_6ebad.dir/build make[2]: Entering directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6ebad.dir/CheckFunctionExists.c.o /tmp/instance-5/output-1/host/bin/x86_64-linux-gcc --sysroot=/tmp/instance-5/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -DCHECK_FUNCTION_EXISTS=getrpcent -DNDEBUG -o CMakeFiles/cmTC_6ebad.dir/CheckFunctionExists.c.o -c /tmp/instance-5/output-1/host/share/cmake-3.16/Modules/CheckFunctionExists.c Linking C executable cmTC_6ebad /tmp/instance-5/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6ebad.dir/link.txt --verbose=1 /tmp/instance-5/output-1/host/bin/x86_64-linux-gcc --sysroot=/tmp/instance-5/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -DCHECK_FUNCTION_EXISTS=getrpcent -DNDEBUG CMakeFiles/cmTC_6ebad.dir/CheckFunctionExists.c.o -o cmTC_6ebad /tmp/instance-5/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-musl/9.3.0/../../../../x86_64-buildroot-linux-musl/bin/ld: CMakeFiles/cmTC_6ebad.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text.startup+0x9): undefined reference to `getrpcent' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cmTC_6ebad.dir/build.make:90: cmTC_6ebad] Error 1 make[2]: Leaving directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:124: cmTC_6ebad/fast] Error 2 make[1]: Leaving directory '/tmp/instance-5/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp'