Cmake 3.17-2 build error zLinux pthread_atfork
Building Cmake 3.17-2 Can't find pthread_atfork
while linking?
CMakeError.log
CMakeOutput.log
Linux ****** 3.10.0-1062.12.1.el7.s390x #1 SMP Thu Dec 12 06:45:30 EST 2019 s390x s390x s390x GNU/Linux
$ gcc --version
gcc (GCC) 9.2.0
...
[ 84%] Linking CXX executable ../bin/cmake
../Utilities/cmlibuv/libcmlibuv.a(threadpool.c.o): In function `init_once':
threadpool.c:(.text+0x352): undefined reference to `pthread_atfork'
../Utilities/cmlibuv/libcmlibuv.a(signal.c.o): In function `uv__signal_global_in
it':
signal.c:(.text+0x12c2): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/cmake] Error 1
make[1]: *** [Source/CMakeFiles/cmake.dir/all] Error 2
make: *** [all] Error 2
$ nm /usr/lib64/libpthreads.so | grep atfork
000000000000dad8 t __dyn_pthread_atfork
000000000000dad8 T pthread_atfork@GLIBC_2.2
U __register_atfork@@GLIBC_2.3.2
Edited by Jack J. Woehr