Bitcoin Forum
October 22, 2017, 07:41:04 PM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Error Compiling coin Ubuntu  (Read 370 times)
MAli572
Newbie
*
Offline Offline

Activity: 5


View Profile
August 13, 2017, 07: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<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.
1508701264
Hero Member
*
Offline Offline

Posts: 1508701264

View Profile Personal Message (Offline)

Ignore
1508701264
Reply with quote  #2

1508701264
Report to moderator
1508701264
Hero Member
*
Offline Offline

Posts: 1508701264

View Profile Personal Message (Offline)

Ignore
1508701264
Reply with quote  #2

1508701264
Report to moderator
1508701264
Hero Member
*
Offline Offline

Posts: 1508701264

View Profile Personal Message (Offline)

Ignore
1508701264
Reply with quote  #2

1508701264
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508701264
Hero Member
*
Offline Offline

Posts: 1508701264

View Profile Personal Message (Offline)

Ignore
1508701264
Reply with quote  #2

1508701264
Report to moderator
1508701264
Hero Member
*
Offline Offline

Posts: 1508701264

View Profile Personal Message (Offline)

Ignore
1508701264
Reply with quote  #2

1508701264
Report to moderator
1508701264
Hero Member
*
Offline Offline

Posts: 1508701264

View Profile Personal Message (Offline)

Ignore
1508701264
Reply with quote  #2

1508701264
Report to moderator
gjhiggins
Legendary
*
Offline Offline

Activity: 1162



View Profile WWW
August 14, 2017, 11: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<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
MAli572
Newbie
*
Offline Offline

Activity: 5


View Profile
August 14, 2017, 12:59:49 PM
 #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<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.
gjhiggins
Legendary
*
Offline Offline

Activity: 1162



View Profile WWW
August 15, 2017, 12:35:05 AM
 #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
MAli572
Newbie
*
Offline Offline

Activity: 5


View Profile
August 19, 2017, 12:34:14 AM
 #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.
gjhiggins
Legendary
*
Offline Offline

Activity: 1162



View Profile WWW
August 19, 2017, 04: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
MAli572
Newbie
*
Offline Offline

Activity: 5


View Profile
August 22, 2017, 04: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" admin@foo.com


Any help would be appreciated.

gjhiggins
Legendary
*
Offline Offline

Activity: 1162



View Profile WWW
August 22, 2017, 06: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" admin@foo.com


Any help would be appreciated.

Just follow the instructions as given.

Cheers

Graham
MAli572
Newbie
*
Offline Offline

Activity: 5


View Profile
August 22, 2017, 10: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.
gjhiggins
Legendary
*
Offline Offline

Activity: 1162



View Profile WWW
August 22, 2017, 11: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
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!