Author

Topic: Error Compiling coin Ubuntu (Read 837 times)

copper member
Activity: 133
Merit: 1
February 16, 2019, 10:49:14 PM
#11
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
legendary
Activity: 2254
Merit: 1278
August 22, 2017, 07:58:06 PM
#10
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
newbie
Activity: 5
Merit: 0
August 22, 2017, 06:10:58 PM
#9
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.
legendary
Activity: 2254
Merit: 1278
August 22, 2017, 02:31:57 AM
#8
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" [email protected]


Any help would be appreciated.

Just follow the instructions as given.

Cheers

Graham
newbie
Activity: 5
Merit: 0
August 22, 2017, 12:16:40 AM
#7
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" [email protected]


Any help would be appreciated.

legendary
Activity: 2254
Merit: 1278
August 19, 2017, 12:14:53 PM
#6
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
newbie
Activity: 5
Merit: 0
August 18, 2017, 08:34:14 PM
#5
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.
legendary
Activity: 2254
Merit: 1278
August 14, 2017, 08:35:05 PM
#4
/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
newbie
Activity: 5
Merit: 0
August 14, 2017, 08:59:49 AM
#3
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 > 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 > 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 > 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 > 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.
legendary
Activity: 2254
Merit: 1278
August 14, 2017, 07:07:18 AM
#2
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
     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
newbie
Activity: 5
Merit: 0
August 13, 2017, 03:38:04 PM
#1
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
     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.
Jump to: