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

bignum.h:102: undefined reference to `BN_init' #9

Open
kkoenen opened this issue May 18, 2019 · 1 comment
Open

bignum.h:102: undefined reference to `BN_init' #9

kkoenen opened this issue May 18, 2019 · 1 comment

Comments

@kkoenen
Copy link
Collaborator

kkoenen commented May 18, 2019

Error compiling, bignum.h refers to BN_init, which is in bn.h (OpenSSL).

Trying to compile against OpenSSL version 1.0.1 14 Mar 2012 (Library: OpenSSL 1.0.2n 7 Dec 2017), still getting this error. Will try with most recent version of OpenSSL.

log:

/home/kkoenen/bin/GRZ0/src/bignum.h:102: undefined reference to `BN_init'
obj/main.o: In function `ComputeMaxBits(CBigNum, unsigned int, long)':
/home/kkoenen/bin/GRZ0/src/bignum.h:62: undefined reference to `BN_init'
/home/kkoenen/bin/GRZ0/src/bignum.h:90: undefined reference to `BN_init'
/home/kkoenen/bin/GRZ0/src/bignum.h:90: undefined reference to `BN_init'
obj/main.o: In function `GetNextTargetRequired(CBlockIndex const*, bool)':
/home/kkoenen/bin/GRZ0/src/bignum.h:62: undefined reference to `BN_init'
obj/main.o:/home/kkoenen/bin/GRZ0/src/bignum.h:91: more undefined references to `BN_init' follow
obj/bitcoinrpc.o: In function `ThreadRPCServer2(void*)':
@kkoenen
Copy link
Collaborator Author

kkoenen commented May 19, 2019

Changed my OpenSSL version to OpenSSL 1.1.0g 2 Nov 2017, seems to work (no compile errors). Installing full wallet now and trying gravityd for headless.

Workaround: downgrade libssl-dev to version 1.0. before building.

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

1 participant