qtumproject / qtum

Qtum Core Wallet
https://qtum.org
MIT License
1.2k stars 398 forks source link

compile/linking problem on debian 12 #1021

Open cipig opened 8 months ago

cipig commented 8 months ago

QTUM wallet does not compile under debian 12, it fails at linking with this errors:

  CXXLD    qtum-cli
  CXXLD    qtum-tx
  CXXLD    qtum-util
  CXXLD    qtumd
/usr/bin/ld: libbitcoin_common.a(libbitcoin_common_a-sign.o): in function `MutableTransactionSignatureOutputCreator::CreateSig(SigningProvider const&, std::vector<unsigned char, std::allocator<unsigned char> >&, CKeyID const&, CScript const&, SigVersion) const':
/home/electrum/wallets/qtum/src/script/sign.cpp:100: undefined reference to `uint256 SignatureHashOutput<CMutableTransaction>(CScript const&, CMutableTransaction const&, unsigned int, int, long const&, SigVersion, PrecomputedTransactionData const*)'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:9598: qtum-tx] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/bin/ld: libbitcoin_common.a(libbitcoin_common_a-sign.o): in function `MutableTransactionSignatureOutputCreator::CreateSig(SigningProvider const&, std::vector<unsigned char, std::allocator<unsigned char> >&, CKeyID const&, CScript const&, SigVersion) const':
/home/electrum/wallets/qtum/src/script/sign.cpp:100: undefined reference to `uint256 SignatureHashOutput<CMutableTransaction>(CScript const&, CMutableTransaction const&, unsigned int, int, long const&, SigVersion, PrecomputedTransactionData const*)'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:9614: qtumd] Error 1

when compiled like this

git clone https://github.com/qtumproject/qtum --recursive
cd qtum
./autogen.sh
./configure --with-incompatible-bdb --with-gui=no --disable-tests --disable-bench --without-miniupnpc --disable-zmq --disable-wallet
make -j8

older version compiled just fine like this, though with debian 11

cipig commented 2 months ago

same problem with 25.1:

/usr/bin/ld: libbitcoin_common.a(libbitcoin_common_a-sign.o): in function `MutableTransactionSignatureOutputCreator::CreateSig(SigningProvider const&, std::vector<unsigned char, std::allocator<unsigned char> >&, CKeyID const&, CScript const&, SigVersion) const':
/home/electrum/wallets/qtum/src/script/sign.cpp:101: undefined reference to `uint256 SignatureHashOutput<CMutableTransaction>(CScript const&, CMutableTransaction const&, unsigned int, int, long const&, SigVersion, PrecomputedTransactionData const*)'