Bitcoin Forum
June 22, 2024, 06:51:55 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to solve this error when compiling my altcoin wallet?  (Read 39 times)
mvagusta (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile WWW
January 29, 2021, 05:24:41 PM
 #1

Hi everyone. I am trying to create an altcoin using bitcoin clone but faced issue when i am running this command : make -f makefile.unix. May I know is there anyone able to help me to resolve this issue? Am using VB Ubuntu 20.04. Thanks

Quote
In file included from bignum.h:12,
                 from main.h:8,
                 from checkpoints.cpp:10:
util.h:246:22: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  246 |     return strprintf("%"PRI64d, n);
      |                      ^
In file included from main.h:10,
                 from checkpoints.cpp:10:
net.h:366:20: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  366 |             printf("askfor %s   %"PRI64d" (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str());
      |                    ^
In file included from checkpoints.cpp:10:
main.h:448:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  448 |         return strprintf("CTxOut(nValue=%"PRI64d".%08"PRI64d", scriptPubKey=%s)", nValue / COIN, nValue % COIN, scriptPubKey.ToString().substr(0,30).c_str());
      |                          ^
main.h:448:49: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  448 |         return strprintf("CTxOut(nValue=%"PRI64d".%08"PRI64d", scriptPubKey=%s)", nValue / COIN, nValue % COIN, scriptPubKey.ToString().substr(0,30).c_str());
      |                                                 ^
main.h:641:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  641 |         str += strprintf("CTransaction(hash=%s, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%u)\n",
      |                          ^
main.h:641:74: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
  641 |  += strprintf("CTransaction(hash=%s, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%u)\n",
      |                                                               ^

main.h:1478:16: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
 1478 |         printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%"PRIszu")\n",
      |                ^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:51:24: error: invalid use of incomplete type ‘BIGNUM’ {aka ‘struct bignum_st’}
   51 | class CBigNum : public BIGNUM
      |                        ^~~~~~
In file included from /usr/include/openssl/bn.h:19,
                 from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM’ {aka ‘struct bignum_st’}
   80 | typedef struct bignum_st BIGNUM;
      |                ^~~~~~~~~
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In constructor ‘CBigNum::CBigNum()’:
bignum.h:56:9: error: ‘BN_init’ was not declared in this scope
   56 |         BN_init(this);
      |         ^~~~~~~
bignum.h: In copy constructor ‘CBigNum::CBigNum(const CBigNum&)’:
bignum.h:61:9: error: ‘BN_init’ was not declared in this scope
   61 |         BN_init(this);
      |         ^~~~~~~
bignum.h:62:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
   62 |         if (!BN_copy(this, &b))
      |                              ^
      |                              |
      |                              CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:219:25: note:   initializing argument 1 of ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’
  219 | BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b);
      |                 ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:64:31: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
   64 |             BN_clear_free(this);
      |                               ^
      |                               |
      |                               CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:218:28: note:   initializing argument 1 of ‘void BN_clear_free(BIGNUM*)’
  218 | void BN_clear_free(BIGNUM *a);
      |                    ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘CBigNum& CBigNum::operator=(const CBigNum&)’:
bignum.h:71:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
   71 |         if (!BN_copy(this, &b))
      |                              ^
      |                              |
      |                              CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:219:25: note:   initializing argument 1 of ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’
  219 | BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b);
      |                 ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In destructor ‘CBigNum::~CBigNum()’:
bignum.h:78:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
   78 |         BN_clear_free(this);
      |                           ^
      |                           |
      |                           CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:218:28: note:   initializing argument 1 of ‘void BN_clear_free(BIGNUM*)’
  218 | void BN_clear_free(BIGNUM *a);
      |                    ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In constructor ‘CBigNum::CBigNum(signed char)’:
bignum.h:82:35: error: ‘BN_init’ was not declared in this scope
   82 |     CBigNum(signed char n)      { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
      |                                   ^~~~~~~
bignum.h: In constructor ‘CBigNum::CBigNum(short int)’:
bignum.h:83:35: error: ‘BN_init’ was not declared in this scope
   83 |     CBigNum(short n)            { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
      |                                   ^~~~~~~
bignum.h: In constructor ‘CBigNum::CBigNum(int)’:
bignum.h:84:35: error: ‘BN_init’ was not declared in this scope
   84 |     CBigNum(int n)              { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
      |                                   ^~~~~~~
bignum.h: In constructor ‘CBigNum::CBigNum(long int)’:
bignum.h:85:35: error: ‘BN_init’ was not declared in this scope
   85 |     CBigNum(long n)             { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
      |                                   ^~~~~~~
bignum.h: In constructor ‘CBigNum::CBigNum(int64)’:
bignum.h:86:35: error: ‘BN_init’ was not declared in this scope
   86 |     CBigNum(int64 n)            { BN_init(this); setint64(n); }
      |                                   ^~~~~~~
bignum.h: In constructor ‘CBigNum::CBigNum(unsigned char)’:
bignum.h:87:35: error: ‘BN_init’ was not declared in this scope
   87 |     CBigNum(unsigned char n)    { BN_init(this); setulong(n); }
      |                                   ^~~~~~~
bignum.h: In constructor ‘CBigNum::CBigNum(short unsigned int)’:
bignum.h:88:35: error: ‘BN_init’ was not declared in this scope
   88 |     CBigNum(unsigned short n)   { BN_init(this); setulong(n); }
      |                                   ^~~~~~~
bignum.h: In constructor ‘CBigNum::CBigNum(unsigned int)’:
bignum.h:89:35: error: ‘BN_init’ was not declared in this scope
   89 |     CBigNum(unsigned int n)     { BN_init(this); setulong(n); }
      |                                   ^~~~~~~
bignum.h: In constructor ‘CBigNum::CBigNum(long unsigned int)’:
bignum.h:90:35: error: ‘BN_init’ was not declared in this scope
   90 |     CBigNum(unsigned long n)    { BN_init(this); setulong(n); }
      |                                   ^~~~~~~
bignum.h: In constructor ‘CBigNum::CBigNum(uint64)’:
bignum.h:91:35: error: ‘BN_init’ was not declared in this scope
   91 |     CBigNum(uint64 n)           { BN_init(this); setuint64(n); }
      |                                   ^~~~~~~
bignum.h: In constructor ‘CBigNum::CBigNum(uint256)’:
bignum.h:92:35: error: ‘BN_init’ was not declared in this scope
   92 |     explicit CBigNum(uint256 n) { BN_init(this); setuint256(n); }
      |                                   ^~~~~~~
bignum.h: In constructor ‘CBigNum::CBigNum(const std::vector<unsigned char>&)’:
bignum.h:96:9: error: ‘BN_init’ was not declared in this scope
   96 |         BN_init(this);
      |         ^~~~~~~
bignum.h: In member function ‘void CBigNum::setulong(long unsigned int)’:
bignum.h:102:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  102 |         if (!BN_set_word(this, n))
      |                                 ^
      |                                 |
      |                                 CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:271:25: note:   initializing argument 1 of ‘int BN_set_word(BIGNUM*, long unsigned int)’
  271 | int BN_set_word(BIGNUM *a, BN_ULONG w);
      |                 ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘long unsigned int CBigNum::getulong() const’:
bignum.h:108:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  108 |         return BN_get_word(this);
      |                                ^
      |                                |
      |                                const CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:272:36: note:   initializing argument 1 of ‘long unsigned int BN_get_word(const BIGNUM*)’
  272 | BN_ULONG BN_get_word(const BIGNUM *a);
      |                      ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘unsigned int CBigNum::getuint() const’:
bignum.h:113:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  113 |         return BN_get_word(this);
      |                                ^
      |                                |
      |                                const CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:272:36: note:   initializing argument 1 of ‘long unsigned int BN_get_word(const BIGNUM*)’
  272 | BN_ULONG BN_get_word(const BIGNUM *a);
      |                      ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘int CBigNum::getint() const’:
bignum.h:118:43: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  118 |         unsigned long n = BN_get_word(this);
      |                                           ^
      |                                           |
      |                                           const CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:272:36: note:   initializing argument 1 of ‘long unsigned int BN_get_word(const BIGNUM*)’
  272 | BN_ULONG BN_get_word(const BIGNUM *a);
      |                      ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:119:33: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  119 |         if (!BN_is_negative(this))
      |                                 ^
      |                                 |
      |                                 const CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:243:34: note:   initializing argument 1 of ‘int BN_is_negative(const BIGNUM*)’
  243 | int BN_is_negative(const BIGNUM *b);
      |                    ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘void CBigNum::setint64(int64)’:
bignum.h:167:37: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  167 |         BN_mpi2bn(pch, p - pch, this);
      |                                     ^
      |                                     |
      |                                     CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:226:60: note:   initializing argument 3 of ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’
  226 | BIGNUM *BN_mpi2bn(const unsigned char *s, int len, BIGNUM *ret);
      |                                                    ~~~~~~~~^~~
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘void CBigNum::setuint64(uint64)’:
bignum.h:194:37: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  194 |         BN_mpi2bn(pch, p - pch, this);
      |                                     ^
      |                                     |
      |                                     CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:226:60: note:   initializing argument 3 of ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’
  226 | BIGNUM *BN_mpi2bn(const unsigned char *s, int len, BIGNUM *ret);
      |                                                    ~~~~~~~~^~~
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘void CBigNum::setuint256(uint256)’:
bignum.h:222:37: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  222 |         BN_mpi2bn(pch, p - pch, this);
      |                                     ^
      |                                     |
      |                                     CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:226:60: note:   initializing argument 3 of ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’
  226 | BIGNUM *BN_mpi2bn(const unsigned char *s, int len, BIGNUM *ret);
      |                                                    ~~~~~~~~^~~
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘uint256 CBigNum::getuint256() const’:
bignum.h:227:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  227 |         unsigned int nSize = BN_bn2mpi(this, NULL);
      |                                                  ^
      |                                                  |
      |                                                  const CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:227:29: note:   initializing argument 1 of ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
  227 | int BN_bn2mpi(const BIGNUM *a, unsigned char *to);
      |               ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:231:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  231 |         BN_bn2mpi(this, &vch[0]);
      |                                ^
      |                                |
      |                                const CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:227:29: note:   initializing argument 1 of ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
  227 | int BN_bn2mpi(const BIGNUM *a, unsigned char *to);
      |               ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘void CBigNum::setvch(const std::vector<unsigned char>&)’:
bignum.h:252:46: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  252 |         BN_mpi2bn(&vch2[0], vch2.size(), this);
      |                                              ^
      |                                              |
      |                                              CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:226:60: note:   initializing argument 3 of ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’
  226 | BIGNUM *BN_mpi2bn(const unsigned char *s, int len, BIGNUM *ret);
      |                                                    ~~~~~~~~^~~
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘std::vector<unsigned char> CBigNum::getvch() const’:
bignum.h:257:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  257 |         unsigned int nSize = BN_bn2mpi(this, NULL);
      |                                                  ^
      |                                                  |
      |                                                  const CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:227:29: note:   initializing argument 1 of ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
  227 | int BN_bn2mpi(const BIGNUM *a, unsigned char *to);
      |               ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:261:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  261 |         BN_bn2mpi(this, &vch[0]);
      |                                ^
      |                                |
      |                                const CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:227:29: note:   initializing argument 1 of ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
  227 | int BN_bn2mpi(const BIGNUM *a, unsigned char *to);
      |               ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘CBigNum& CBigNum::SetCompact(unsigned int)’:
bignum.h:297:36: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  297 |             BN_set_word(this, nWord);
      |                                    ^
      |                                    |
      |                                    CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:271:25: note:   initializing argument 1 of ‘int BN_set_word(BIGNUM*, long unsigned int)’
  271 | int BN_set_word(BIGNUM *a, BN_ULONG w);
      |                 ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:301:36: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  301 |             BN_set_word(this, nWord);
      |                                    ^
      |                                    |
      |                                    CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:271:25: note:   initializing argument 1 of ‘int BN_set_word(BIGNUM*, long unsigned int)’
  271 | int BN_set_word(BIGNUM *a, BN_ULONG w);
      |                 ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:302:46: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  302 |             BN_lshift(this, this, 8*(nSize-3));
      |                                              ^
      |                                              |
      |                                              CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:277:23: note:   initializing argument 1 of ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’
  277 | int BN_lshift(BIGNUM *r, const BIGNUM *a, int n);
      |               ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:304:40: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  304 |         BN_set_negative(this, fNegative);
      |                                        ^
      |                                        |
      |                                        CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:238:30: note:   initializing argument 1 of ‘void BN_set_negative(BIGNUM*, int)’
  238 | void BN_set_negative(BIGNUM *b, int n);
      |                      ~~~~~~~~^
bignum.h: In member function ‘unsigned int CBigNum::GetCompact() const’:
bignum.h:310:30: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  310 |         unsigned int nSize = BN_num_bytes(this);
      |                              ^~~~~~~~~~~~
      |                              |
      |                              const CBigNum*
/usr/include/openssl/bn.h:213:31: note:   initializing argument 1 of ‘int BN_num_bits(const BIGNUM*)’
  213 | int BN_num_bits(const BIGNUM *a);
      |                 ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:313:40: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  313 |             nCompact = BN_get_word(this) << 8*(3-nSize);
      |                                        ^
      |                                        |
      |                                        const CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:272:36: note:   initializing argument 1 of ‘long unsigned int BN_get_word(const BIGNUM*)’
  272 | BN_ULONG BN_get_word(const BIGNUM *a);
      |                      ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:317:23: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  317 |             BN_rshift(&bn, this, 8*(nSize-3));
      |                       ^~~
      |                       |
      |                       CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:302:23: note:   initializing argument 1 of ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’
  302 | int BN_rshift(BIGNUM *r, const BIGNUM *a, int n);
      |               ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:318:36: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  318 |             nCompact = BN_get_word(&bn);
      |                                    ^~~
      |                                    |
      |                                    CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:272:36: note:   initializing argument 1 of ‘long unsigned int BN_get_word(const BIGNUM*)’
  272 | BN_ULONG BN_get_word(const BIGNUM *a);
      |                      ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:328:41: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  328 |         nCompact |= (BN_is_negative(this) ? 0x00800000 : 0);
      |                                         ^
      |                                         |
      |                                         const CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:243:34: note:   initializing argument 1 of ‘int BN_is_negative(const BIGNUM*)’
  243 | int BN_is_negative(const BIGNUM *b);
      |                    ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘std::string CBigNum::ToString(int) const’:
bignum.h:369:25: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  369 |         BN_set_negative(&bn, false);
      |                         ^~~
      |                         |
      |                         CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:238:30: note:   initializing argument 1 of ‘void BN_set_negative(BIGNUM*, int)’
  238 | void BN_set_negative(BIGNUM *b, int n);
      |                      ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:372:20: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  372 |         if (BN_cmp(&bn, &bn0) == 0)
      |                    ^~~
      |                    |
      |                    CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:274:26: note:   initializing argument 1 of ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
  274 | int BN_cmp(const BIGNUM *a, const BIGNUM *b);
      |            ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:374:23: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  374 |         while (BN_cmp(&bn, &bn0) > 0)
      |                       ^~~
      |                       |
      |                       CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:274:26: note:   initializing argument 1 of ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
  274 | int BN_cmp(const BIGNUM *a, const BIGNUM *b);
      |            ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:376:25: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  376 |             if (!BN_div(&dv, &rem, &bn, &bnBase, pctx))
      |                         ^~~
      |                         |
      |                         CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:245:20: note:   initializing argument 1 of ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
  245 | int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
      |            ~~~~~~~~^~
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:382:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  382 |         if (BN_is_negative(this))
      |                                ^
      |                                |
      |                                const CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:243:34: note:   initializing argument 1 of ‘int BN_is_negative(const BIGNUM*)’
  243 | int BN_is_negative(const BIGNUM *b);
      |                    ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘bool CBigNum::operator!() const’:
bignum.h:415:31: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  415 |         return BN_is_zero(this);
      |                               ^
      |                               |
      |                               const CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:184:30: note:   initializing argument 1 of ‘int BN_is_zero(const BIGNUM*)’
  184 | int BN_is_zero(const BIGNUM *a);
      |                ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘CBigNum& CBigNum::operator+=(const CBigNum&)’:
bignum.h:420:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  420 |         if (!BN_add(this, this, &b))
      |                                   ^
      |                                   |
      |                                   CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:231:20: note:   initializing argument 1 of ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’
  231 | int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
      |            ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘CBigNum& CBigNum::operator*=(const CBigNum&)’:
bignum.h:434:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  434 |         if (!BN_mul(this, this, &b, pctx))
      |                                         ^
      |                                         |
      |                                         CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:232:20: note:   initializing argument 1 of ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
  232 | int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
      |            ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘CBigNum& CBigNum::operator<<=(unsigned int)’:
bignum.h:453:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  453 |         if (!BN_lshift(this, this, shift))
      |                                         ^
      |                                         |
      |                                         CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:277:23: note:   initializing argument 1 of ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’
  277 | int BN_lshift(BIGNUM *r, const BIGNUM *a, int n);
      |               ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘CBigNum& CBigNum::operator>>=(unsigned int)’:
bignum.h:464:20: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  464 |         if (BN_cmp(&a, this) > 0)
      |                    ^~
      |                    |
      |                    CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:274:26: note:   initializing argument 1 of ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
  274 | int BN_cmp(const BIGNUM *a, const BIGNUM *b);
      |            ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h:470:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  470 |         if (!BN_rshift(this, this, shift))
      |                                         ^
      |                                         |
      |                                         CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:302:23: note:   initializing argument 1 of ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’
  302 | int BN_rshift(BIGNUM *r, const BIGNUM *a, int n);
      |               ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘CBigNum& CBigNum::operator++()’:
bignum.h:479:47: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  479 |         if (!BN_add(this, this, BN_value_one()))
      |                                               ^
      |                                               |
      |                                               CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:231:20: note:   initializing argument 1 of ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’
  231 | int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
      |            ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In member function ‘CBigNum& CBigNum::operator--()’:
bignum.h:496:21: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  496 |         if (!BN_sub(&r, this, BN_value_one()))
      |                     ^~
      |                     |
      |                     CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:228:20: note:   initializing argument 1 of ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’
  228 | int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
      |            ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In function ‘const CBigNum operator+(const CBigNum&, const CBigNum&)’:
bignum.h:521:17: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  521 |     if (!BN_add(&r, &a, &b))
      |                 ^~
      |                 |
      |                 CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:231:20: note:   initializing argument 1 of ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’
  231 | int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
      |            ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In function ‘const CBigNum operator-(const CBigNum&, const CBigNum&)’:
bignum.h:529:17: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  529 |     if (!BN_sub(&r, &a, &b))
      |                 ^~
      |                 |
      |                 CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:228:20: note:   initializing argument 1 of ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’
  228 | int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
      |            ~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In function ‘const CBigNum operator-(const CBigNum&)’:
bignum.h:537:41: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
  537 |     BN_set_negative(&r, !BN_is_negative(&r));
      |                                         ^~
      |                                         |
      |                                         CBigNum*
In file included from bignum.h:10,
                 from main.h:8,
                 from checkpoints.cpp:10:
/usr/include/openssl/bn.h:243:34: note:   initializing argument 1 of ‘int BN_is_negative(const BIGNUM*)’
  243 | int BN_is_negative(const BIGNUM *b);
      |                    ~~~~~~~~~~~~~~^
In file included from main.h:8,
                 from checkpoints.cpp:10:
bignum.h: In function ‘const CBigNum operator*(const CBigNum&, const CBigNum&)’:
bignum.h:545:17: error: cannot convert ‘CBigNum*’ to ‘BIGNUM*’ {aka ‘bignum_st*’}
  545 |     if (!BN_mul(&r, &a, &b, pctx))
      | 
mvagusta (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile WWW
January 29, 2021, 07:11:53 PM
 #2

I had tried downgrading to OpenSSL 1.0.1G and 1.0.1F but still getting errors.
May I know how can I resolve them? Thanks
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!