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

cannot make #98

Open
mistapk opened this issue Oct 21, 2018 · 2 comments
Open

cannot make #98

mistapk opened this issue Oct 21, 2018 · 2 comments

Comments

@mistapk
Copy link

mistapk commented Oct 21, 2018

cannot make it on linux mint

ms@ms-VirtualBox:/blockparser$ $ perl make
$: command not found
ms@ms-VirtualBox:
/blockparser$ perl make
c++ -- .r... -- util.cpp
util.cpp: In function ‘bool addrToHash160(uint8_t*, const uint8_t*, bool, bool)’:
util.cpp:606:9: error: ‘BN_CTX_init’ was not declared in this scope
BN_CTX_init(ctx);
^~~~~~~~~~~
util.cpp:606:9: note: suggested alternative: ‘BN_CTX_end’
BN_CTX_init(ctx);
^~~~~~~~~~~
BN_CTX_end
util.cpp: In function ‘void hash160ToAddr(uint8_t*, const uint8_t*, bool, uint8_t)’:
util.cpp:729:9: error: ‘BN_CTX_init’ was not declared in this scope
BN_CTX_init(ctx);
^~~~~~~~~~~
util.cpp:729:9: note: suggested alternative: ‘BN_CTX_end’
BN_CTX_init(ctx);
^~~~~~~~~~~
BN_CTX_end
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-unused-private-field’
/tmp/GmcWCg4h:387: recipe for target '.objs/d5cd7ce3e58ff7a8ebc2786c817cb6dcd1a22603.o' failed
make: *** [.objs/d5cd7ce3e58ff7a8ebc2786c817cb6dcd1a22603.o] Error 1
make: Target 'all' not remade because of errors.
ms@ms-VirtualBox:~/blockparser$

@salber
Copy link

salber commented Oct 31, 2018

delete BN_CTX_init, otherwise you get segmentation fault with BN_CTX_end

@aybry
Copy link

aybry commented Dec 13, 2018

The fix that salber mentioned works. To elaborate, in util.cpp it is sufficient to comment out lines 606 and 729.

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