bellcoin-org / bellcoin

https://bellcoin.web4u.jp
MIT License
17 stars 4 forks source link

build error hash.h:201: undefined reference to `yespower_hash' #1

Open cryptozeny opened 5 years ago

cryptozeny commented 5 years ago
CXX      wallet/test/test_test_bitcoin-crypto_tests.o
  CXXLD    test/test_bitcoin
libbitcoin_consensus.a(libbitcoin_consensus_a-block.o): In function `uint256 SerializeHashYespower<CBlockHeader>(CBlockHeader const&, int, int)':
/root/bellcoin/src/./hash.h:201: undefined reference to `yespower_hash'
collect2: error: ld returned 1 exit status
Makefile:3934: recipe for target 'test/test_bitcoin' failed
make[2]: *** [test/test_bitcoin] Error 1
make[2]: Leaving directory '/root/bellcoin/src'
Makefile:9628: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/bellcoin/src'
Makefile:747: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

this error occurred on both ubuntu 16.04 and 18.04 i tried all of version 1.0.0, 1.0.1 and 1.0.2...

any idea?

bellflower2015 commented 5 years ago

Sorry for the late reply. Did you solve this issue? I recommend you to skip the test for a while.

ghost commented 4 years ago

Was this solved?

cryptozeny commented 4 years ago

no, i never tested again after posted. however i assume something missed in makefile or test.

enerc commented 2 years ago

Move crypto/yespower/sha256.c \ crypto/yespower/yespower-opt.c \ crypto/yespower/yespower.c

to libbitcoin_consensus_a_SOURCES target in src/Makefile.am

I had to add a couple "using namespace std::placeholders;" to fix boost errors on _1, _2 etc....

include \<QPainterPath> missing on trafficgraphwidget.cpp

Changed extern "C" void yespower_hash(const char input, char output); to extern "C" int yespower_hash(const char input, char output); in hash.h