Build error on FreeBSD #1

Closed
opened 2015-12-05 22:55:16 +01:00 by ghost · 5 comments
ghost commented 2015-12-05 22:55:16 +01:00 (Migrated from github.com)
  CXX      test/test_test_lbrycrd-rpc_wallet_tests.o
  AR       libbitcoin_util.a
  CXXLD    lbrycrdd
libbitcoin_server.a(libbitcoin_server_a-init.o): In function `CleanupBlockRevFiles()':
/usr/local/include/boost/filesystem/path.hpp:139: undefined reference to `boost::filesystem::path_tra
libbitcoin_util.a(libbitcoin_util_a-util.o): In function `SetupEnvironment()':
/home/null1/lbrycrd/src/util.cpp:743: undefined reference to `boost::filesystem::path::imbue(std::loc
/home/null1/lbrycrd/src/util.cpp:744: undefined reference to `boost::filesystem::path::imbue(std::loc
libbitcoin_util.a(libbitcoin_util_a-util.o): In function `boost::program_options::detail::basic_confi
/usr/local/include/boost/program_options/detail/config_file.hpp:161: undefined reference to `boost::p
libbitcoin_util.a(libbitcoin_util_a-util.o): In function `boost::program_options::detail::basic_confi<std::string> > const&, bool)':
/usr/local/include/boost/program_options/detail/config_file.hpp:145: undefined reference to `boost::p, std::allocator<std::string> > const&, bool)'
libbitcoin_wallet.a(libbitcoin_wallet_a-db.o): In function `CDBEnv::Verify(std::string const&, bool (
/home/null1/lbrycrd/src/wallet/db.cpp:157: undefined reference to `Db::verify(char const*, char const
libbitcoin_wallet.a(libbitcoin_wallet_a-db.o): In function `CDBEnv::Salvage(std::string const&, bool,unsigned char> > >, std::allocator<std::pair<std::vector<unsigned char, std::allocator<unsigned char>
/home/null1/lbrycrd/src/wallet/db.cpp:180: undefined reference to `Db::verify(char const*, char const
collect2: error: ld returned 1 exit status
Makefile:2605: recipe for target 'lbrycrdd' failed
gmake[2]: *** [lbrycrdd] Error 1

I think I've had that with and without --with-incompatible-bdb. I am running two jobs as well, but not sure if that's causing the problem.

``` CXX test/test_test_lbrycrd-rpc_wallet_tests.o AR libbitcoin_util.a CXXLD lbrycrdd libbitcoin_server.a(libbitcoin_server_a-init.o): In function `CleanupBlockRevFiles()': /usr/local/include/boost/filesystem/path.hpp:139: undefined reference to `boost::filesystem::path_tra libbitcoin_util.a(libbitcoin_util_a-util.o): In function `SetupEnvironment()': /home/null1/lbrycrd/src/util.cpp:743: undefined reference to `boost::filesystem::path::imbue(std::loc /home/null1/lbrycrd/src/util.cpp:744: undefined reference to `boost::filesystem::path::imbue(std::loc libbitcoin_util.a(libbitcoin_util_a-util.o): In function `boost::program_options::detail::basic_confi /usr/local/include/boost/program_options/detail/config_file.hpp:161: undefined reference to `boost::p libbitcoin_util.a(libbitcoin_util_a-util.o): In function `boost::program_options::detail::basic_confi<std::string> > const&, bool)': /usr/local/include/boost/program_options/detail/config_file.hpp:145: undefined reference to `boost::p, std::allocator<std::string> > const&, bool)' libbitcoin_wallet.a(libbitcoin_wallet_a-db.o): In function `CDBEnv::Verify(std::string const&, bool ( /home/null1/lbrycrd/src/wallet/db.cpp:157: undefined reference to `Db::verify(char const*, char const libbitcoin_wallet.a(libbitcoin_wallet_a-db.o): In function `CDBEnv::Salvage(std::string const&, bool,unsigned char> > >, std::allocator<std::pair<std::vector<unsigned char, std::allocator<unsigned char> /home/null1/lbrycrd/src/wallet/db.cpp:180: undefined reference to `Db::verify(char const*, char const collect2: error: ld returned 1 exit status Makefile:2605: recipe for target 'lbrycrdd' failed gmake[2]: *** [lbrycrdd] Error 1 ``` I think I've had that with and without `--with-incompatible-bdb`. I am running two jobs as well, but not sure if that's causing the problem.
ghost commented 2015-12-06 01:15:00 +01:00 (Migrated from github.com)

Tried a few variations, including with just -j1. No luck.

Do you know what's going on here?

Thanks,
Teran

Tried a few variations, including with just -j1. No luck. Do you know what's going on here? Thanks, Teran
jimmykiselak commented 2015-12-06 22:37:48 +01:00 (Migrated from github.com)

I haven't tried building lbrycrdd on freebsd in a while. I'll try it again and let you know what I come up with.

I haven't tried building lbrycrdd on freebsd in a while. I'll try it again and let you know what I come up with.
ghost commented 2015-12-06 23:53:09 +01:00 (Migrated from github.com)

Thank you! I've had good luck with Bitcoin and BitcoinXT, so it seems it should be quite doable.

Thank you! I've had good luck with Bitcoin and BitcoinXT, so it seems it should be quite doable.
jimmykiselak commented 2015-12-15 23:56:03 +01:00 (Migrated from github.com)

I got lbrycrd to build successfully on 10.2-RELEASE.
I built Berkeley db 4.8 from ports/databases/db48/ and the only tricky part was specifying the paths to the bdb headers and lib. For the configure step, I did:

./configure LDFLAGS="-L/usr/local/lib/db48/" CPPFLAGS="-I/usr/local/include/db48/"

and that did the trick.

I got lbrycrd to build successfully on 10.2-RELEASE. I built Berkeley db 4.8 from ports/databases/db48/ and the only tricky part was specifying the paths to the bdb headers and lib. For the configure step, I did: ``` ./configure LDFLAGS="-L/usr/local/lib/db48/" CPPFLAGS="-I/usr/local/include/db48/" ``` and that did the trick.
ghost commented 2015-12-16 18:05:01 +01:00 (Migrated from github.com)

Awesome, thanks! I'll give that a try some time.

Awesome, thanks! I'll give that a try some time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbrycrd#1
No description provided.