Last active
March 26, 2018 10:32
-
-
Save douglasdeodato/e318742615a628f6e5757841a68264bc to your computer and use it in GitHub Desktop.
Error during compiling bitbean-core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/home/ubuntu-synd-6/Desktop/bitbean-core/src -I/home/ubuntu-synd-6/Desktop/bitbean-core/src/obj -I/home/ubuntu-synd-6/Desktop/bitbean-core/src/leveldb/include -I/home/ubuntu-synd-6/Desktop/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 | |
In file included from chainparams.h:10:0, | |
from protocol.h:14, | |
from net.h:20, | |
from alert.cpp:13: | |
bignum.h: In copy constructor ‘CBigNum::CBigNum(const CBigNum&)’: | |
bignum.h:66:19: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 | |
: CBigNum() | |
^ | |
bignum.h: In constructor ‘CBigNum::CBigNum(signed char)’: | |
bignum.h:88:43: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 | |
CBigNum(signed char n) :CBigNum() { if (n >= 0) setulong(n); else set | |
^ | |
bignum.h: In constructor ‘CBigNum::CBigNum(short int)’: | |
bignum.h:89:43: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 | |
CBigNum(short n) :CBigNum() { if (n >= 0) setulong(n); else set | |
^ | |
bignum.h: In constructor ‘CBigNum::CBigNum(int)’: | |
bignum.h:90:43: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 | |
CBigNum(int n) :CBigNum() { if (n >= 0) setulong(n); else set | |
^ | |
bignum.h: In constructor ‘CBigNum::CBigNum(long int)’: | |
bignum.h:91:43: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 | |
CBigNum(long n) :CBigNum() { if (n >= 0) setulong(n); else set | |
^ | |
bignum.h: In constructor ‘CBigNum::CBigNum(long long int)’: | |
bignum.h:92:43: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 | |
CBigNum(long long n) :CBigNum() { setint64(n); } | |
^ | |
bignum.h: In constructor ‘CBigNum::CBigNum(unsigned char)’: | |
bignum.h:93:43: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 | |
CBigNum(unsigned char n) :CBigNum() { setulong(n); } | |
^ | |
bignum.h: In constructor ‘CBigNum::CBigNum(short unsigned int)’: | |
bignum.h:94:43: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 | |
CBigNum(unsigned short n) :CBigNum() { setulong(n); } | |
^ | |
bignum.h: In constructor ‘CBigNum::CBigNum(unsigned int)’: | |
bignum.h:95:43: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 | |
CBigNum(unsigned int n) :CBigNum() { setulong(n); } | |
^ | |
bignum.h: In constructor ‘CBigNum::CBigNum(long unsigned int)’: | |
bignum.h:96:43: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 | |
CBigNum(unsigned long n) :CBigNum() { setulong(n); } | |
^ | |
bignum.h: In constructor ‘CBigNum::CBigNum(long long unsigned int)’: | |
bignum.h:97:43: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 | |
CBigNum(unsigned long long n):CBigNum() { setuint64(n); } | |
^ | |
bignum.h: In constructor ‘CBigNum::CBigNum(uint256)’: | |
bignum.h:98:43: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 | |
explicit CBigNum(uint256 n) :CBigNum() { setuint256(n); } | |
^ | |
bignum.h: In constructor ‘CBigNum::CBigNum(const std::vector&)’: | |
bignum.h:101:19: warning: delegating constructors only available with -std=c++11 or -std=gnu++11 | |
: CBigNum() | |
^ | |
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::__cxx11::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)) | |
^ | |
In file included from alert.cpp:13:0: | |
net.h: In member function ‘unsigned int CNode::GetTotalRecvSize()’: | |
net.h:319:39: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11 | |
for (const CNetMessage &msg : vRecvMsg) | |
^ | |
net.h: In member function ‘void CNode::SetRecvVersion(int)’: | |
net.h:331:33: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11 | |
for (CNetMessage &msg : vRecvMsg) | |
^ | |
net.h: In function ‘void RelayInventory(const CInv&)’: | |
net.h:660:29: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11 | |
for (CNode* pnode : vNodes) | |
^ | |
alert.cpp: In member function ‘std::__cxx11::string CUnsignedAlert::ToString() const’: | |
alert.cpp:43:18: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11 | |
for (int n : setCancel) | |
^ | |
alert.cpp:46:28: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11 | |
for (std::string str : setSubVer) | |
^ | |
alert.cpp: In member function ‘bool CAlert::ProcessAlert(bool)’: | |
alert.cpp:218:55: warning: range-based ‘for’ loops only available with -std=c++11 or -std=gnu++11 | |
for (std::pair<const uint256, CAlert>& item : mapAlerts) | |
^ | |
makefile.unix:146: recipe for target 'obj/alert.o' failed | |
make: *** [obj/alert.o] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment