Building on FreeBSD gives a huge number of linker errors while building test_bitcoin
:
0user@medea:~/src/bitcoin % gmake
1Making all in src
2gmake[1]: Entering directory '/usr/home/user/src/bitcoin/src'
3gmake[2]: Entering directory '/usr/home/user/src/bitcoin/src'
4 CXXLD test/test_bitcoin
5/usr/bin/ld: error: undefined symbol: BasicTestingSetup::BasicTestingSetup(std::__1::basic_string<char, st
6d::__1::char_traits<char>, std::__1::allocator<char> > const&)
7>>> referenced by amount_tests.cpp:13 (test/amount_tests.cpp:13)
8>>> test/test_bitcoin-amount_tests.o:(amount_tests::MoneyRangeTest_invoker())
9
10/usr/bin/ld: error: undefined symbol: BasicTestingSetup::BasicTestingSetup(std::__1::basic_string<char, st
11d::__1::char_traits<char>, std::__1::allocator<char> > const&)
12>>> referenced by amount_tests.cpp:22 (test/amount_tests.cpp:22)
13>>> test/test_bitcoin-amount_tests.o:(amount_tests::GetFeeTest_invoker())
14
15/usr/bin/ld: error: undefined symbol: BasicTestingSetup::BasicTestingSetup(std::__1::basic_string<char, st
16d::__1::char_traits<char>, std::__1::allocator<char> > const&)
17>>> referenced by amount_tests.cpp:89 (test/amount_tests.cpp:89)
18>>> test/test_bitcoin-amount_tests.o:(amount_tests::BinaryOperatorTest_invoker())
19
20/usr/bin/ld: error: undefined symbol: BasicTestingSetup::BasicTestingSetup(std::__1::basic_string<char, st
21d::__1::char_traits<char>, std::__1::allocator<char> > const&)
22>>> referenced by flatfile_tests.cpp:15 (test/flatfile_tests.cpp:15)
23>>> test/test_bitcoin-flatfile_tests.o:(flatfile_tests::flatfile_filename_invoker())
24
25/usr/bin/ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
26c++: error: linker command failed with exit code 1 (use -v to see invocation)
27gmake[2]: *** [Makefile:8553: test/test_bitcoin] Error 1
28gmake[2]: Leaving directory '/usr/home/user/src/bitcoin/src'
29gmake[1]: *** [Makefile:17674: all-recursive] Error 1
30gmake[1]: Leaving directory '/usr/home/user/src/bitcoin/src'
31gmake: *** [Makefile:781: all-recursive] Error 1
bitcoind
itself, as well as the other cli tools, is built succesfully.