Determining if the htonll exist failed with the following output: Change Dir: /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/gmake "cmTryCompileExec289745953/fast" gmake[1]: Entering directory `/root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp' /usr/bin/gmake -f CMakeFiles/cmTryCompileExec289745953.dir/build.make CMakeFiles/cmTryCompileExec289745953.dir/build gmake[2]: Entering directory `/root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec289745953.dir/CheckSymbolExists.c.o /usr/bin/cc -DOPEN_CONTRAIL_CLIENT -g -o CMakeFiles/cmTryCompileExec289745953.dir/CheckSymbolExists.c.o -c /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp/CheckSymbolExists.c /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’: /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘htonll’ undeclared (first use in this function) return ((int*)(&htonll))[argc]; ^ /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in gmake[2]: Leaving directory `/root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp' gmake[2]: *** [CMakeFiles/cmTryCompileExec289745953.dir/CheckSymbolExists.c.o] Error 1 gmake[1]: Leaving directory `/root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp' gmake[1]: *** [cmTryCompileExec289745953/fast] Error 2 File /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include <arpa/inet.h> int main(int argc, char** argv) { (void)argv; #ifndef htonll return ((int*)(&htonll))[argc]; #else (void)argc; return 0; #endif } Determining if the pthread_create exist failed with the following output: Change Dir: /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/gmake "cmTryCompileExec2433557656/fast" gmake[1]: Entering directory `/root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp' /usr/bin/gmake -f CMakeFiles/cmTryCompileExec2433557656.dir/build.make CMakeFiles/cmTryCompileExec2433557656.dir/build gmake[2]: Entering directory `/root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2433557656.dir/CheckSymbolExists.c.o /usr/bin/cc -Wall -Wextra -Wstrict-prototypes -Wno-unused-function -fno-common -fvisibility=hidden -DOPEN_CONTRAIL_CLIENT -g -std=gnu90 -o CMakeFiles/cmTryCompileExec2433557656.dir/CheckSymbolExists.c.o -c /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTryCompileExec2433557656 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2433557656.dir/link.txt --verbose=1 /usr/bin/cc -Wall -Wextra -Wstrict-prototypes -Wno-unused-function -fno-common -fvisibility=hidden -DOPEN_CONTRAIL_CLIENT -g -std=gnu90 CMakeFiles/cmTryCompileExec2433557656.dir/CheckSymbolExists.c.o -o cmTryCompileExec2433557656 -rdynamic CMakeFiles/cmTryCompileExec2433557656.dir/CheckSymbolExists.c.o: In function `main': /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: undefined reference to `pthread_create' collect2: error: ld returned 1 exit status gmake[2]: Leaving directory `/root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp' gmake[2]: *** [cmTryCompileExec2433557656] Error 1 gmake[1]: *** [cmTryCompileExec2433557656/fast] Error 2 gmake[1]: Leaving directory `/root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp' File /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include <pthread.h> int main(int argc, char** argv) { (void)argv; #ifndef pthread_create return ((int*)(&pthread_create))[argc]; #else (void)argc; return 0; #endif } Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/gmake "cmTryCompileExec2235605384/fast" gmake[1]: Entering directory `/root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp' /usr/bin/gmake -f CMakeFiles/cmTryCompileExec2235605384.dir/build.make CMakeFiles/cmTryCompileExec2235605384.dir/build gmake[2]: Entering directory `/root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2235605384.dir/CheckFunctionExists.c.o /usr/bin/cc -Wall -Wextra -Wstrict-prototypes -Wno-unused-function -fno-common -fvisibility=hidden -DOPEN_CONTRAIL_CLIENT -g -std=gnu90 -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec2235605384.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c /usr/share/cmake/Modules/CheckFunctionExists.c:3:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] char CHECK_FUNCTION_EXISTS(); ^ Linking C executable cmTryCompileExec2235605384 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2235605384.dir/link.txt --verbose=1 /usr/bin/cc -Wall -Wextra -Wstrict-prototypes -Wno-unused-function -fno-common -fvisibility=hidden -DOPEN_CONTRAIL_CLIENT -g -std=gnu90 -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec2235605384.dir/CheckFunctionExists.c.o -o cmTryCompileExec2235605384 -rdynamic -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status gmake[2]: Leaving directory `/root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp' gmake[1]: Leaving directory `/root/work/build/third_party/rabbitmq-c/CMakeFiles/CMakeTmp' gmake[2]: *** [cmTryCompileExec2235605384] Error 1 gmake[1]: *** [cmTryCompileExec2235605384/fast] Error 2