While compiling after 1 hour using cmake on release mode, i get the following errors.
Can you help me
[ 97%] Building CXX object CMakeFiles/UnitTests.dir/UnitTestsSources/ServerJobsTests.cpp.o
[ 97%] Building CXX object CMakeFiles/UnitTests.dir/UnitTestsSources/SizeOfTests.cpp.o
[ 97%] Building CXX object CMakeFiles/UnitTests.dir/UnitTestsSources/UnitTestsMain.cpp.o
[ 97%] Building CXX object CMakeFiles/UnitTests.dir/UnitTestsSources/VersionsTests.cpp.o
[ 98%] Linking CXX executable UnitTests
/usr/bin/ld: libCoreLibrary.a(loslib.c.o): in function os_tmpname': loslib.c:(.text+0x308): warning: the use of
tmpnam’ is dangerous, better use mkstemp' /usr/bin/ld: libCoreLibrary.a(threads_pthread.c.o): in function
CRYPTO_atomic_or’:
threads_pthread.c:(.text+0x188): undefined reference to __atomic_is_lock_free' /usr/bin/ld: threads_pthread.c:(.text+0x208): undefined reference to
__atomic_fetch_or_8’
/usr/bin/ld: libCoreLibrary.a(threads_pthread.c.o): in function CRYPTO_atomic_load': threads_pthread.c:(.text+0x23c): undefined reference to
__atomic_is_lock_free’
/usr/bin/ld: threads_pthread.c:(.text+0x294): undefined reference to `__atomic_load_8’
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/UnitTests.dir/build.make:480: UnitTests] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: CMakeFiles/UnitTests.dir/all] Error 2
make: *** [Makefile:149: all] Error 2