Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cryptozeny opened this issue Nov 4, 2018 · 4 comments
Open

Comments

@cryptozeny
Copy link

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
Copy link
Contributor

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

@ghost
Copy link

ghost commented Apr 13, 2020

Was this solved?

@cryptozeny
Copy link
Author

cryptozeny commented Apr 16, 2020

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

@enerc
Copy link

enerc commented Jan 15, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants