--enable-fuzz
fails in combination with --enable-wallet
, --with-miniupnpc
or --enable-zmq
.
0$ git clone https://github.com/bitcoin/bitcoin
1$ cd bitcoin
2$ ./autogen.sh
3$ ./configure --disable-wallet --without-miniupnpc --disable-zmq --enable-fuzz
4$ make
5$ echo $?
60
7$ make clean
8$ ./configure --with-incompatible-bdb --without-miniupnpc --disable-zmq --enable-fuzz
9$ make
10…
11 CXXLD test/fuzz/address_deserialize
12libbitcoin_server.a(libbitcoin_server_a-init.o): In function `WalletInit::Construct(InitInterfaces&) const':
13/…/src/wallet/init.cpp:139: undefined reference to `interfaces::MakeWalletClient(interfaces::Chain&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)'
14clang: error: linker command failed with exit code 1 (use -v to see invocation)
15Makefile:4862: recipe for target 'test/fuzz/address_deserialize' failed
16$ make clean
17$ ./configure --disable-wallet --with-miniupnpc --disable-zmq --enable-fuzz
18$ make
19…
20 CXXLD test/fuzz/address_deserialize
21libbitcoin_server.a(libbitcoin_server_a-net.o): In function `ThreadMapPort()':
22/…/src/net.cpp:1412: undefined reference to `upnpDiscover'
23/…/src/net.cpp:1423: undefined reference to `UPNP_GetValidIGD'
24/…/src/net.cpp:1428: undefined reference to `UPNP_GetExternalIPAddress'
25/…/src/net.cpp:1473: undefined reference to `freeUPNPDevlist'
26/…/src/net.cpp:1475: undefined reference to `FreeUPNPUrls'
27/…/src/net.cpp:1455: undefined reference to `UPNP_AddPortMapping'
28/…/src/net.cpp:1461: undefined reference to `strupnperror'
29/…/src/net.cpp:1467: undefined reference to `UPNP_DeletePortMapping'
30/…/src/net.cpp:1469: undefined reference to `freeUPNPDevlist'
31/…/src/net.cpp:1470: undefined reference to `FreeUPNPUrls'
32clang: error: linker command failed with exit code 1 (use -v to see invocation)
33$ make clean
34$ ./configure --disable-wallet --without-miniupnpc --enable-zmq --enable-fuzz
35$ make
36…
37 CXXLD test/fuzz/address_deserialize
38libbitcoin_server.a(libbitcoin_server_a-init.o): In function `Shutdown(InitInterfaces&)':
39/…/src/init.cpp:290: undefined reference to `g_zmq_notification_interface'
40libbitcoin_server.a(libbitcoin_server_a-init.o): In function `SetupServerArgs()':
41/…/src/init.cpp:469: undefined reference to `CZMQAbstractNotifier::DEFAULT_ZMQ_SNDHWM'
42/…/src/init.cpp:470: undefined reference to `CZMQAbstractNotifier::DEFAULT_ZMQ_SNDHWM'
43/…/src/init.cpp:471: undefined reference to `CZMQAbstractNotifier::DEFAULT_ZMQ_SNDHWM'
44/…/src/init.cpp:472: undefined reference to `CZMQAbstractNotifier::DEFAULT_ZMQ_SNDHWM'
45libbitcoin_server.a(libbitcoin_server_a-init.o): In function `AppInitMain(InitInterfaces&)':
46/…/src/init.cpp:1317: undefined reference to `RegisterZMQRPCCommands(CRPCTable&)'
47/…/src/init.cpp:1440: undefined reference to `CZMQNotificationInterface::Create()'
48/…/src/init.cpp:1440: undefined reference to `g_zmq_notification_interface'
49clang: error: linker command failed with exit code 1 (use -v to see invocation)