ComputerGenie
|
|
June 24, 2017, 01:20:51 AM |
|
New Curecoin client out v1.9.2.1....
OK, for the 1st time in forever, I tried a clean install (instead of a refresh of a saved image) of Debian. I can't get it to build in Debian 9. In file included from src/main.h:8:0, from src/wallet.h:13, from src/init.h:8, from src/qt/curecoin.cpp:11: src/bignum.h:51: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 src/bignum.h:10, from src/main.h:8, from src/wallet.h:13, from src/init.h:8, from src/qt/curecoin.cpp:11: /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 src/main.h:8:0, from src/wallet.h:13, from src/init.h:8, from src/qt/curecoin.cpp:11: src/bignum.h: In constructor ‘CBigNum::CBigNum()’: src/bignum.h:56:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ src/bignum.h: In copy constructor ‘CBigNum::CBigNum(const CBigNum&)’: src/bignum.h:61:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ src/bignum.h:62: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)) ^ src/bignum.h:64:31: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’ BN_clear_free(this); ^ src/bignum.h: In member function ‘CBigNum& CBigNum::operator=(const CBigNum&)’: src/bignum.h:71: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)) ^ src/bignum.h: In destructor ‘CBigNum::~CBigNum()’: src/bignum.h:78:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’ BN_clear_free(this); ^ src/bignum.h: In constructor ‘CBigNum::CBigNum(signed char)’: src/bignum.h:82:47: error: ‘BN_init’ was not declared in this scope CBigNum(signed char n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ src/bignum.h: In constructor ‘CBigNum::CBigNum(short int)’: src/bignum.h:83:47: error: ‘BN_init’ was not declared in this scope CBigNum(short n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ src/bignum.h: In constructor ‘CBigNum::CBigNum(int)’: src/bignum.h:84:47: error: ‘BN_init’ was not declared in this scope CBigNum(int n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ src/bignum.h: In constructor ‘CBigNum::CBigNum(long int)’: src/bignum.h:85:47: error: ‘BN_init’ was not declared in this scope CBigNum(long n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); } ^ src/bignum.h: In constructor ‘CBigNum::CBigNum(int64)’: src/bignum.h:86:47: error: ‘BN_init’ was not declared in this scope CBigNum(int64 n) { BN_init(this); setint64(n); } ^ src/bignum.h: In constructor ‘CBigNum::CBigNum(unsigned char)’: src/bignum.h:87:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned char n) { BN_init(this); setulong(n); } ^ src/bignum.h: In constructor ‘CBigNum::CBigNum(short unsigned int)’: src/bignum.h:88:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned short n) { BN_init(this); setulong(n); } ^ src/bignum.h: In constructor ‘CBigNum::CBigNum(unsigned int)’: src/bignum.h:89:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned int n) { BN_init(this); setulong(n); } ^ src/bignum.h: In constructor ‘CBigNum::CBigNum(long unsigned int)’: src/bignum.h:90:47: error: ‘BN_init’ was not declared in this scope CBigNum(unsigned long n) { BN_init(this); setulong(n); } ^ src/bignum.h: In constructor ‘CBigNum::CBigNum(uint64)’: src/bignum.h:91:47: error: ‘BN_init’ was not declared in this scope CBigNum(uint64 n) { BN_init(this); setuint64(n); } ^ src/bignum.h: In constructor ‘CBigNum::CBigNum(uint256)’: src/bignum.h:92:47: error: ‘BN_init’ was not declared in this scope explicit CBigNum(uint256 n) { BN_init(this); setuint256(n); } ^ src/bignum.h: In constructor ‘CBigNum::CBigNum(const std::vector<unsigned char>&)’: src/bignum.h:96:21: error: ‘BN_init’ was not declared in this scope BN_init(this); ^ src/bignum.h: In member function ‘void CBigNum::setulong(long unsigned int)’: src/bignum.h:102:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, long unsigned int)’ if (!BN_set_word(this, n)) ^ src/bignum.h: In member function ‘long unsigned int CBigNum::getulong() const’: src/bignum.h:108:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ return BN_get_word(this); ^ src/bignum.h: In member function ‘unsigned int CBigNum::getuint() const’: src/bignum.h:113:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ return BN_get_word(this); ^ src/bignum.h: In member function ‘int CBigNum::getint() const’: src/bignum.h:118:43: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘long unsigned int BN_get_word(const BIGNUM*)’ unsigned long n = BN_get_word(this); ^ src/bignum.h:119:33: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ if (!BN_is_negative(this)) ^ In file included from src/main.h:8:0, from src/wallet.h:13, from src/init.h:8, from src/qt/curecoin.cpp:11: src/bignum.h: In member function ‘void CBigNum::setint64(int64)’: src/bignum.h:165:37: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, p - pch, this); ^ src/bignum.h: In member function ‘uint64 CBigNum::getuint64()’: src/bignum.h:170:50: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ unsigned int nSize = BN_bn2mpi(this, NULL); ^ src/bignum.h:174:32: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ BN_bn2mpi(this, &vch[0]); ^ src/bignum.h: In member function ‘void CBigNum::setuint64(uint64)’: src/bignum.h:207:37: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, p - pch, this); ^ src/bignum.h: In member function ‘void CBigNum::setuint256(uint256)’: src/bignum.h:235:37: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(pch, p - pch, this); ^ src/bignum.h: In member function ‘uint256 CBigNum::getuint256()’: src/bignum.h:240:50: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ unsigned int nSize = BN_bn2mpi(this, NULL); ^ src/bignum.h:244:32: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ BN_bn2mpi(this, &vch[0]); ^ src/bignum.h: In member function ‘void CBigNum::setvch(const std::vector<unsigned char>&)’: src/bignum.h:266:46: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(&vch2[0], vch2.size(), this); ^ src/bignum.h: In member function ‘std::vector<unsigned char> CBigNum::getvch() const’: src/bignum.h:271:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ unsigned int nSize = BN_bn2mpi(this, NULL); ^ src/bignum.h:275:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ BN_bn2mpi(this, &vch[0]); ^ src/bignum.h: In member function ‘CBigNum& CBigNum::SetCompact(unsigned int)’: src/bignum.h:289:44: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’ BN_mpi2bn(&vch[0], vch.size(), this); ^ src/bignum.h: In member function ‘unsigned int CBigNum::GetCompact() const’: src/bignum.h:295:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ unsigned int nSize = BN_bn2mpi(this, NULL); ^ src/bignum.h:298:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’ BN_bn2mpi(this, &vch[0]); ^ src/bignum.h: In member function ‘std::__cxx11::string CBigNum::ToString(int) const’: src/bignum.h:343: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); ^ src/bignum.h:346: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) ^ src/bignum.h:348: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) ^ src/bignum.h:350: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)) ^ src/bignum.h:356:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’ if (BN_is_negative(this)) ^ src/bignum.h: In member function ‘bool CBigNum::operator!() const’: src/bignum.h:389:31: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_zero(const BIGNUM*)’ return BN_is_zero(this); ^ src/bignum.h: In member function ‘CBigNum& CBigNum::operator+=(const CBigNum&)’: src/bignum.h:394: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)) ^ src/bignum.h: In member function ‘CBigNum& CBigNum::operator*=(const CBigNum&)’: src/bignum.h:408: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)) ^ src/bignum.h: In member function ‘CBigNum& CBigNum::operator<<=(unsigned int)’: src/bignum.h:427:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_lshift(this, this, shift)) ^ src/bignum.h: In member function ‘CBigNum& CBigNum::operator>>=(unsigned int)’: src/bignum.h:438:28: 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(&a, this) > 0) ^ src/bignum.h:444:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_rshift(this, this, shift)) ^ src/bignum.h: In member function ‘CBigNum& CBigNum::operator++()’: src/bignum.h:453:47: 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, BN_value_one())) ^ src/bignum.h: In member function ‘CBigNum& CBigNum::operator--()’: src/bignum.h:470:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_sub(&r, this, BN_value_one())) ^ src/bignum.h: In function ‘const CBigNum operator+(const CBigNum&, const CBigNum&)’: src/bignum.h:495:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_add(&r, &a, &b)) ^ src/bignum.h: In function ‘const CBigNum operator-(const CBigNum&, const CBigNum&)’: src/bignum.h:503:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’ if (!BN_sub(&r, &a, &b)) ^ src/bignum.h: In function ‘const CBigNum operator-(const CBigNum&)’: src/bignum.h:511: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)); ^ src/bignum.h: In function ‘const CBigNum operator*(const CBigNum&, const CBigNum&)’: src/bignum.h:519:33: 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(&r, &a, &b, pctx)) ^ src/bignum.h: In function ‘const CBigNum operator/(const CBigNum&, const CBigNum&)’: src/bignum.h:528:39: 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(&r, NULL, &a, &b, pctx)) ^ In file included from src/bignum.h:10:0, from src/main.h:8, from src/wallet.h:13, from src/init.h:8, from src/qt/curecoin.cpp:11: src/bignum.h: In function ‘const CBigNum operator%(const CBigNum&, const CBigNum&)’: src/bignum.h:537:10: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘2’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’ if (!BN_mod(&r, &a, &b, pctx)) ^ In file included from src/main.h:8:0, from src/wallet.h:13, from src/init.h:8, from src/qt/curecoin.cpp:11: src/bignum.h: In function ‘const CBigNum operator<<(const CBigNum&, unsigned int)’: src/bignum.h:545:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’ if (!BN_lshift(&r, &a, shift)) ^ src/bignum.h: In function ‘bool operator==(const CBigNum&, const CBigNum&)’: src/bignum.h:557:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator==(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) == 0); } ^ src/bignum.h: In function ‘bool operator!=(const CBigNum&, const CBigNum&)’: src/bignum.h:558:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator!=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) != 0); } ^ src/bignum.h: In function ‘bool operator<=(const CBigNum&, const CBigNum&)’: src/bignum.h:559:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator<=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) <= 0); } ^ src/bignum.h: In function ‘bool operator>=(const CBigNum&, const CBigNum&)’: src/bignum.h:560:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator>=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) >= 0); } ^ src/bignum.h: In function ‘bool operator<(const CBigNum&, const CBigNum&)’: src/bignum.h:561:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator<(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) < 0); } ^ src/bignum.h: In function ‘bool operator>(const CBigNum&, const CBigNum&)’: src/bignum.h:562:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’ inline bool operator>(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) > 0); } ^ In file included from src/walletdb.h:9:0, from src/wallet.h:19, from src/init.h:8, from src/qt/curecoin.cpp:11: src/base58.h: In function ‘std::__cxx11::string EncodeBase58(const unsigned char*, const unsigned char*)’: src/base58.h:51:48: 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, &bn58, pctx)) ^ src/base58.h: In function ‘bool DecodeBase58(const char*, std::vector<unsigned char>&)’: src/base58.h:98:42: 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(&bn, &bn, &bn58, pctx)) ^ Makefile:1122: recipe for target 'build/curecoin.o' failed make: *** [build/curecoin.o] Error 1
Any ideas?
|