Title: Error Compiling coin Ubuntu Post by: MAli572 on August 13, 2017, 07:38:04 PM Hello,
I have been trying to compile a coin. I have overcome a few errors, but this one has been stumped. Any help? rpcrawtransaction.cpp:242:71: required from here /usr/include/boost/variant/get.hpp:178:5: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ BOOST_STATIC_ASSERT_MSG( ^ makefile.unix:186: recipe for target 'obj/rpcrawtransaction.o' failed make: *** [obj/rpcrawtransaction.o] Error 1 Any help would be appreciated. Title: Re: Error Compiling coin Ubuntu Post by: gjhiggins on August 14, 2017, 11:07:18 AM Hello, I have been trying to compile a coin. I have overcome a few errors, but this one has been stumped. Any help? rpcrawtransaction.cpp:242:71: required from here /usr/include/boost/variant/get.hpp:178:5: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ BOOST_STATIC_ASSERT_MSG( ^ makefile.unix:186: recipe for target 'obj/rpcrawtransaction.o' failed make: *** [obj/rpcrawtransaction.o] Error 1 Any help would be appreciated. Known issue, allegedly with Boost 1.5something ... https://github.com/bitcoin/bitcoin/pull/6114/commits/824c011d165cc352088f8e238f66b829b0e654ed Cheers Graham Title: Re: Error Compiling coin Ubuntu Post by: MAli572 on August 14, 2017, 12:59:49 PM Thanks
Now i'm facing another error while compiling. /usr/local/include/boost/thread/pthread/thread_data.hpp:243: undefined reference to `boost::this_thread::hidden::sleep_for(timespec const&)' obj/init.o: In function `boost::this_thread::sleep_for(boost::chrono::duration<long, boost::ratio<1l, 1000000000l> > const&)': /usr/local/include/boost/thread/pthread/thread_data.hpp:243: undefined reference to `boost::this_thread::hidden::sleep_for(timespec const&)' obj/main.o: In function `boost::this_thread::sleep_for(boost::chrono::duration<long, boost::ratio<1l, 1000000000l> > const&)': /usr/local/include/boost/thread/pthread/thread_data.hpp:243: undefined reference to `boost::this_thread::hidden::sleep_for(timespec const&)' obj/net.o: In function `boost::this_thread::sleep_for(boost::chrono::duration<long, boost::ratio<1l, 1000000000l> > const&)': /usr/local/include/boost/thread/pthread/thread_data.hpp:243: undefined reference to `boost::this_thread::hidden::sleep_for(timespec const&)' obj/bitcoinrpc.o: In function `boost::this_thread::sleep_for(boost::chrono::duration<long, boost::ratio<1l, 1000000000l> > const&)': /usr/local/include/boost/thread/pthread/thread_data.hpp:243: undefined reference to `boost::this_thread::hidden::sleep_for(timespec const&)' obj/rpcwallet.o:/usr/local/include/boost/thread/pthread/thread_data.hpp:243: more undefined references to `boost::this_thread::hidden::sleep_for(timespec const&)' follow collect2: error: ld returned 1 exit status makefile.unix:193: recipe for target 'owncoind' failed make: *** [owncoind] Error 1 Any help would be appreciated. Title: Re: Error Compiling coin Ubuntu Post by: gjhiggins on August 15, 2017, 12:35:05 AM /usr/local/include/boost/thread/pthread/thread_data.hpp:243: undefined reference to `boost::this_thread makefile.unix:193: recipe for target 'owncoind' failed That's a compilation environment issue by the looks of it. Cheers Graham Title: Re: Error Compiling coin Ubuntu Post by: MAli572 on August 19, 2017, 12:34:14 AM Thanks for reply
Boost error fixed, but another error come /home/mohabat/Downloads/owncoin/src/leveldb.cpp:56: undefined reference to `leveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**)' /home/mohabat/Downloads/owncoin/src/leveldb.cpp:51: undefined reference to `leveldb::DestroyDB(std::string const&, leveldb::Options const&)' /home/mohabat/Downloads/owncoin/src/leveldb.cpp:58: undefined reference to `leveldb::Status::ToString() const' /home/mohabat/Downloads/owncoin/src/leveldb.cpp:58: undefined reference to `real_strprintf(char const*, int, ...)' obj/leveldb.o: In function `CLevelDB::WriteBatch(CLevelDBBatch&, bool)': /home/mohabat/Downloads/owncoin/src/leveldb.cpp:76: undefined reference to `leveldb::Status::ToString() const' collect2: error: ld returned 1 exit status make: *** [owncoind] Error 1 Any help would be appreciated. Title: Re: Error Compiling coin Ubuntu Post by: gjhiggins on August 19, 2017, 04:14:53 PM Boost error fixed, but another error come /home/mohabat/Downloads/owncoin/src/leveldb.cpp:76: undefined reference to `leveldb::Status::ToString() const' Compilation environment again. Ensure leveldb includes and libs are set in the compilation environment. Also possible that the executable bit is not set for src/leveldb/build_detect_platform, make it executable if not - and also the same for share/genbuild.sh while you're at it. At worst, cd to src/leveldb and try make. If that works, then also do make libmemenv.a then cd back to the top and try again, you may find the dependencies are now satisfied. Cheers Graham Title: Re: Error Compiling coin Ubuntu Post by: MAli572 on August 22, 2017, 04:16:40 AM Thanks for replaying.
I'm over environments errors now facing another error. Error: To use learncoind, you must set a rpcpassword in the configuration file: /home/mohabat/.learncoin/learncoin.conf It is recommended you use the following random password: rpcuser=learncoinrpc rpcpassword=9vAujwbBaBR7ydJFWTheurcMaFyMGwLqtRpnMf6uYMVx (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %s | mail -s "Learncoin Alert" admin@foo.com Any help would be appreciated. Title: Re: Error Compiling coin Ubuntu Post by: gjhiggins on August 22, 2017, 06:31:57 AM Thanks for replaying. I'm over environments errors now facing another error. Error: To use learncoind, you must set a rpcpassword in the configuration file: /home/mohabat/.learncoin/learncoin.conf It is recommended you use the following random password: rpcuser=learncoinrpc rpcpassword=9vAujwbBaBR7ydJFWTheurcMaFyMGwLqtRpnMf6uYMVx (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %s | mail -s "Learncoin Alert" admin@foo.com Any help would be appreciated. Just follow the instructions as given. Cheers Graham Title: Re: Error Compiling coin Ubuntu Post by: MAli572 on August 22, 2017, 10:10:58 PM Thanks for replaying.
Another error after configuring .conf file EXCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_op tions26invalid_config_file_syntaxEEEEE the options configuration file contains an invalid line '2mdPs2upktRzJKHESRKEbuq4etZwjAKj8YhdF3uhdYZ7' learncoin in AppInit() Any help would be appreciated. Title: Re: Error Compiling coin Ubuntu Post by: gjhiggins on August 22, 2017, 11:58:06 PM EXCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_op tions26invalid_config_file_syntaxEEEEE the options configuration file contains an invalid line '2mdPs2upktRzJKHESRKEbuq4etZwjAKj8YhdF3uhdYZ7' learncoin in AppInit() I'm guessing here, should it be: rpcpassword=2mdPs2upktRzJKHESRKEbuq4etZwjAKj8YhdF3uhdYZ7 Cheers Graham Title: Re: Error Compiling coin Ubuntu Post by: charlie-gama on February 17, 2019, 02:49:14 AM reinstall boost version - problem in dependencies.
libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev |