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

error: invalid use of incomplete type ‘BIGNUM {aka struct bignum_st} #3

Open
marc365 opened this issue Aug 12, 2017 · 1 comment
Open

Comments

@marc365
Copy link

marc365 commented Aug 12, 2017

hi,

I tried to build on debian 9, but the library dependencies are now out of date - the? boost/openssl issue, I could try but it I'm doubtful - I think it's the same issue as: bitshares/bitshares-core#327

@marc365 marc365 closed this as completed Aug 20, 2017
@marc365 marc365 reopened this Aug 20, 2017
@marc365
Copy link
Author

marc365 commented Aug 21, 2017

found reason: trying to build with openssl 1.1 BN_init is depreciated: https://www.openssl.org/docs/man1.1.0/crypto/BN_new.html and this is where BIGNUM was removed from bitcoin: bitcoin/bitcoin@b58be13

isghe added a commit to isghe/vanitygen that referenced this issue Apr 1, 2021
See also sonountaleban/amigacoin#3 (comment)

- `BIGNUM` is opaque (we can use only `BIGNUM *`
- `BN_MASK2` undefined (I copy the value from https://code.woboq.org/crypto/openssl/crypto/bn/bn.h.html

Now we have this link errors:
```
$ make
cc vanitygen.o pattern.o util.o -o vanitygen -ggdb -O3 -Wall -isystem/usr/local/opt/openssl@1.1/include/ -D WHITH_PKCS5_PBKDF2_HMAC=1 -D MAVERICKS=1 -lpcre -lcrypto -lm -lpthread -L/usr/local/opt/openssl@1.1/lib
Undefined symbols for architecture x86_64:
  "_BN_init", referenced from:
      _vg_exec_context_init in pattern.o
      _vg_prefix_get_difficulty in pattern.o
      _get_prefix_ranges in pattern.o
      _vg_prefix_context_new in pattern.o
      _vg_prefix_context_add_patterns in pattern.o
      _vg_regex_test in pattern.o
      _vg_b58_encode_check in util.o
      ...
  "_HMAC_CTX_cleanup", referenced from:
      _PKCS5_PBKDF2_HMAC in util.o
  "_HMAC_CTX_init", referenced from:
      _PKCS5_PBKDF2_HMAC in util.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [vanitygen] Error 1
```
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