Determining if the function malloc_trim exists failed with the following output: Change Dir: /tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_16e8c/fast && make[1]: Entering directory '/tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_16e8c.dir/build.make CMakeFiles/cmTC_16e8c.dir/build make[2]: Entering directory '/tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_16e8c.dir/CheckFunctionExists.c.o /tmp/instance-0/output-1/host/bin/x86_64-linux-gcc --sysroot=/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -DCHECK_FUNCTION_EXISTS=malloc_trim -DNDEBUG -o CMakeFiles/cmTC_16e8c.dir/CheckFunctionExists.c.o -c /tmp/instance-0/output-1/host/share/cmake-3.16/Modules/CheckFunctionExists.c Linking C executable cmTC_16e8c /tmp/instance-0/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_16e8c.dir/link.txt --verbose=1 /tmp/instance-0/output-1/host/bin/x86_64-linux-gcc --sysroot=/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -DCHECK_FUNCTION_EXISTS=malloc_trim -DNDEBUG CMakeFiles/cmTC_16e8c.dir/CheckFunctionExists.c.o -o cmTC_16e8c /tmp/instance-0/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_16e8c.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text.startup+0xc): undefined reference to `malloc_trim' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cmTC_16e8c.dir/build.make:90: cmTC_16e8c] Error 1 make[2]: Leaving directory '/tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:124: cmTC_16e8c/fast] Error 2 make[1]: Leaving directory '/tmp/instance-0/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-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_1858e/fast && make[1]: Entering directory '/tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_1858e.dir/build.make CMakeFiles/cmTC_1858e.dir/build make[2]: Entering directory '/tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1858e.dir/CheckFunctionExists.c.o /tmp/instance-0/output-1/host/bin/x86_64-linux-gcc --sysroot=/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -DCHECK_FUNCTION_EXISTS=basename_r -DNDEBUG -o CMakeFiles/cmTC_1858e.dir/CheckFunctionExists.c.o -c /tmp/instance-0/output-1/host/share/cmake-3.16/Modules/CheckFunctionExists.c Linking C executable cmTC_1858e /tmp/instance-0/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1858e.dir/link.txt --verbose=1 /tmp/instance-0/output-1/host/bin/x86_64-linux-gcc --sysroot=/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -DCHECK_FUNCTION_EXISTS=basename_r -DNDEBUG CMakeFiles/cmTC_1858e.dir/CheckFunctionExists.c.o -o cmTC_1858e /tmp/instance-0/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_1858e.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text.startup+0xc): undefined reference to `basename_r' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cmTC_1858e.dir/build.make:90: cmTC_1858e] Error 1 make[2]: Leaving directory '/tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:124: cmTC_1858e/fast] Error 2 make[1]: Leaving directory '/tmp/instance-0/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-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_f5937/fast && make[1]: Entering directory '/tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_f5937.dir/build.make CMakeFiles/cmTC_f5937.dir/build make[2]: Entering directory '/tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_f5937.dir/src.cxx.o /tmp/instance-0/output-1/host/bin/x86_64-linux-g++ --sysroot=/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -DHAVE_GNU_STRERROR_R -DNDEBUG -o CMakeFiles/cmTC_f5937.dir/src.cxx.o -c /tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp/src.cxx /tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp/src.cxx: In function 'int main()': /tmp/instance-0/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_f5937.dir/build.make:69: CMakeFiles/cmTC_f5937.dir/src.cxx.o] Error 1 make[2]: Leaving directory '/tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:124: cmTC_f5937/fast] Error 2 make[1]: Leaving directory '/tmp/instance-0/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-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_a3f72/fast && make[1]: Entering directory '/tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_a3f72.dir/build.make CMakeFiles/cmTC_a3f72.dir/build make[2]: Entering directory '/tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_a3f72.dir/CheckFunctionExists.c.o /tmp/instance-0/output-1/host/bin/x86_64-linux-gcc --sysroot=/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -DCHECK_FUNCTION_EXISTS=getrpcent -DNDEBUG -o CMakeFiles/cmTC_a3f72.dir/CheckFunctionExists.c.o -c /tmp/instance-0/output-1/host/share/cmake-3.16/Modules/CheckFunctionExists.c Linking C executable cmTC_a3f72 /tmp/instance-0/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a3f72.dir/link.txt --verbose=1 /tmp/instance-0/output-1/host/bin/x86_64-linux-gcc --sysroot=/tmp/instance-0/output-1/host/x86_64-buildroot-linux-musl/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -DCHECK_FUNCTION_EXISTS=getrpcent -DNDEBUG CMakeFiles/cmTC_a3f72.dir/CheckFunctionExists.c.o -o cmTC_a3f72 /tmp/instance-0/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_a3f72.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text.startup+0xc): undefined reference to `getrpcent' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cmTC_a3f72.dir/build.make:90: cmTC_a3f72] Error 1 make[2]: Leaving directory '/tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:124: cmTC_a3f72/fast] Error 2 make[1]: Leaving directory '/tmp/instance-0/output-1/build/snort3-3.1.6.0/CMakeFiles/CMakeTmp'