unitusdev / unitus

Source for Unitus - a merged mined, multi-algorithm crypto-currency.
https://unitus.online
MIT License
173 stars 64 forks source link

Building fails on opensuse Tumbleweed. #7

Open baskinsy opened 6 years ago

baskinsy commented 6 years ago

Hi, I'm getting the following error when trying to build the wallet on an opensuse Tumbleweed system. I don't think I'm missing a dependency maybe it is due to newer libraries versions on my system (rolling distro)

  CXX      libbitcoin_server_a-chain.o
In file included from chain.cpp:9:0:
bignum.h:64:24: error: invalid use of incomplete type ‘BIGNUM {aka struct bignum_st}’
 class CBigNum : public BIGNUM
                        ^~~~~~
In file included from /usr/include/openssl/bn.h:32:0,
                 from bignum.h:18,
                 from chain.cpp:9:
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’
 typedef struct bignum_st BIGNUM;
                ^~~~~~~~~
In file included from chain.cpp:9:0:
bignum.h: In constructor ‘CBigNum::CBigNum()’:
bignum.h:69:9: error: ‘BN_init’ was not declared in this scope
         BN_init(this);
         ^~~~~~~
bignum.h:69:9: note: suggested alternative: ‘BN_print’
         BN_init(this);
         ^~~~~~~
         BN_print
bignum.h: In copy constructor ‘CBigNum::CBigNum(const CBigNum&)’:
bignum.h:74:9: error: ‘BN_init’ was not declared in this scope
         BN_init(this);
         ^~~~~~~
bignum.h:74:9: note: suggested alternative: ‘BN_print’
         BN_init(this);
         ^~~~~~~
         BN_print
bignum.h:75:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’
         if (!BN_copy(this, &b))

Any hints?

nzsquirrell commented 6 years ago

What version of OpenSSL is being used?

baskinsy commented 6 years ago

Yep probably the issue is there because my distro is using this:

openssl version
OpenSSL 1.1.0g-fips  2 Nov 2017