Determining if the strnstr exist failed with the following output: Change Dir: /home/buildroot/autobuild/instance-1/output-1/build/sysrepo-2.2.36/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_588aa/fast && gmake[1]: Entering directory '/home/buildroot/autobuild/instance-1/output-1/build/sysrepo-2.2.36/CMakeFiles/CMakeTmp' /usr/bin/gmake -f CMakeFiles/cmTC_588aa.dir/build.make CMakeFiles/cmTC_588aa.dir/build gmake[2]: Entering directory '/home/buildroot/autobuild/instance-1/output-1/build/sysrepo-2.2.36/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_588aa.dir/CheckSymbolExists.c.o /home/buildroot/autobuild/instance-1/output-1/per-package/sysrepo/host/bin/riscv32-buildroot-linux-gnu-gcc --sysroot=/home/buildroot/autobuild/instance-1/output-1/per-package/sysrepo/host/riscv32-buildroot-linux-gnu/sysroot -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L -D__BSD_VISIBLE=1 -DNDEBUG -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O1 -g0 -D_FORTIFY_SOURCE=1 -Wall -Wextra -Wpedantic -std=c11 -DNDEBUG -o CMakeFiles/cmTC_588aa.dir/CheckSymbolExists.c.o -c /home/buildroot/autobuild/instance-1/output-1/build/sysrepo-2.2.36/CMakeFiles/CMakeTmp/CheckSymbolExists.c /home/buildroot/autobuild/instance-1/output-1/build/sysrepo-2.2.36/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main': /home/buildroot/autobuild/instance-1/output-1/build/sysrepo-2.2.36/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: 'strnstr' undeclared (first use in this function); did you mean 'strstr'? 8 | return ((int*)(&strnstr))[argc]; | ^~~~~~~ | strstr /home/buildroot/autobuild/instance-1/output-1/build/sysrepo-2.2.36/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in /home/buildroot/autobuild/instance-1/output-1/build/sysrepo-2.2.36/CMakeFiles/CMakeTmp/CheckSymbolExists.c:4:14: warning: parameter 'argc' set but not used [-Wunused-but-set-parameter] 4 | int main(int argc, char** argv) | ~~~~^~~~ gmake[2]: *** [CMakeFiles/cmTC_588aa.dir/build.make:78: CMakeFiles/cmTC_588aa.dir/CheckSymbolExists.c.o] Error 1 gmake[2]: Leaving directory '/home/buildroot/autobuild/instance-1/output-1/build/sysrepo-2.2.36/CMakeFiles/CMakeTmp' gmake[1]: *** [Makefile:127: cmTC_588aa/fast] Error 2 gmake[1]: Leaving directory '/home/buildroot/autobuild/instance-1/output-1/build/sysrepo-2.2.36/CMakeFiles/CMakeTmp' File /home/buildroot/autobuild/instance-1/output-1/build/sysrepo-2.2.36/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef strnstr return ((int*)(&strnstr))[argc]; #else (void)argc; return 0; #endif }