安装失败!/bin/ld: cannot find -lpthreads
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 553
- PR merge metrics
- No merged PRs in 30d
Description
用centos7安装的,但是一直卡在libpthreads.so 上,这个在哪个包里呢?一直没找到。。。
有遇到相同问题解决了的嘛
**完整错误日志:**
Performing C++ SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_105b5/fast && /bin/gmake -f CMakeFiles/cmTC_105b5.dir/build.make CMakeFiles/cmTC_105b5.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_105b5.dir/src.cxx.o
/bin/c++ -DCMAKE_HAVE_LIBC_PTHREAD -fPIE -std=gnu++11 -o CMakeFiles/cmTC_105b5.dir/src.cxx.o -c /home/work/software/euler/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_105b5
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_105b5.dir/link.txt --verbose=1
/bin/c++ -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_105b5.dir/src.cxx.o -o cmTC_105b5
CMakeFiles/cmTC_105b5.dir/src.cxx.o: In function `main':
src.cxx:(.text+0x2f): undefined reference to `pthread_create'
src.cxx:(.text+0x3b): undefined reference to `pthread_detach'
src.cxx:(.text+0x47): undefined reference to `pthread_cancel'
src.cxx:(.text+0x58): undefined reference to `pthread_join'
src.cxx:(.text+0x6c): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_105b5] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_105b5/fast] Error 2
Source file was:
#include
void* test_func(void* data)
{
return data;
}
int main(void)
{
pthread_t thread;
pthread_create(&thread, NULL, test_func, NULL);
pthread_detach(thread);
pthread_cancel(thread);
pthread_join(thread, NULL);
pthread_atfork(NULL, NULL, NULL);
pthread_exit(NULL);
return 0;
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_aed4b/fast && /bin/gmake -f CMakeFiles/cmTC_aed4b.dir/build.make CMakeFiles/cmTC_aed4b.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_aed4b.dir/CheckFunctionExists.cxx.o
/bin/c++ -DCHECK_FUNCTION_EXISTS=pthread_create -fPIE -std=gnu++11 -o CMakeFiles/cmTC_aed4b.dir/CheckFunctionExists.cxx.o -c /home/work/software/euler/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx
Linking CXX executable cmTC_aed4b
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_aed4b.dir/link.txt --verbose=1
/bin/c++ -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_aed4b.dir/CheckFunctionExists.cxx.o -o cmTC_aed4b -lpthreads
/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_aed4b] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_aed4b/fast] Error 2
Determining if the function res_servicename exists in the resolv failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_45f21/fast && /bin/gmake -f CMakeFiles/cmTC_45f21.dir/build.make CMakeFiles/cmTC_45f21.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_45f21.dir/CheckFunctionExists.c.o
/bin/cc -DCHECK_FUNCTION_EXISTS=res_servicename -fPIE -std=gnu99 -o CMakeFiles/cmTC_45f21.dir/CheckFunctionExists.c.o -c /usr/share/cmake3/Modules/CheckFunctionExists.c
Linking C executable cmTC_45f21
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_45f21.dir/link.txt --verbose=1
/bin/cc -DCHECK_FUNCTION_EXISTS=res_servicename CMakeFiles/cmTC_45f21.dir/CheckFunctionExists.c.o -o cmTC_45f21 -lresolv
CMakeFiles/cmTC_45f21.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x10): undefined reference to `res_servicename'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_45f21] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_45f21/fast] Error 2
Determining if the function gethostbyname exists in the socket failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_53abf/fast && /bin/gmake -f CMakeFiles/cmTC_53abf.dir/build.make CMakeFiles/cmTC_53abf.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_53abf.dir/CheckFunctionExists.c.o
/bin/cc -DCHECK_FUNCTION_EXISTS=gethostbyname -fPIE -std=gnu99 -o CMakeFiles/cmTC_53abf.dir/CheckFunctionExists.c.o -c /usr/share/cmake3/Modules/CheckFunctionExists.c
Linking C executable cmTC_53abf
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_53abf.dir/link.txt --verbose=1
/bin/cc -DCHECK_FUNCTION_EXISTS=gethostbyname CMakeFiles/cmTC_53abf.dir/CheckFunctionExists.c.o -o cmTC_53abf -lsocket
/bin/ld: cannot find -lsocket
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_53abf] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_53abf/fast] Error 2
Determining if the function socket exists in the socket failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_98f85/fast && /bin/gmake -f CMakeFiles/cmTC_98f85.dir/build.make CMakeFiles/cmTC_98f85.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_98f85.dir/CheckFunctionExists.c.o
/bin/cc -DCHECK_FUNCTION_EXISTS=socket -fPIE -std=gnu99 -o CMakeFiles/cmTC_98f85.dir/CheckFunctionExists.c.o -c /usr/share/cmake3/Modules/CheckFunctionExists.c
Linking C executable cmTC_98f85
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_98f85.dir/link.txt --verbose=1
/bin/cc -DCHECK_FUNCTION_EXISTS=socket CMakeFiles/cmTC_98f85.dir/CheckFunctionExists.c.o -o cmTC_98f85 -lsocket
/bin/ld: cannot find -lsocket
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_98f85] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_98f85/fast] Error 2
Determining if files socket.h exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_890d0/fast && /bin/gmake -f CMakeFiles/cmTC_890d0.dir/build.make CMakeFiles/cmTC_890d0.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_890d0.dir/HAVE_SOCKET_H.c.o
/bin/cc -fPIE -o CMakeFiles/cmTC_890d0.dir/HAVE_SOCKET_H.c.o -c /home/work/software/euler/build/CMakeFiles/CheckIncludeFiles/HAVE_SOCKET_H.c
/home/work/software/euler/build/CMakeFiles/CheckIncludeFiles/HAVE_SOCKET_H.c:2:20: fatal error: socket.h: No such file or directory
#include
^
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_890d0.dir/HAVE_SOCKET_H.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_890d0/fast] Error 2
Source:
/* */
#include
int main(void){return 0;}
Determining if files stropts.h exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_7756a/fast && /bin/gmake -f CMakeFiles/cmTC_7756a.dir/build.make CMakeFiles/cmTC_7756a.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_7756a.dir/HAVE_STROPTS_H.c.o
/bin/cc -fPIE -o CMakeFiles/cmTC_7756a.dir/HAVE_STROPTS_H.c.o -c /home/work/software/euler/build/CMakeFiles/CheckIncludeFiles/HAVE_STROPTS_H.c
/home/work/software/euler/build/CMakeFiles/CheckIncludeFiles/HAVE_STROPTS_H.c:2:21: fatal error: stropts.h: No such file or directory
#include
^
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_7756a.dir/HAVE_STROPTS_H.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_7756a/fast] Error 2
Source:
/* */
#include
int main(void){return 0;}
Determining if files winsock2.h;windows.h exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_801d1/fast && /bin/gmake -f CMakeFiles/cmTC_801d1.dir/build.make CMakeFiles/cmTC_801d1.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_801d1.dir/HAVE_WINSOCK2_H.c.o
/bin/cc -fPIE -o CMakeFiles/cmTC_801d1.dir/HAVE_WINSOCK2_H.c.o -c /home/work/software/euler/build/CMakeFiles/CheckIncludeFiles/HAVE_WINSOCK2_H.c
/home/work/software/euler/build/CMakeFiles/CheckIncludeFiles/HAVE_WINSOCK2_H.c:2:22: fatal error: winsock2.h: No such file or directory
#include
^
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_801d1.dir/HAVE_WINSOCK2_H.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_801d1/fast] Error 2
Source:
/* */
#include
#include
int main(void){return 0;}
Determining if files winsock2.h;ws2tcpip.h;windows.h exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_e4392/fast && /bin/gmake -f CMakeFiles/cmTC_e4392.dir/build.make CMakeFiles/cmTC_e4392.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_e4392.dir/HAVE_WS2TCPIP_H.c.o
/bin/cc -fPIE -o CMakeFiles/cmTC_e4392.dir/HAVE_WS2TCPIP_H.c.o -c /home/work/software/euler/build/CMakeFiles/CheckIncludeFiles/HAVE_WS2TCPIP_H.c
/home/work/software/euler/build/CMakeFiles/CheckIncludeFiles/HAVE_WS2TCPIP_H.c:2:22: fatal error: winsock2.h: No such file or directory
#include
^
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_e4392.dir/HAVE_WS2TCPIP_H.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_e4392/fast] Error 2
Source:
/* */
#include
#include
#include
int main(void){return 0;}
Determining if files winsock.h;windows.h exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_8658f/fast && /bin/gmake -f CMakeFiles/cmTC_8658f.dir/build.make CMakeFiles/cmTC_8658f.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8658f.dir/HAVE_WINSOCK_H.c.o
/bin/cc -fPIE -o CMakeFiles/cmTC_8658f.dir/HAVE_WINSOCK_H.c.o -c /home/work/software/euler/build/CMakeFiles/CheckIncludeFiles/HAVE_WINSOCK_H.c
/home/work/software/euler/build/CMakeFiles/CheckIncludeFiles/HAVE_WINSOCK_H.c:2:21: fatal error: winsock.h: No such file or directory
#include
^
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_8658f.dir/HAVE_WINSOCK_H.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_8658f/fast] Error 2
Source:
/* */
#include
#include
int main(void){return 0;}
Determining if files windows.h exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_26308/fast && /bin/gmake -f CMakeFiles/cmTC_26308.dir/build.make CMakeFiles/cmTC_26308.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_26308.dir/HAVE_WINDOWS_H.c.o
/bin/cc -fPIE -o CMakeFiles/cmTC_26308.dir/HAVE_WINDOWS_H.c.o -c /home/work/software/euler/build/CMakeFiles/CheckIncludeFiles/HAVE_WINDOWS_H.c
/home/work/software/euler/build/CMakeFiles/CheckIncludeFiles/HAVE_WINDOWS_H.c:2:21: fatal error: windows.h: No such file or directory
#include
^
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_26308.dir/HAVE_WINDOWS_H.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_26308/fast] Error 2
Source:
/* */
#include
int main(void){return 0;}
Performing C SOURCE FILE Test HAVE_TYPE_SOCKET failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_396fb/fast && /bin/gmake -f CMakeFiles/cmTC_396fb.dir/build.make CMakeFiles/cmTC_396fb.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_396fb.dir/src.c.o
/bin/cc -D_GNU_SOURCE -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=600 -DHAVE_TYPE_SOCKET -fPIE -o CMakeFiles/cmTC_396fb.dir/src.c.o -c /home/work/software/euler/build/CMakeFiles/CMakeTmp/src.c
/home/work/software/euler/build/CMakeFiles/CMakeTmp/src.c: In function ‘main’:
/home/work/software/euler/build/CMakeFiles/CMakeTmp/src.c:26:4: error: unknown type name ‘SOCKET’
SOCKET var_exists;
^
gmake[1]: *** [CMakeFiles/cmTC_396fb.dir/src.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_396fb/fast] Error 2
Source file was:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main() {
SOCKET var_exists;
(void)var_exists;
return 0;
}
Determining if the SO_NONBLOCK exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_f0bf0/fast && /bin/gmake -f CMakeFiles/cmTC_f0bf0.dir/build.make CMakeFiles/cmTC_f0bf0.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f0bf0.dir/CheckSymbolExists.c.o
/bin/cc -D_GNU_SOURCE -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=600 -fPIE -o CMakeFiles/cmTC_f0bf0.dir/CheckSymbolExists.c.o -c /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: error: ‘SO_NONBLOCK’ undeclared (first use in this function)
return ((int*)(&SO_NONBLOCK))[argc];
^
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [CMakeFiles/cmTC_f0bf0.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_f0bf0/fast] Error 2
File /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef SO_NONBLOCK
return ((int*)(&SO_NONBLOCK))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the bitncmp exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_2884d/fast && /bin/gmake -f CMakeFiles/cmTC_2884d.dir/build.make CMakeFiles/cmTC_2884d.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_2884d.dir/CheckSymbolExists.c.o
/bin/cc -D_GNU_SOURCE -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=600 -fPIE -o CMakeFiles/cmTC_2884d.dir/CheckSymbolExists.c.o -c /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: error: ‘bitncmp’ undeclared (first use in this function)
return ((int*)(&bitncmp))[argc];
^
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [CMakeFiles/cmTC_2884d.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_2884d/fast] Error 2
File /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef bitncmp
return ((int*)(&bitncmp))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the closesocket exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_d7918/fast && /bin/gmake -f CMakeFiles/cmTC_d7918.dir/build.make CMakeFiles/cmTC_d7918.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d7918.dir/CheckSymbolExists.c.o
/bin/cc -D_GNU_SOURCE -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=600 -fPIE -o CMakeFiles/cmTC_d7918.dir/CheckSymbolExists.c.o -c /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: error: ‘closesocket’ undeclared (first use in this function)
return ((int*)(&closesocket))[argc];
^
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [CMakeFiles/cmTC_d7918.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_d7918/fast] Error 2
File /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef closesocket
return ((int*)(&closesocket))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the CloseSocket exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_b85d3/fast && /bin/gmake -f CMakeFiles/cmTC_b85d3.dir/build.make CMakeFiles/cmTC_b85d3.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b85d3.dir/CheckSymbolExists.c.o
/bin/cc -D_GNU_SOURCE -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=600 -fPIE -o CMakeFiles/cmTC_b85d3.dir/CheckSymbolExists.c.o -c /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: error: ‘CloseSocket’ undeclared (first use in this function)
return ((int*)(&CloseSocket))[argc];
^
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [CMakeFiles/cmTC_b85d3.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_b85d3/fast] Error 2
File /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef CloseSocket
return ((int*)(&CloseSocket))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the inet_net_pton exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_f9e05/fast && /bin/gmake -f CMakeFiles/cmTC_f9e05.dir/build.make CMakeFiles/cmTC_f9e05.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f9e05.dir/CheckSymbolExists.c.o
/bin/cc -D_GNU_SOURCE -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=600 -fPIE -o CMakeFiles/cmTC_f9e05.dir/CheckSymbolExists.c.o -c /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_f9e05
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_f9e05.dir/link.txt --verbose=1
/bin/cc -rdynamic CMakeFiles/cmTC_f9e05.dir/CheckSymbolExists.c.o -o cmTC_f9e05 -lnsl -lrt
CMakeFiles/cmTC_f9e05.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `inet_net_pton'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_f9e05] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_f9e05/fast] Error 2
File /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef inet_net_pton
return ((int*)(&inet_net_pton))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the ioctlsocket exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_ef158/fast && /bin/gmake -f CMakeFiles/cmTC_ef158.dir/build.make CMakeFiles/cmTC_ef158.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_ef158.dir/CheckSymbolExists.c.o
/bin/cc -D_GNU_SOURCE -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=600 -fPIE -o CMakeFiles/cmTC_ef158.dir/CheckSymbolExists.c.o -c /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: error: ‘ioctlsocket’ undeclared (first use in this function)
return ((int*)(&ioctlsocket))[argc];
^
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [CMakeFiles/cmTC_ef158.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_ef158/fast] Error 2
File /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef ioctlsocket
return ((int*)(&ioctlsocket))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the IoctlSocket exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_20645/fast && /bin/gmake -f CMakeFiles/cmTC_20645.dir/build.make CMakeFiles/cmTC_20645.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_20645.dir/CheckSymbolExists.c.o
/bin/cc -D_GNU_SOURCE -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=600 -fPIE -o CMakeFiles/cmTC_20645.dir/CheckSymbolExists.c.o -c /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: error: ‘IoctlSocket’ undeclared (first use in this function)
return ((int*)(&IoctlSocket))[argc];
^
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [CMakeFiles/cmTC_20645.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_20645/fast] Error 2
File /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef IoctlSocket
return ((int*)(&IoctlSocket))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the strcmpi exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_0f9cf/fast && /bin/gmake -f CMakeFiles/cmTC_0f9cf.dir/build.make CMakeFiles/cmTC_0f9cf.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_0f9cf.dir/CheckSymbolExists.c.o
/bin/cc -D_GNU_SOURCE -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=600 -fPIE -o CMakeFiles/cmTC_0f9cf.dir/CheckSymbolExists.c.o -c /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: error: ‘strcmpi’ undeclared (first use in this function)
return ((int*)(&strcmpi))[argc];
^
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [CMakeFiles/cmTC_0f9cf.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_0f9cf/fast] Error 2
File /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef strcmpi
return ((int*)(&strcmpi))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the stricmp exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_710a9/fast && /bin/gmake -f CMakeFiles/cmTC_710a9.dir/build.make CMakeFiles/cmTC_710a9.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_710a9.dir/CheckSymbolExists.c.o
/bin/cc -D_GNU_SOURCE -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=600 -fPIE -o CMakeFiles/cmTC_710a9.dir/CheckSymbolExists.c.o -c /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: error: ‘stricmp’ undeclared (first use in this function)
return ((int*)(&stricmp))[argc];
^
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [CMakeFiles/cmTC_710a9.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_710a9/fast] Error 2
File /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef stricmp
return ((int*)(&stricmp))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the strncmpi exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_b3fd9/fast && /bin/gmake -f CMakeFiles/cmTC_b3fd9.dir/build.make CMakeFiles/cmTC_b3fd9.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b3fd9.dir/CheckSymbolExists.c.o
/bin/cc -D_GNU_SOURCE -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=600 -fPIE -o CMakeFiles/cmTC_b3fd9.dir/CheckSymbolExists.c.o -c /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: error: ‘strncmpi’ undeclared (first use in this function)
return ((int*)(&strncmpi))[argc];
^
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [CMakeFiles/cmTC_b3fd9.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_b3fd9/fast] Error 2
File /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef strncmpi
return ((int*)(&strncmpi))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the strnicmp exist failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_87816/fast && /bin/gmake -f CMakeFiles/cmTC_87816.dir/build.make CMakeFiles/cmTC_87816.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_87816.dir/CheckSymbolExists.c.o
/bin/cc -D_GNU_SOURCE -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=600 -fPIE -o CMakeFiles/cmTC_87816.dir/CheckSymbolExists.c.o -c /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: error: ‘strnicmp’ undeclared (first use in this function)
return ((int*)(&strnicmp))[argc];
^
/home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:27:19: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [CMakeFiles/cmTC_87816.dir/CheckSymbolExists.c.o] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_87816/fast] Error 2
File /home/work/software/euler/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef strnicmp
return ((int*)(&strnicmp))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function __system_property_get exists failed with the following output:
Change Dir: /home/work/software/euler/build/CMakeFiles/CMakeTmp
Run Build Command(s):/bin/gmake cmTC_9b6ae/fast && /bin/gmake -f CMakeFiles/cmTC_9b6ae.dir/build.make CMakeFiles/cmTC_9b6ae.dir/build
gmake[1]: Entering directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_9b6ae.dir/CheckFunctionExists.c.o
/bin/cc -D_GNU_SOURCE -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=600 -DCHECK_FUNCTION_EXISTS=__system_property_get -fPIE -o CMakeFiles/cmTC_9b6ae.dir/CheckFunctionExists.c.o -c /usr/share/cmake3/Modules/CheckFunctionExists.c
Linking C executable cmTC_9b6ae
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_9b6ae.dir/link.txt --verbose=1
/bin/cc -DCHECK_FUNCTION_EXISTS=__system_property_get -rdynamic CMakeFiles/cmTC_9b6ae.dir/CheckFunctionExists.c.o -o cmTC_9b6ae -lnsl -lrt
CMakeFiles/cmTC_9b6ae.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x10): undefined reference to `__system_property_get'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_9b6ae] Error 1
gmake[1]: Leaving directory `/data01/home/work/software/euler/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_9b6ae/fast] Error 2
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the CMake configuration on CentOS 7 and inspect the generated checks under build/CMakeFiles/CMakeTmp. Compare the pthread, socket, and header detection failures in the supplied log with the project’s CMake configuration. Done means configuration completes successfully without the reported linker and header-check errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100