Determining if the function basename_r exists failed with the following output: Change Dir: /home/buildroot/autobuild/run/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_827fb/fast && make[1]: Entering directory '/home/buildroot/autobuild/run/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_827fb.dir/build.make CMakeFiles/cmTC_827fb.dir/build make[2]: Entering directory '/home/buildroot/autobuild/run/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_827fb.dir/CheckFunctionExists.c.o /home/buildroot/autobuild/run/instance-2/output-1/host/bin/x86_64-linux-gcc --sysroot=/home/buildroot/autobuild/run/instance-2/output-1/host/x86_64-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_827fb.dir/CheckFunctionExists.c.o -c /home/buildroot/autobuild/run/instance-2/output-1/host/share/cmake-3.22/Modules/CheckFunctionExists.c Linking C executable cmTC_827fb /home/buildroot/autobuild/run/instance-2/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_827fb.dir/link.txt --verbose=1 /home/buildroot/autobuild/run/instance-2/output-1/host/bin/x86_64-linux-gcc --sysroot=/home/buildroot/autobuild/run/instance-2/output-1/host/x86_64-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_827fb.dir/CheckFunctionExists.c.o -o cmTC_827fb /home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/11.2.0/../../../../x86_64-buildroot-linux-gnu/bin/ld: CMakeFiles/cmTC_827fb.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text.startup+0x9): undefined reference to `basename_r' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_827fb.dir/build.make:98: recipe for target 'cmTC_827fb' failed make[2]: *** [cmTC_827fb] Error 1 make[2]: Leaving directory '/home/buildroot/autobuild/run/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp' Makefile:127: recipe for target 'cmTC_827fb/fast' failed make[1]: *** [cmTC_827fb/fast] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/run/instance-2/output-1/build/snort3-3.1.18.0/CMakeFiles/CMakeTmp'