{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6772","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6772/labels{/name}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6772/comments","events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6772/events","html_url":"https://github.com/bitcoin/bitcoin/issues/6772","id":110077625,"number":6772,"title":"Failing to build tag v0.11.0 on Kubuntu 15.04","user":{"login":"lovesh","id":3115401,"avatar_url":"https://avatars.githubusercontent.com/u/3115401?v=3","gravatar_id":"","url":"https://api.github.com/users/lovesh","html_url":"https://github.com/lovesh","followers_url":"https://api.github.com/users/lovesh/followers","following_url":"https://api.github.com/users/lovesh/following{/other_user}","gists_url":"https://api.github.com/users/lovesh/gists{/gist_id}","starred_url":"https://api.github.com/users/lovesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovesh/subscriptions","organizations_url":"https://api.github.com/users/lovesh/orgs","repos_url":"https://api.github.com/users/lovesh/repos","events_url":"https://api.github.com/users/lovesh/events{/privacy}","received_events_url":"https://api.github.com/users/lovesh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitcoin/bitcoin/labels/Build%20system","name":"Build system","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2015-10-06T19:02:09Z","updated_at":"2015-10-08T04:12:20Z","closed_at":null,"body":"I followed the instructions to build bitcoin from source from here https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md. I was able to install the prerequisites like libboost, berkley db and other. Now when i build bitcoin with these steps \r\n1. `./autogen.sh` (Works fine without errors)\r\n2. `./configure` (works without errors)\r\n3. `make` (this gives an error)\r\n```\r\nlibbitcoin_server.a(libbitcoin_server_a-init.o): In function `boost::filesystem::path::path<boost::filesystem::directory_entry>(boost::filesystem::directory_entry const&, boost::enable_if<boost::filesystem::path_traits::is_pathable<boost::decay<boost::filesystem::directory_entry>::type>, void>::type*)':\r\n/usr/include/boost/filesystem/path.hpp:139: undefined reference to `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::codecvt<wchar_t, char, __mbstate_t> const&)'\r\nlibbitcoin_util.a(libbitcoin_util_a-util.o): In function `boost::program_options::detail::basic_config_file_iterator<char>::getline(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':\r\n/usr/include/boost/program_options/detail/config_file.hpp:161: undefined reference to `boost::program_options::to_internal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'\r\nlibbitcoin_util.a(libbitcoin_util_a-util.o): In function `boost::program_options::detail::basic_config_file_iterator<char>::basic_config_file_iterator(std::istream&, std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<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> > > > const&, bool)':\r\n/usr/include/boost/program_options/detail/config_file.hpp:145: undefined reference to `boost::program_options::detail::common_config_file_iterator::common_config_file_iterator(std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<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> > > > const&, bool)'\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:2593: recipe for target 'bitcoind' failed\r\nmake[2]: *** [bitcoind] Error 1\r\n```\r\nThen some googling led me to this https://github.com/bitcoin/bitcoin/issues/6603. So i did `make clean` and then `./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu` (my libboost files are in `/usr/lib/x86_64-linux-gnu`) and then `make`. Again i got the error \r\n```\r\nlibbitcoin_server.a(libbitcoin_server_a-init.o): In function `boost::filesystem::path::path<boost::filesystem::directory_entry>(boost::filesystem::directory_entry const&, boost::enable_if<boost::filesystem::path_traits::is_pathable<boost::decay<boost::filesystem::directory_entry>::type>, void>::type*)':\r\n/usr/include/boost/filesystem/path.hpp:139: undefined reference to `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::codecvt<wchar_t, char, __mbstate_t> const&)'\r\nlibbitcoin_util.a(libbitcoin_util_a-util.o): In function `boost::program_options::detail::basic_config_file_iterator<char>::getline(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':\r\n/usr/include/boost/program_options/detail/config_file.hpp:161: undefined reference to `boost::program_options::to_internal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'\r\nlibbitcoin_util.a(libbitcoin_util_a-util.o): In function `boost::program_options::detail::basic_config_file_iterator<char>::basic_config_file_iterator(std::istream&, std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<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> > > > const&, bool)':\r\n/usr/include/boost/program_options/detail/config_file.hpp:145: undefined reference to `boost::program_options::detail::common_config_file_iterator::common_config_file_iterator(std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<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> > > > const&, bool)'\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:2593: recipe for target 'bitcoind' failed\r\nmake[2]: *** [bitcoind] Error 1\r\n```\r\nAfter reading this mailing list thread https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2015-September/010944.html i tried `make clean` and then `./configure CPPFLAGS=\"-I/usr/include/x86_64-linux-gnu/\" LDFLAGS=\"-L/usr/lib/x86_64-linux-gnu/\"` and then `make` I still get an error\r\n```\r\nlibbitcoin_server.a(libbitcoin_server_a-init.o): In function `boost::filesystem::path::path<boost::filesystem::directory_entry>(boost::filesystem::directory_entry const&, boost::enable_if<boost::filesystem::path_traits::is_pathable<boost::decay<boost::filesystem::directory_entry>::type>, void>::type*)':\r\n/usr/include/boost/filesystem/path.hpp:139: undefined reference to `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::codecvt<wchar_t, char, __mbstate_t> const&)'\r\nlibbitcoin_util.a(libbitcoin_util_a-util.o): In function `boost::program_options::detail::basic_config_file_iterator<char>::getline(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':\r\n/usr/include/boost/program_options/detail/config_file.hpp:161: undefined reference to `boost::program_options::to_internal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'\r\nlibbitcoin_util.a(libbitcoin_util_a-util.o): In function `boost::program_options::detail::basic_config_file_iterator<char>::basic_config_file_iterator(std::istream&, std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<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> > > > const&, bool)':\r\n/usr/include/boost/program_options/detail/config_file.hpp:145: undefined reference to `boost::program_options::detail::common_config_file_iterator::common_config_file_iterator(std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<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> > > > const&, bool)'\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:2593: recipe for target 'bitcoind' failed\r\nmake[2]: *** [bitcoind] Error 1\r\n```\r\nWhats going wrong? "},"comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/146414686","html_url":"https://github.com/bitcoin/bitcoin/issues/6772#issuecomment-146414686","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6772","id":146414686,"user":{"login":"theuni","id":417043,"avatar_url":"https://avatars.githubusercontent.com/u/417043?v=3","gravatar_id":"","url":"https://api.github.com/users/theuni","html_url":"https://github.com/theuni","followers_url":"https://api.github.com/users/theuni/followers","following_url":"https://api.github.com/users/theuni/following{/other_user}","gists_url":"https://api.github.com/users/theuni/gists{/gist_id}","starred_url":"https://api.github.com/users/theuni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theuni/subscriptions","organizations_url":"https://api.github.com/users/theuni/orgs","repos_url":"https://api.github.com/users/theuni/repos","events_url":"https://api.github.com/users/theuni/events{/privacy}","received_events_url":"https://api.github.com/users/theuni/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T04:12:20Z","updated_at":"2015-10-08T04:12:20Z","body":"@lovesh This is getting offtopic for a bug report, but you'll want to get rid of gcc5 (gcc4 and gcc5 are probably installed in parallel). libstdc++ will likely be handled by the gcc packages. Don't worry about boost."}}