Post
Topic
Board Altcoin Discussion
Re: [HOWTO] compile altcoin for windows on linux using mxe and mingw
by
widecash
on 25/06/2018, 02:25:04 UTC
i followed your guide step by step and installed all required packages, but when i try to run ./compile-blk.sh i get this output:






In file included from src/main.h:8:0,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/bignum.h:531: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);
                                                             ^
src/bignum.h: In member function 'bool CBigNum::isOne() const':
src/bignum.h:539:30: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_one(const BIGNUM*)'
         return BN_is_one(this);
                              ^
src/bignum.h: In member function 'bool CBigNum::operator!() const':
src/bignum.h:545: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:550: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:564: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:583: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:594: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:600: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:609: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:626: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:653: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:661: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:669: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:677: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:686: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))
                                       ^
src/bignum.h: In function 'const CBigNum operator%(const CBigNum&, const CBigNum&)':
src/bignum.h:695:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_nnmod(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
     if (!BN_nnmod(&r, &a, &b, pctx))
                                   ^
src/bignum.h: In function 'const CBigNum operator<<(const CBigNum&, unsigned int)':
src/bignum.h:703: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:715:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 perator==(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:716:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 perator!=(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:717:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 perator<=(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:718:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 perator>=(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:719:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 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:720:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 operator>(const CBigNum& a, const CBigNum& b)  { return (BN_cmp(&a, &b) > 0); }
                                                                       ^
In file included from src/addrman.h:9:0,
                 from src/net.h:20,
                 from src/main.h:10,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/util.h: In function 'std::__cxx11::string i64tostr(int64_t)':
src/util.h:182:69: warning: unknown conversion type character 'l' in format [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/util.h:251:12: note: in expansion of macro 'strprintf'
     return strprintf("%"PRId64, n);
            ^
src/util.h:182:69: warning: too many arguments for format [-Wformat-extra-args]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/util.h:251:12: note: in expansion of macro 'strprintf'
     return strprintf("%"PRId64, n);
            ^
In file included from src/main.h:10:0,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/net.h: In member function 'void CNode::AskFor(const CInv&)':
src/net.h:380:149: warning: unknown conversion type character 'l' in format [-Wformat=]
 (), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str());
                                                                              ^
src/net.h:380:149: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'int64_t {aka long long int}' [-Wformat=]
src/net.h:380:149: warning: too many arguments for format [-Wformat-extra-args]
In file included from src/addrman.h:9:0,
                 from src/net.h:20,
                 from src/main.h:10,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/main.h: In member function 'std::__cxx11::string CBlockIndex::ToString() const':
src/util.h:182:69: warning: unknown conversion type character 'l' in format [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: format '%x' expects argument of type 'unsigned int', but argument 13 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: format '%s' expects argument of type 'char*', but argument 14 has type 'unsigned int' [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: format '%d' expects argument of type 'int', but argument 16 has type 'const char*' [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: format '%s' expects argument of type 'char*', but argument 17 has type 'unsigned int' [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: too many arguments for format [-Wformat-extra-args]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/txdb-leveldb.cpp: In member function 'bool CTxDB::LoadBlockIndex()':
src/txdb-leveldb.cpp:409:160: warning: unknown conversion type character 'l' in format [-Wformat=]
 nt height=%d, modifier=0x%016"PRIx64, pindex->nHeight, pindex->nStakeModifier);
                                                                              ^
src/txdb-leveldb.cpp:409:160: warning: too many arguments for format [-Wformat-extra-args]
Makefile.Release:10241: recipe for target 'build/txdb-leveldb.o' failed
make: *** [build/txdb-leveldb.o] Error 1








i sent you as much of it as i could, because i dont know what/where the mistake is


Downgrade SSL is the solution.