Skip to content

Conversation

Ticonderoga
Copy link

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 functionvoid 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 toboost::this_thread::hiden::sleep_until(timespec const&)'
CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, CWorkerThread>, boost::_bi::list1<boost::_bi::value<CWorkerThread_> > > >::~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 functionboost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, CWorkerThread>, boost::_bi::list1boost::_bi::value<CWorkerThread* > > >::~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 functionboost::condition_variable::wait(boost::unique_lockboost::mutex&)': 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 toboost::this_thread::interruption_point()' CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function boost::shared_lockboost::shared_mutex::lock()':
main_poolminer.cpp:(.text._ZN5boost11shared_lockINS_12shared_mutexEE4lockEv[_ZN5boost11shared_lockINS_12shared_mutexEE4lockEv]+0x23): undefined reference toboost::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 toboost::this_thread::disable_interruption::~disable_interruption()' CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function boost::unique_lockboost::shared_mutex::lock()':
main_poolminer.cpp:(.text._ZN5boost11unique_lockINS_12shared_mutexEE4lockEv[_ZN5boost11unique_lockINS_12shared_mutexEE4lockEv]+0x27): undefined reference toboost::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 toboost::this_thread::disable_interruption::~disable_interruption()' CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function void boost::this_thread::sleepboost::posix_time::seconds(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 functionCMasterThread::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 tovtable 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 functionFIPSCHECK_verify':
(.text+0x8da): undefined reference to dlopen' /usr/lib/../lib64/libcrypto.a(fips.o): In functionFIPSCHECK_verify':
(.text+0x8f1): undefined reference to dlsym' /usr/lib/../lib64/libcrypto.a(fips.o): In functionFIPSCHECK_verify':
(.text+0x903): undefined reference to dladdr' /usr/lib/../lib64/libcrypto.a(fips.o): In functionFIPSCHECK_verify':
(.text+0x90f): undefined reference to dlclose' /usr/lib/../lib64/libcrypto.a(fips.o): In functionFIPSCHECK_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 ?

Thomas Baumbach and others added 30 commits August 16, 2013 08:39
looks like the original client needs some love regarding 'getwork'
thbaumbach and others added 30 commits February 6, 2014 22:43
more network code & miner merging, almost done

TODO: integrate the mining loop from mikaelh's main.cpp
do-not-touch unless you know what you're doing
added mining code, but it's not working yet

at least: compilable :-)
not (much) tested yet, experimental, use on your own risk ;)
Fixing Undefined reference to clock_gettime on RHEL6 Linux
* removed chainstats (the old style will come back soon)
* fixed poolshare parameter
* break on share found & todo added
…xperimental

Conflicts: aka REMOVED
	bitcoin-qt.pro
	contrib/macdeploy/fancy.plist
	doc/README.md
	doc/README_windows.txt
	doc/changes-hp.txt
	share/qt/clean_mac_info_plist.py
	src/main.cpp
	src/makefile.mingw
	src/net.cpp
	src/qt/bitcoin.cpp
	src/version.cpp
* time offset fix in mining code
* added thread priority argument (-threadprio=<#>)
* pushed version to 1.0a
* added developer fee parameter (-devfeeid=X)
Merge branch 'master' of https://github.com/mikaelh2/primecoin into experimental

Resolved Conflicts:
	src/prime.cpp
	src/prime.h
added missing `
disclaimer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants