Bionic with system libs doesn’t link #24314

issue maflcko openend this issue on February 10, 2022
  1. maflcko commented at 8:45 pm on February 10, 2022: member

    Steps to reproduce on a fresh install of Ubuntu Bionic:

    0export DEBIAN_FRONTEND=noninteractive && apt update && apt install curl wget htop git vim ccache -y && git clone https://github.com/bitcoin/bitcoin.git ./bitcoin-core && cd bitcoin-core && apt install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3-zmq     libevent-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev  libsqlite3-dev libdb++-dev  gcc-8 g++-8 -y && ./autogen.sh && CXX=g++-8 CC=gcc-8 ./configure  --without-incompatible-bdb  && make -j $(nproc)
    

    Output:

     0  CXXLD    bitcoind
     1libbitcoin_util.a(libbitcoin_util_a-system.o): In function `boost::system::error_category::std_category::equivalent(std::error_code const&, int) const':
     2/usr/include/boost/system/error_code.hpp:686: undefined reference to `boost::system::generic_category()'
     3/usr/include/boost/system/error_code.hpp:689: undefined reference to `boost::system::generic_category()'
     4/usr/include/boost/system/error_code.hpp:701: undefined reference to `boost::system::generic_category()'
     5libbitcoin_util.a(libbitcoin_util_a-system.o): In function `boost::system::error_category::std_category::equivalent(int, std::error_condition const&) const':
     6/usr/include/boost/system/error_code.hpp:656: undefined reference to `boost::system::generic_category()'
     7/usr/include/boost/system/error_code.hpp:659: undefined reference to `boost::system::generic_category()'
     8libbitcoin_util.a(libbitcoin_util_a-system.o):/usr/include/boost/system/error_code.hpp:206: more undefined references to `boost::system::generic_category()' follow
     9libbitcoin_util.a(libbitcoin_util_a-system.o): In function `__static_initialization_and_destruction_0':
    10/usr/include/boost/system/error_code.hpp:210: undefined reference to `boost::system::system_category()'
    11libbitcoin_util.a(libbitcoin_util_a-system.o): In function `_GLOBAL__sub_I_BITCOIN_CONF_FILENAME':
    12/usr/include/boost/asio/error.hpp:230: undefined reference to `boost::system::system_category()'
    13collect2: error: ld returned 1 exit status
    14Makefile:5708: recipe for target 'bitcoind' failed
    15make[2]: *** [bitcoind] Error 1
    16make[2]: Leaving directory '/bitcoin-core/src'
    17Makefile:16758: recipe for target 'all-recursive' failed
    18make[1]: *** [all-recursive] Error 1
    19make[1]: Leaving directory '/bitcoin-core/src'
    20Makefile:814: recipe for target 'all-recursive' failed
    21make: *** [all-recursive] Error 1
    

    Initial report by @hebasto in #20744 (comment)

  2. maflcko added the label Bug on Feb 10, 2022
  3. maflcko added this to the milestone 23.0 on Feb 10, 2022
  4. maflcko added the label Build system on Feb 10, 2022
  5. fanquake closed this on Feb 14, 2022

  6. sidhujag referenced this in commit 691cecb1fe on Feb 15, 2022
  7. bitcoin locked this on Oct 11, 2023


maflcko

Labels
Bug Build system

Milestone
23.0


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 18:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me