mikaelh2/primecoin — pull request #5 by Ticonderoga (2014-05-09 14:05:52+00:00)
Title: cmake compilation failed

I tried to compile xolominer locally with my own version of gcc / gmp / boost ... installed in
src-install/local-lib so I did
mkdir bin
cd bin
cmake ../ -DCMAKE_FIND_ROOT_PATH=/home/username/src-install/local-lib/
OpenSSL information: found
OpenSSL_INCLUDE_DIR: /home/username/src-install/local-lib/include
OpenSSL_LIBRARIES: /home/username/src-install/local-lib/lib/libssl.a;/home/username/src-install/local-lib/lib/libcrypto.a
-- Found GMP: /home/username/src-install/local-lib/lib/libgmp.so and /home/username/src-install/local-lib/lib/libgmpxx.so
libGMP information: found
GMP_INCLUDE_DIR: /home/username/src-install/local-lib/include
GMP(XX)_LIBRARIES: /home/username/src-install/local-lib/lib/libgmp.so (/home/username/src-install/local-lib/lib/libgmpxx.so)
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- system
-- thread
-- timer
-- chrono
Boost information: found 1.55.0
Boost_INCLUDE_DIRS: /home/username/src-install/local-lib/include
Boost_LIBRARY_DIRS: /home/username/src-install/local-lib/lib
Boost_LIBRARIES: /home/username/src-install/local-lib/lib/libboost_system.a;/home/username/src-install/local-lib/lib/libboost_thread.a;/home/username/src-install/local-lib/lib/libboost_timer.a;/home/username/src-install/local-lib/lib/libboost_chrono.a
-- Configuring done
-- Generating done
-- Build files have been written to: /home/username/src-install/primecoin-master/bin
then make
[ 33%] Building CXX object CMakeFiles/xolominer.dir/src/prime.cpp.o
[ 66%] Building CXX object CMakeFiles/xolominer.dir/src/main_mining.cpp.o
[100%] Building CXX object CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o
Linking CXX executable xolominer
CMakeFiles/xolominer.dir/src/prime.cpp.o: In function `MineProbablePrimeChain(CBlock&, __gmp_expr<__mpz_struct [1], __mpz_struct [1]>&, bool&, unsigned int&, unsigned int&, __gmp_expr<__mpz_struct [1], __mpz_struct [1]>&, int*, unsigned int*, CSieveOfEratosthenes&, CPrimalityTestParams&)':
prime.cpp:(.text+0x8e67): undefined reference to `__gmp_get_memory_functions'
prime.cpp:(.text+0x9727): undefined reference to `__gmp_get_memory_functions'
prime.cpp:(.text+0x9792): undefined reference to `__gmp_get_memory_functions'
prime.cpp:(.text+0x9895): undefined reference to `__gmp_get_memory_functions'
prime.cpp:(.text+0x98f3): undefined reference to `__gmp_get_memory_functions'
CMakeFiles/xolominer.dir/src/prime.cpp.o:prime.cpp:(.text+0x9eaf): more undefined references to `__gmp_get_memory_functions' follow
CMakeFiles/xolominer.dir/src/main_mining.cpp.o: In function `void primecoin_mine<(CPUMODE)0>(CBlockProvider*, unsigned int)':
main_mining.cpp:(.text._Z14primecoin_mineIL7CPUMODE0EEvP14CBlockProviderj[_Z14primecoin_mineIL7CPUMODE0EEvP14CBlockProviderj]+0x9a1): undefined reference to `boost::this_thread::interruption_point()'
main_mining.cpp:(.text._Z14primecoin_mineIL7CPUMODE0EEvP14CBlockProviderj[_Z14primecoin_mineIL7CPUMODE0EEvP14CBlockProviderj]+0x1279): undefined reference to `boost::this_thread::hiden::sleep_until(timespec const&)'
CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function `boost::detail::thread_data, boost::_bi::list1 > > >::~thread_data()':
main_poolminer.cpp:(.text._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13CWorkerThreadEENS2_5list1INS2_5valueIPS6_EEEEEEED2Ev[_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13CWorkerThreadEENS2_5list1INS2_5valueIPS6_EEEEEEED5Ev]+0x8): undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function `boost::detail::thread_data, boost::_bi::list1 > > >::~thread_data()':
main_poolminer.cpp:(.text._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13CWorkerThreadEENS2_5list1INS2_5valueIPS6_EEEEEEED0Ev[_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13CWorkerThreadEENS2_5list1INS2_5valueIPS6_EEEEEEED0Ev]+0xc): undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function `boost::condition_variable::wait(boost::unique_lock&)':
main_poolminer.cpp:(.text._ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE[_ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE]+0x15): undefined reference to `boost::detail::get_current_thread_data()'
main_poolminer.cpp:(.text._ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE[_ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE]+0xd5): undefined reference to `boost::this_thread::interruption_point()'
CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function `boost::shared_lock::lock()':
main_poolminer.cpp:(.text._ZN5boost11shared_lockINS_12shared_mutexEE4lockEv[_ZN5boost11shared_lockINS_12shared_mutexEE4lockEv]+0x23): undefined reference to `boost::this_thread::disable_interruption::disable_interruption()'
main_poolminer.cpp:(.text._ZN5boost11shared_lockINS_12shared_mutexEE4lockEv[_ZN5boost11shared_lockINS_12shared_mutexEE4lockEv]+0x7b): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
main_poolminer.cpp:(.text._ZN5boost11shared_lockINS_12shared_mutexEE4lockEv[_ZN5boost11shared_lockINS_12shared_mutexEE4lockEv]+0xcf): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function `boost::unique_lock::lock()':
main_poolminer.cpp:(.text._ZN5boost11unique_lockINS_12shared_mutexEE4lockEv[_ZN5boost11unique_lockINS_12shared_mutexEE4lockEv]+0x27): undefined reference to `boost::this_thread::disable_interruption::disable_interruption()'
main_poolminer.cpp:(.text._ZN5boost11unique_lockINS_12shared_mutexEE4lockEv[_ZN5boost11unique_lockINS_12shared_mutexEE4lockEv]+0x88): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
main_poolminer.cpp:(.text._ZN5boost11unique_lockINS_12shared_mutexEE4lockEv[_ZN5boost11unique_lockINS_12shared_mutexEE4lockEv]+0xdc): undefined reference to `boost::this_thread::disable_interruption::~disable_interruption()'
CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function `void boost::this_thread::sleep(boost::posix_time::seconds const&)':
main_poolminer.cpp:(.text._ZN5boost11this_thread5sleepINS_10posix_time7secondsEEEvRKT_[_ZN5boost11this_thread5sleepINS_10posix_time7secondsEEEvRKT_]+0x20d): undefined reference to `boost::this_thread::hiden::sleep_until(timespec const&)'
CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function `CMasterThread::run()':
main_poolminer.cpp:(.text._ZN13CMasterThread3runEv[_ZN13CMasterThread3runEv]+0xcf): undefined reference to `boost::thread::start_thread_noexcept()'
main_poolminer.cpp:(.text._ZN13CMasterThread3runEv[_ZN13CMasterThread3runEv]+0x170): undefined reference to `vtable for boost::detail::thread_data_base'
CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o:(.rodata._ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13CWorkerThreadEENS2_5list1INS2_5valueIPS6_EEEEEEEE[_ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13CWorkerThreadEENS2_5list1INS2_5valueIPS6_EEEEEEEE]+0x10): undefined reference to `typeinfo for boost::detail::thread_data_base'
/usr/lib/../lib64/libcrypto.a(fips.o): In function `FIPSCHECK_verify':
(.text+0x8da): undefined reference to `dlopen'
/usr/lib/../lib64/libcrypto.a(fips.o): In function `FIPSCHECK_verify':
(.text+0x8f1): undefined reference to `dlsym'
/usr/lib/../lib64/libcrypto.a(fips.o): In function `FIPSCHECK_verify':
(.text+0x903): undefined reference to `dladdr'
/usr/lib/../lib64/libcrypto.a(fips.o): In function `FIPSCHECK_verify':
(.text+0x90f): undefined reference to `dlclose'
/usr/lib/../lib64/libcrypto.a(fips.o): In function `FIPSCHECK_verify':
(.text+0x98a): undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
make[2]: *** [xolominer] Error 1
make[1]: *** [CMakeFiles/xolominer.dir/all] Error 2
make: *** [all] Error 2

any clue to fix this ?