I ran the BitBean daemon since months on my VPS. Unfortunately, I cannot compile the current BitBean github version. I'm always getting the following errors:
make -f makefile.unix clean && make -f makefile.unix USE_UPNP= -j 4 USE_IPV6=0
rm -f BitBeand
rm -f obj/*.o
rm -f obj/*.P
rm -f obj/build.h
g++ -c -O2 -std=c++11 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/tmp/bitbean-core/src -I/tmp/bitbean-core/src/obj -I/tmp/bitbean-core/src/leveldb/include -I/tmp/bitbean-core/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/alert.d -o obj/alert.o alert.cpp
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -std=c++11 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/tmp/bitbean-core/src -I/tmp/bitbean-core/src/obj -I/tmp/bitbean-core/src/leveldb/include -I/tmp/bitbean-core/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/checkpoints.d -o obj/checkpoints.o checkpoints.cpp
g++ -c -O2 -std=c++11 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/tmp/bitbean-core/src -I/tmp/bitbean-core/src/obj -I/tmp/bitbean-core/src/leveldb/include -I/tmp/bitbean-core/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/netbase.d -o obj/netbase.o netbase.cpp
g++ -c -O2 -std=c++11 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/tmp/bitbean-core/src -I/tmp/bitbean-core/src/obj -I/tmp/bitbean-core/src/leveldb/include -I/tmp/bitbean-core/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/addrman.d -o obj/addrman.o addrman.cpp
In file included from chainparams.h:10:0,
from protocol.h:14,
from addrman.h:8,
from addrman.cpp:5:
bignum.h: In static member function ‘static CBigNum CBigNum::randBignum(const CBigNum&)’:
bignum.h:113:39: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rand_range(BIGNUM*, const BIGNUM*)’
if(!BN_rand_range(&ret, &range)){
^
bignum.h: In static member function ‘static CBigNum CBigNum::RandKBitBigum(uint32_t)’:
bignum.h:125:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rand(BIGNUM*, int, int, int)’
if(!BN_rand(&ret, k, -1, 0)){
^
In file included from chainparams.h:10:0,
from protocol.h:14,
from addrman.h:8,
from addrman.cpp:5:
bignum.h: In member function ‘std::string CBigNum::ToString(int) const’:
bignum.h:358:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’
BN_set_negative(&bn, false);
^
bignum.h:361:29: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
if (BN_cmp(&bn, &bn0) == 0)
^
bignum.h:363:32: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
while (BN_cmp(&bn, &bn0) > 0)
^
bignum.h:365:54: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_div(&dv, &rem, &bn, &bnBase, pctx))
^
In file included from bignum.h:14:0,
from chainparams.h:10,
from protocol.h:14,
from addrman.h:8,
from addrman.cpp:5:
bignum.h:371:13: error: ‘const class CBigNum’ has no member named ‘neg’
if (BN_is_negative(this))
^
In file included from chainparams.h:10:0,
from protocol.h:14,
from addrman.h:8,
from addrman.cpp:5:
bignum.h: In member function ‘CBigNum CBigNum::pow(const CBigNum&) const’:
bignum.h:418:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_exp(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_exp(&ret, this, &e, pctx))
^
bignum.h: In member function ‘CBigNum CBigNum::mul_mod(const CBigNum&, const CBigNum&) const’:
bignum.h:431:49: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mod_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mod_mul(&ret, this, &b, &m, pctx))
^
bignum.h: In member function ‘CBigNum CBigNum::pow_mod(const CBigNum&, const CBigNum&) const’:
bignum.h:449:56: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mod_exp(BIGNUM*, const BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mod_exp(&ret, &inv, &posE, &m, pctx))
^
bignum.h:452:53: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mod_exp(BIGNUM*, const BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mod_exp(&ret, this, &e, &m, pctx))
^
bignum.h: In member function ‘CBigNum CBigNum::inverse(const CBigNum&) const’:
bignum.h:467:49: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_mod_inverse(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mod_inverse(&ret, this, &m, pctx))
^
bignum.h: In static member function ‘static CBigNum CBigNum::generatePrime(unsigned int, bool)’:
bignum.h:480:81: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_generate_prime_ex(BIGNUM*, int, int, const BIGNUM*, const BIGNUM*, BN_GENCB*)’
if(!BN_generate_prime_ex(&ret, numBits, (safe == true), NULL, NULL, NULL))
^
bignum.h: In member function ‘CBigNum CBigNum::gcd(const CBigNum&) const’:
bignum.h:493:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_gcd(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_gcd(&ret, this, &b, pctx))
^
bignum.h: In member function ‘bool CBigNum::isPrime(int) const’:
bignum.h:506:61: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_prime(const BIGNUM*, int, void (*)(int, int, void*), BN_CTX*, void*)’
int ret = BN_is_prime(this, checks, NULL, pctx, NULL);
^
In file included from bignum.h:14:0,
from chainparams.h:10,
from protocol.h:14,
from addrman.h:8,
from addrman.cpp:5:
bignum.h: In member function ‘bool CBigNum::isOne() const’:
bignum.h:514:16: error: ‘const class CBigNum’ has no member named ‘top’
return BN_is_one(this);
^
bignum.h:514:16: error: ‘const class CBigNum’ has no member named ‘d’
return BN_is_one(this);
^
bignum.h:514:16: error: ‘const class CBigNum’ has no member named ‘top’
return BN_is_one(this);
^
bignum.h:514:16: error: ‘const class CBigNum’ has no member named ‘neg’
return BN_is_one(this);
^
bignum.h: In member function ‘bool CBigNum::operator!() const’:
bignum.h:520:16: error: ‘const class CBigNum’ has no member named ‘top’
return BN_is_zero(this);
^
In file included from chainparams.h:10:0,
from protocol.h:14,
from addrman.h:8,
from addrman.cpp:5:
bignum.h: In member function ‘CBigNum& CBigNum::operator+=(const CBigNum&)’:
bignum.h:525:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’
if (!BN_add(this, this, &b))
^
bignum.h: In member function ‘CBigNum& CBigNum::operator*=(const CBigNum&)’:
bignum.h:539:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mul(this, this, &b, pctx))
^
In file included from chainparams.h:10:0,
from protocol.h:14,
from net.h:20,
from checkpoints.h:9,
from checkpoints.cpp:8:
bignum.h: In static member function ‘static CBigNum CBigNum::randBignum(const CBigNum&)’:
bignum.h:113:39: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rand_range(BIGNUM*, const BIGNUM*)’
if(!BN_rand_range(&ret, &range)){
^
bignum.h: In static member function ‘static CBigNum CBigNum::RandKBitBigum(uint32_t)’:
bignum.h:125:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rand(BIGNUM*, int, int, int)’
if(!BN_rand(&ret, k, -1, 0)){
^
In file included from chainparams.h:10:0,
from protocol.h:14,
from net.h:20,
from checkpoints.h:9,
from checkpoints.cpp:8:
bignum.h: In member function ‘std::string CBigNum::ToString(int) const’:
bignum.h:358:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’
BN_set_negative(&bn, false);
^
bignum.h:361:29: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
if (BN_cmp(&bn, &bn0) == 0)
^
bignum.h:363:32: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
while (BN_cmp(&bn, &bn0) > 0)
^
bignum.h:365:54: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_div(&dv, &rem, &bn, &bnBase, pctx))
^
In file included from bignum.h:14:0,
from chainparams.h:10,
from protocol.h:14,
from net.h:20,
from checkpoints.h:9,
from checkpoints.cpp:8:
bignum.h:371:13: error: ‘const class CBigNum’ has no member named ‘neg’
if (BN_is_negative(this))
^
In file included from chainparams.h:10:0,
from protocol.h:14,
from net.h:20,
from checkpoints.h:9,
from checkpoints.cpp:8:
bignum.h: In member function ‘CBigNum CBigNum::pow(const CBigNum&) const’:
bignum.h:418:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_exp(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_exp(&ret, this, &e, pctx))
^
bignum.h: In member function ‘CBigNum CBigNum::mul_mod(const CBigNum&, const CBigNum&) const’:
bignum.h:431:49: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mod_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mod_mul(&ret, this, &b, &m, pctx))
^
bignum.h: In member function ‘CBigNum CBigNum::pow_mod(const CBigNum&, const CBigNum&) const’:
bignum.h:449:56: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mod_exp(BIGNUM*, const BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mod_exp(&ret, &inv, &posE, &m, pctx))
^
bignum.h:452:53: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mod_exp(BIGNUM*, const BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mod_exp(&ret, this, &e, &m, pctx))
^
bignum.h: In member function ‘CBigNum CBigNum::inverse(const CBigNum&) const’:
bignum.h:467:49: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_mod_inverse(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mod_inverse(&ret, this, &m, pctx))
^
bignum.h: In static member function ‘static CBigNum CBigNum::generatePrime(unsigned int, bool)’:
bignum.h:480:81: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_generate_prime_ex(BIGNUM*, int, int, const BIGNUM*, const BIGNUM*, BN_GENCB*)’
if(!BN_generate_prime_ex(&ret, numBits, (safe == true), NULL, NULL, NULL))
^
bignum.h: In member function ‘CBigNum CBigNum::gcd(const CBigNum&) const’:
bignum.h:493:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_gcd(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_gcd(&ret, this, &b, pctx))
^
bignum.h: In member function ‘bool CBigNum::isPrime(int) const’:
bignum.h:506:61: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_prime(const BIGNUM*, int, void (*)(int, int, void*), BN_CTX*, void*)’
int ret = BN_is_prime(this, checks, NULL, pctx, NULL);
^
In file included from bignum.h:14:0,
from chainparams.h:10,
from protocol.h:14,
from net.h:20,
from checkpoints.h:9,
from checkpoints.cpp:8:
bignum.h: In member function ‘bool CBigNum::isOne() const’:
bignum.h:514:16: error: ‘const class CBigNum’ has no member named ‘top’
return BN_is_one(this);
^
bignum.h:514:16: error: ‘const class CBigNum’ has no member named ‘d’
return BN_is_one(this);
^
bignum.h:514:16: error: ‘const class CBigNum’ has no member named ‘top’
return BN_is_one(this);
^
bignum.h:514:16: error: ‘const class CBigNum’ has no member named ‘neg’
return BN_is_one(this);
^
bignum.h: In member function ‘bool CBigNum::operator!() const’:
bignum.h:520:16: error: ‘const class CBigNum’ has no member named ‘top’
return BN_is_zero(this);
^
In file included from chainparams.h:10:0,
from protocol.h:14,
from net.h:20,
from checkpoints.h:9,
from checkpoints.cpp:8:
bignum.h: In member function ‘CBigNum& CBigNum::operator+=(const CBigNum&)’:
bignum.h:525:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’
if (!BN_add(this, this, &b))
^
bignum.h: In member function ‘CBigNum& CBigNum::operator*=(const CBigNum&)’:
bignum.h:539:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mul(this, this, &b, pctx))
^
In file included from chainparams.h:10:0,
from protocol.h:14,
from net.h:20,
from alert.cpp:13:
bignum.h: In static member function ‘static CBigNum CBigNum::randBignum(const CBigNum&)’:
bignum.h:113:39: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rand_range(BIGNUM*, const BIGNUM*)’
if(!BN_rand_range(&ret, &range)){
^
bignum.h: In static member function ‘static CBigNum CBigNum::RandKBitBigum(uint32_t)’:
bignum.h:125:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rand(BIGNUM*, int, int, int)’
if(!BN_rand(&ret, k, -1, 0)){
^
In file included from chainparams.h:10:0,
from protocol.h:14,
from net.h:20,
from alert.cpp:13:
bignum.h: In member function ‘std::string CBigNum::ToString(int) const’:
bignum.h:358:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’
BN_set_negative(&bn, false);
^
bignum.h:361:29: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
if (BN_cmp(&bn, &bn0) == 0)
^
bignum.h:363:32: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
while (BN_cmp(&bn, &bn0) > 0)
^
bignum.h:365:54: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_div(&dv, &rem, &bn, &bnBase, pctx))
^
In file included from bignum.h:14:0,
from chainparams.h:10,
from protocol.h:14,
from net.h:20,
from alert.cpp:13:
bignum.h:371:13: error: ‘const class CBigNum’ has no member named ‘neg’
if (BN_is_negative(this))
^
In file included from chainparams.h:10:0,
from protocol.h:14,
from net.h:20,
from alert.cpp:13:
bignum.h: In member function ‘CBigNum CBigNum::pow(const CBigNum&) const’:
bignum.h:418:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_exp(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_exp(&ret, this, &e, pctx))
^
bignum.h: In member function ‘CBigNum CBigNum::mul_mod(const CBigNum&, const CBigNum&) const’:
bignum.h:431:49: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mod_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mod_mul(&ret, this, &b, &m, pctx))
^
bignum.h: In member function ‘CBigNum CBigNum::pow_mod(const CBigNum&, const CBigNum&) const’:
bignum.h:449:56: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mod_exp(BIGNUM*, const BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mod_exp(&ret, &inv, &posE, &m, pctx))
^
bignum.h:452:53: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mod_exp(BIGNUM*, const BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mod_exp(&ret, this, &e, &m, pctx))
^
bignum.h: In member function ‘CBigNum CBigNum::inverse(const CBigNum&) const’:
bignum.h:467:49: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_mod_inverse(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mod_inverse(&ret, this, &m, pctx))
^
bignum.h: In static member function ‘static CBigNum CBigNum::generatePrime(unsigned int, bool)’:
bignum.h:480:81: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_generate_prime_ex(BIGNUM*, int, int, const BIGNUM*, const BIGNUM*, BN_GENCB*)’
if(!BN_generate_prime_ex(&ret, numBits, (safe == true), NULL, NULL, NULL))
^
bignum.h: In member function ‘CBigNum CBigNum::gcd(const CBigNum&) const’:
bignum.h:493:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_gcd(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_gcd(&ret, this, &b, pctx))
^
bignum.h: In member function ‘bool CBigNum::isPrime(int) const’:
bignum.h:506:61: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_prime(const BIGNUM*, int, void (*)(int, int, void*), BN_CTX*, void*)’
int ret = BN_is_prime(this, checks, NULL, pctx, NULL);
^
In file included from bignum.h:14:0,
from chainparams.h:10,
from protocol.h:14,
from net.h:20,
from alert.cpp:13:
bignum.h: In member function ‘bool CBigNum::isOne() const’:
bignum.h:514:16: error: ‘const class CBigNum’ has no member named ‘top’
return BN_is_one(this);
^
bignum.h:514:16: error: ‘const class CBigNum’ has no member named ‘d’
return BN_is_one(this);
^
bignum.h:514:16: error: ‘const class CBigNum’ has no member named ‘top’
return BN_is_one(this);
^
bignum.h:514:16: error: ‘const class CBigNum’ has no member named ‘neg’
return BN_is_one(this);
^
bignum.h: In member function ‘bool CBigNum::operator!() const’:
bignum.h:520:16: error: ‘const class CBigNum’ has no member named ‘top’
return BN_is_zero(this);
^
In file included from chainparams.h:10:0,
from protocol.h:14,
from net.h:20,
from alert.cpp:13:
bignum.h: In member function ‘CBigNum& CBigNum::operator+=(const CBigNum&)’:
bignum.h:525:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’
if (!BN_add(this, this, &b))
^
bignum.h: In member function ‘CBigNum& CBigNum::operator*=(const CBigNum&)’:
bignum.h:539:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mul(this, this, &b, pctx))
^
makefile.unix:146: recipe for target 'obj/addrman.o' failed
make: *** [obj/addrman.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from txdb-leveldb.h:9:0,
from txdb.h:10,
from checkpoints.cpp:10:
main.h: At global scope:
main.h:135:25: error: ‘CTMemPool’ was not declared in this scope
bool AcceptToMemoryPool(CTMemPool& pool, CTransaction &tx, bool fLimitFree, bool* pfMissingInputs);
^
main.h:135:36: error: ‘pool’ was not declared in this scope
bool AcceptToMemoryPool(CTMemPool& pool, CTransaction &tx, bool fLimitFree, bool* pfMissingInputs);
^
main.h:135:55: error: expected primary-expression before ‘&’ token
bool AcceptToMemoryPool(CTMemPool& pool, CTransaction &tx, bool fLimitFree, bool* pfMissingInputs);
^
main.h:135:56: error: ‘tx’ was not declared in this scope
bool AcceptToMemoryPool(CTMemPool& pool, CTransaction &tx, bool fLimitFree, bool* pfMissingInputs);
^
main.h:135:60: error: expected primary-expression before ‘bool’
bool AcceptToMemoryPool(CTMemPool& pool, CTransaction &tx, bool fLimitFree, bool* pfMissingInputs);
^
main.h:135:77: error: expected primary-expression before ‘bool’
bool AcceptToMemoryPool(CTMemPool& pool, CTransaction &tx, bool fLimitFree, bool* pfMissingInputs);
^
main.h:135:98: error: expression list treated as compound expression in initializer [-fpermissive]
bool AcceptToMemoryPool(CTMemPool& pool, CTransaction &tx, bool fLimitFree, bool* pfMissingInputs);
^
In file included from txdb-leveldb.h:9:0,
from txdb.h:10,
from checkpoints.cpp:10:
main.h: In member function ‘bool CTransaction::IsFinal(int, int64_t) const’:
main.h:425:31: error: ‘AssertLockHeld’ was not declared in this scope
AssertLockHeld(cs_main);
^
makefile.unix:146: recipe for target 'obj/alert.o' failed
make: *** [obj/alert.o] Error 1
makefile.unix:146: recipe for target 'obj/checkpoints.o' failed
make: *** [obj/checkpoints.o] Error 1
I already added -std=c++11 to the makefile.unix but I'm still getting these errors. It seems that the OpenSSL version has been changed. Is that correct? I'm using "OpenSSL 1.0.1f 6 Jan 2014". Do I need to update to version 1.1.0 or how to solve the issue?