Author

Topic: Error Compiling Zetacoin Ubuntu (Read 3087 times)

newbie
Activity: 45
Merit: 0
December 04, 2017, 08:01:32 PM
#9
i have same probelm in buzzcoin
sr. member
Activity: 373
Merit: 250
December 26, 2016, 07:15:22 AM
#8
One line code fix to compile against boost 1.58:

https://github.com/bitcoin/bitcoin/pull/6114/files

Worked on every wallet I've tried to compile on Ubuntu 16.04 with that problem. Simpler than installing different versions of boost, and requires less hacking of the Ubuntu system.
great hint! i had the same error for Joulecoin and Mooncoin:
Quote
rpcrawtransaction.cpp:299: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(
     ^
  CXX      base58.o
Makefile:839: recipe for target 'rpcrawtransaction.o' failed

so under a  modern ubuntu you can compile an old coin, when you apply the following command:
Code:
sed -i 's/
( additionally, you need libdb4.8 instead of the new 5.1 / 5.3 version )
sr. member
Activity: 476
Merit: 501
October 06, 2016, 04:18:15 AM
#7
One line code fix to compile against boost 1.58:

https://github.com/bitcoin/bitcoin/pull/6114/files

Worked on every wallet I've tried to compile on Ubuntu 16.04 with that problem. Simpler than installing different versions of boost, and requires less hacking of the Ubuntu system.
member
Activity: 107
Merit: 10
January 29, 2016, 03:41:47 AM
#6
I have similar problems with various coins- the solution is usually I try a different version of boost-devel, make clean and recompile.
sr. member
Activity: 364
Merit: 250
January 04, 2016, 07:57:12 PM
#5
I tried it, but now I get the same error at a different spot:

Is that a partial paste? Seems to be missing the first section.

Cheers

Graham


Well after having issues with the VM as a whole I decided to create a new one using an older version of Ubuntu. That worked successfully, and I am syncing the wallet now. Thanks for your help!
legendary
Activity: 2254
Merit: 1290
January 04, 2016, 05:15:35 PM
#4
I tried it, but now I get the same error at a different spot:

Is that a partial paste? Seems to be missing the first section.

Cheers

Graham
sr. member
Activity: 364
Merit: 250
January 04, 2016, 01:46:20 PM
#3
Hello,

I have been trying to compile Zetacoin. I have overcome a few errors, but this one has been stumped. Any help?

Code:
rpcrawtransaction.cpp:299:77:   required from here

Here's a diff-generated patch that will fix that particular OS-related issue ...

Code:
--- a/src/rpcrawtransaction.cpp
+++ b/src/rpcrawtransaction.cpp
@@ -296,7 +296,7 @@ Value listunspent(const Array& params, bool fHelp)
             CTxDestination address;
             if (ExtractDestination(pk, address))
             {
-                const CScriptID& hash = boost::get(address);
+                const CScriptID& hash = boost::get(address);
                 CScript redeemScript;
                 if (pwalletMain->GetCScript(hash, redeemScript))
                     entry.push_back(Pair("redeemScript", HexStr(redeemScript.begin(), redeemScript.end())));

HTH

Cheers

Graham
* gjhiggins is too unfamiliar with C++ compiler/architecture variants to suggest a PR


I tried it, but now I get the same error at a different spot:

Code:
/usr/include/boost/variant/get.hpp:178:5: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE
     BOOST_STATIC_ASSERT_MSG(
     ^
rpcrawtransaction.cpp:805:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Makefile:837: recipe for target 'rpcrawtransaction.o' failed
make[3]: *** [rpcrawtransaction.o] Error 1
make[3]: Leaving directory '/home/brandon/zetacoin/src'
Makefile:859: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/brandon/zetacoin/src'
Makefile:651: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/brandon/zetacoin/src'
Makefile:508: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
legendary
Activity: 2254
Merit: 1290
January 03, 2016, 11:51:22 AM
#2
Hello,

I have been trying to compile Zetacoin. I have overcome a few errors, but this one has been stumped. Any help?

Code:
rpcrawtransaction.cpp:299:77:   required from here

Here's a diff-generated patch that will fix that particular OS-related issue ...

Code:
--- a/src/rpcrawtransaction.cpp
+++ b/src/rpcrawtransaction.cpp
@@ -296,7 +296,7 @@ Value listunspent(const Array& params, bool fHelp)
             CTxDestination address;
             if (ExtractDestination(pk, address))
             {
-                const CScriptID& hash = boost::get(address);
+                const CScriptID& hash = boost::get(address);
                 CScript redeemScript;
                 if (pwalletMain->GetCScript(hash, redeemScript))
                     entry.push_back(Pair("redeemScript", HexStr(redeemScript.begin(), redeemScript.end())));

HTH

Cheers

Graham
* gjhiggins is too unfamiliar with C++ compiler/architecture variants to suggest a PR
sr. member
Activity: 364
Merit: 250
January 02, 2016, 08:11:36 PM
#1
Hello,

I have been trying to compile Zetacoin. I have overcome a few errors, but this one has been stumped. Any help?

Code:
rpcrawtransaction.cpp:299:77:   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:837: recipe for target 'rpcrawtransaction.o' failed
make[3]: *** [rpcrawtransaction.o] Error 1
make[3]: Leaving directory '/home/brandon/zetacoin/src'
Makefile:859: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/brandon/zetacoin/src'
Makefile:651: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/brandon/zetacoin/src'
Makefile:508: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


Any help would be appreciated.
Jump to: