Hello guys!
I have some problems building the new version 2.8.1 on Ubuntu 18.04
libzerocoin/bignum.h: In function ‘const CBigNum operator-(const CBigNum&)’:
libzerocoin/bignum.h:734:43: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’
BN_set_negative(&r, !BN_is_negative(&r));
Could you help me?
Hi Attractor,
You need to downgrade your version of OpenSSL. By default, you (Ubuntu 18.04) have OpenSSL version 1.1 installed. You can verify this with the shell command:
openssl version
which should return:
OpenSSL 1.1.0g 2 Nov 2017
OpenSSL v1.1 has had some major structural changes. It is no "fault" per se of Solaris, but it does not yet compile against those structural changes. Basically, the construction and initialization of 'BigNum' changed from prior versions of OpenSSL to v1.1. Hence you will have success once you get OpenSSL v1.0 installed as those structural changes are not yet needed.
I am away from a test system to verify, but if memory serves, to install OpenSSL version 1.0:
sudo apt-get install libssl1.0-dev
Once you get OpenSSL v1.0 installed, you will have success building your Solaris client.
I hope this info is found helpful. Best of luck!