Thursday, November 14, 2024
HomeBitcoinbitcoin core - Construct section fails with undefined reference to `evhttp_uridecode` -...

bitcoin core – Construct section fails with undefined reference to `evhttp_uridecode` – Bitcoin Stack Trade


I attempt to construct Bitcoin Core on my Ubuntu 23.10 machine utilizing the “Construct Unix” documentation web page but it surely fails with undefined reference to evhttp_uridecode.

Listed here are the small print:

I began by cloning the repo regionally and utilizing the v26.0 tag:

git clone [email protected]:bitcoin/bitcoin.git
cd bitcoin
git checkout v26.0

Then put in the mandatory packages:

sudo apt replace && sudo apt improve -y
sudo apt set up -y build-essential libtool autotools-dev automake pkg-config bsdmainutils python3
sudo apt set up -y libevent-dev libboost-dev
sudo apt set up -y libzmq3-dev systemtap-sdt-dev

I am not occupied with constructing the pockets, however simply the P2P protocol, so I skipped the opposite installs.

Then begins the construct section:

./autogen.sh
./configure --disable-bench --disable-fuzz-binary --enable-debug --without-gui 
            --enable-suppress-external-warnings --disable-wallet
make -j 4

This final make instructions returns an error after a while:

...
  CXXLD    libbitcoinconsensus.la
  AR       libbitcoin_util.a
  CXXLD    bitcoin-cli
  CXXLD    bitcoin-tx
  CXXLD    bitcoin-util
/usr/bin/ld: libbitcoin_common.a(libbitcoin_common_a-url.o): in operate `urlDecode(std::__cxx11::basic_string, std::allocator > const&)':
/house/hassen/Workspace/OpenSource/bitcoin/src/frequent/url.cpp:15:(.textual content+0x61): undefined reference to `evhttp_uridecode'
/usr/bin/ld: libbitcoin_common.a(libbitcoin_common_a-url.o): in operate `urlDecode(std::__cxx11::basic_string, std::allocator > const&)':
/house/hassen/Workspace/OpenSource/bitcoin/src/frequent/url.cpp:15:(.textual content+0x61): undefined reference to `evhttp_uridecode'
collect2: error: ld returned 1 exit standing
make[2]: *** [Makefile:7407: bitcoin-util] Error 1
make[2]: *** Ready for unfinished jobs....
collect2: error: ld returned 1 exit standing
make[2]: *** [Makefile:7403: bitcoin-tx] Error 1
make[2]: Leaving listing '/house/hassen/Workspace/OpenSource/bitcoin/src'
make[1]: *** [Makefile:20138: all-recursive] Error 1
make[1]: Leaving listing '/house/hassen/Workspace/OpenSource/bitcoin/src'
make: *** [Makefile:814: all-recursive] Error 1

It seems to be like the problem is that evhttp_uridecode is just not discovered. Nevertheless I am fairly certain I put in all the mandatory packages.

If this can assist, working uname -a on my machine returns:

Linux XPS-machine 6.5.0-14-generic #14-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 14 14:59:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Thanks to your assist.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments