Bitcoin Forum
May 02, 2024, 08:41:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Error Compiling coin Ubuntu  (Read 832 times)
MAli572 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


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.
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714639286
Hero Member
*
Offline Offline

Posts: 1714639286

View Profile Personal Message (Offline)

Ignore
1714639286
Reply with quote  #2

1714639286
Report to moderator
1714639286
Hero Member
*
Offline Offline

Posts: 1714639286

View Profile Personal Message (Offline)

Ignore
1714639286
Reply with quote  #2

1714639286
Report to moderator
1714639286
Hero Member
*
Offline Offline

Posts: 1714639286

View Profile Personal Message (Offline)

Ignore
1714639286
Reply with quote  #2

1714639286
Report to moderator
gjhiggins
Legendary
*
Offline Offline

Activity: 2254
Merit: 1278



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 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
August 14, 2017, 12:59:49 PM
Last edit: August 14, 2017, 06:36:27 PM by MAli572
 #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: 2254
Merit: 1278



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 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


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: 2254
Merit: 1278



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 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


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: 2254
Merit: 1278



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 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


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: 2254
Merit: 1278



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
charlie-gama
Copper Member
Jr. Member
*
Offline Offline

Activity: 133
Merit: 1

<!public>


View Profile WWW
February 17, 2019, 02:49:14 AM
 #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

Support & Blockchain services
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!