Fail to build on ubuntu14.04 #6603

issue tarukosu opened this issue on August 31, 2015
  1. tarukosu commented at 6:05 AM on August 31, 2015: none

    Fail to build bitcoin with this error.

    libbitcoin_wallet.a(libbitcoin_wallet_a-walletdb.o): In function `copy_file':
    /usr/local/include/boost/filesystem/operations.hpp:497: undefined reference to `boost::filesystem::detail::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, boost::filesystem::detail::copy_option, boost::system::error_code*)'
    collect2: error: ld returned 1 exit status
    

    Ubuntu 14.04, bitcoin v0.10.2, boost1.55

    I tried this but it does not work. http://www.ridgesolutions.ie/index.php/2013/05/30/boost-link-error-undefined-reference-to-boostfilesystemdetailcopy_file/

  2. jonasschnelli commented at 6:44 AM on August 31, 2015: contributor

    Did you install sudo apt-get install libboost-all-dev?

  3. tarukosu commented at 9:41 AM on August 31, 2015: none

    Sure.

  4. laanwj commented at 10:37 AM on August 31, 2015: member

    Can you try with the latest stable version, 0.11.0?

  5. tarukosu commented at 12:33 AM on September 1, 2015: none

    Similar error occurred.

    libbitcoin_server.a(libbitcoin_server_a-init.o): In function `path<boost::filesystem::directory_entry>':
    /usr/local/include/boost/filesystem/path.hpp:140: undefined reference to `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::string&)'
    libbitcoin_wallet.a(libbitcoin_wallet_a-walletdb.o): In function `copy_file':
    /usr/local/include/boost/filesystem/operations.hpp:497: undefined reference to `boost::filesystem::detail::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, boost::filesystem::detail::copy_option, boost::system::error_code*)'
    collect2: error: ld returned 1 exit status
    
  6. jamesob commented at 6:30 AM on September 3, 2015: member

    Can't reproduce; builds fine for me:

    (venv) [Wed 2 23:28] job/code/bitcoin master 
     $ cat /etc/lsb-release 
    
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=14.04
    DISTRIB_CODENAME=trusty
    DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"
    
    (venv) [Wed 2 23:28] job/code/bitcoin master 
     $ uname -a                      
    
    Linux box 3.16.0-44-generic [#59](/bitcoin-bitcoin/59/)~14.04.1-Ubuntu SMP Tue Jul 7 15:07:27 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
    
    (venv) [Wed 2 23:29] job/code/bitcoin master 
     $ git show HEAD --format=oneline
    
    3932ff50c563df19c14e9987f2297d9f99a299ac Merge pull request [#6620](/bitcoin-bitcoin/6620/)
    

    @tarukosu have you followed the instructions in doc/build-unix.md?

  7. laanwj commented at 6:51 AM on September 3, 2015: member

    Indeed - many developers are using Ubuntu 14.04 and experience no issues. Unsure what the issue here is. Your boost-dev install looks broken. But the error remains strange. Maybe a version conflict (e.g. packages from mixed-up versions). Have you upgraded from an older distro? Can you try reinstalling libboost-all -dev?

  8. laanwj added the label Linux on Sep 4, 2015
  9. tarukosu commented at 9:39 AM on September 6, 2015: none

    The problem was solved thanks to your support. The reason was that two versions of boost were installed. When I specified the directory of boost, the build succeeded.

    $ ./configure --with-boost-libdir=/usr/local/lib
    $ make
    

    Thank you so much.

  10. tarukosu closed this on Sep 6, 2015

  11. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me