Friday, December 27, 2024

bitcoin core – Construct part fails with undefined reference to `evhttp_uridecode` – Bitcoin Stack Alternate

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

Listed here are the main points:

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

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

Then put in the required 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 thinking about constructing the pockets, however simply the P2P protocol, so I skipped the opposite installs.

Then begins the construct part:

./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 perform `urlDecode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/house/hassen/Workspace/OpenSource/bitcoin/src/widespread/url.cpp:15:(.textual content+0x61): undefined reference to `evhttp_uridecode'
/usr/bin/ld: libbitcoin_common.a(libbitcoin_common_a-url.o): in perform `urlDecode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/house/hassen/Workspace/OpenSource/bitcoin/src/widespread/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 appears to be like like the difficulty is that evhttp_uridecode will not be discovered. Nevertheless I am fairly certain I put in all the required packages.

If this may also help, 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 on your assist.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles