phantomxdev / phantomx

10 stars 10 forks source link

Build fails... #1

Closed fusionfoto closed 6 years ago

fusionfoto commented 6 years ago

Probably for a similar issue to this. Tried on RPI:

https://github.com/EmberCoin/Ember/issues/31

bignum.h: In function ‘bool operator<=(const CBigNum&, const CBigNum&)’: bignum.h:717:83: error: cannot convert ‘const CBigNum’ to ‘const BIGNUM {aka const bignum_st}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM, const BIGNUM)’ rator<=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) <= 0); } ^ bignum.h: In function ‘bool operator>=(const CBigNum&, const CBigNum&)’: bignum.h:718:83: error: cannot convert ‘const CBigNum’ to ‘const BIGNUM {aka const bignum_st}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM, const BIGNUM)’ rator>=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) >= 0); } ^ bignum.h: In function ‘bool operator<(const CBigNum&, const CBigNum&)’: bignum.h:719:83: error: cannot convert ‘const CBigNum’ to ‘const BIGNUM {aka const bignum_st}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM, const BIGNUM)’ erator<(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) < 0); } ^ bignum.h: In function ‘bool operator>(const CBigNum&, const CBigNum&)’: bignum.h:720:83: error: cannot convert ‘const CBigNum’ to ‘const BIGNUM {aka const bignum_st}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM, const BIGNUM)’ erator>(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) > 0); } ^ makefile.unix:217: recipe for target 'obj/alert.o' failed make: *** [obj/alert.o] Error 1

running, low and behold, SSL 1.1:

ii libssl-dev:armhf 1.1.0f-3+deb9u1 armhf Secure Sockets Layer toolkit - development files i

For anyone trying to build this with up to date libraries, it'll fail.

fusionfoto commented 6 years ago

Apparently bitcoin fixed it in this issue:

https://github.com/bitcoin/bitcoin/issues/7086

so the changes just need to be ported.

alexml83 commented 6 years ago

The problem is for the version of openssl.... you just have to change to older version...

fusionfoto commented 6 years ago

I get that, but obviously that is not a long term plan... We can't all be using private, old repositories of old SSL... particularly when there are security fixed in the new versions.

phantomx-beta commented 6 years ago

Problems solved on updated Readme.md and autoinstall file