Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error "undefined reference" when building rai_wallet #269

Closed
brenzi opened this issue Dec 23, 2017 · 8 comments
Closed

error "undefined reference" when building rai_wallet #269

brenzi opened this issue Dec 23, 2017 · 8 comments

Comments

@brenzi
Copy link

brenzi commented Dec 23, 2017

II've followed instructions on the wiki for ubuntu 16.04:
https://github.com/clemahieu/raiblocks/wiki/Install-Wallet-on-Ubuntu-16.04.3

linking fails:

[ 98%] Linking CXX executable rai_wallet
libnode.a(node.cpp.o): In function `boost::detail::sp_if_not_array<boost::log::v2s_mt_posix::sinks::text_file_backend>::type boost::make_shared<boost::log::v2s_mt_posix::sinks::text_file_backend, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::format, char const [25]>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::max_size, unsigned long>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::scan_method, boost::log::v2s_mt_posix::sinks::file::scan_method const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::auto_flush, bool const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::rotation_size, int const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::target, boost::filesystem::path const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::file_name, boost::filesystem::path const>, boost::parameter::aux::empty_arg_list> > > > > > > const&>(boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::format, char const [25]>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::max_size, unsigned long>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::scan_method, boost::log::v2s_mt_posix::sinks::file::scan_method const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::auto_flush, bool const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::rotation_size, int const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::target, boost::filesystem::path const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::file_name, boost::filesystem::path const>, boost::parameter::aux::empty_arg_list> > > > > > > const&)':
node.cpp:(.text._ZN5boost11make_sharedINS_3log12v2s_mt_posix5sinks17text_file_backendEJRKNS_9parameter3aux8arg_listINS6_15tagged_argumentINS2_8keywords3tag6formatEA25_KcEENS7_INS8_INSA_8max_sizeEmEENS7_INS8_INSA_11scan_methodEKNS3_4file11scan_methodEEENS7_INS8_INSA_10auto_flushEKbEENS7_INS8_INSA_13rotation_sizeEKiEENS7_INS8_INSA_6targetEKNS_10filesystem4pathEEENS7_INS8_INSA_9file_nameESV_EENS6_14empty_arg_listEEEEEEEEEEEEEEEEEENS_6detail15sp_if_not_arrayIT_E4typeEDpOT0_[_ZN5boost11make_sharedINS_3log12v2s_mt_posix5sinks17text_file_backendEJRKNS_9parameter3aux8arg_listINS6_15tagged_argumentINS2_8keywords3tag6formatEA25_KcEENS7_INS8_INSA_8max_sizeEmEENS7_INS8_INSA_11scan_methodEKNS3_4file11scan_methodEEENS7_INS8_INSA_10auto_flushEKbEENS7_INS8_INSA_13rotation_sizeEKiEENS7_INS8_INSA_6targetEKNS_10filesystem4pathEEENS7_INS8_INSA_9file_nameESV_EENS6_14empty_arg_listEEEEEEEEEEEEEEEEEENS_6detail15sp_if_not_arrayIT_E4typeEDpOT0_]+0x10a): undefined reference to `boost::log::v2s_mt_posix::sinks::text_file_backend::construct(boost::filesystem::path const&, std::_Ios_Openmode, unsigned long, boost::log::v2s_mt_posix::aux::light_function<bool ()> const&, bool, bool)'
libnode.a(node.cpp.o): In function `boost::shared_ptr<boost::log::v2s_mt_posix::sinks::synchronous_sink<boost::log::v2s_mt_posix::sinks::text_file_backend> > boost::log::v2s_mt_posix::aux::add_file_log<boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::format, char const [25]>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::max_size, unsigned long>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::scan_method, boost::log::v2s_mt_posix::sinks::file::scan_method const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::auto_flush, bool const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::rotation_size, int const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::target, boost::filesystem::path const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::file_name, boost::filesystem::path const>, boost::parameter::aux::empty_arg_list> > > > > > > >(boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::format, char const [25]>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::max_size, unsigned long>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::scan_method, boost::log::v2s_mt_posix::sinks::file::scan_method const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::auto_flush, bool const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::rotation_size, int const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::target, boost::filesystem::path const>, boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::file_name, boost::filesystem::path const>, boost::parameter::aux::empty_arg_list> > > > > > > const&)':
node.cpp:(.text._ZN5boost3log12v2s_mt_posix3aux12add_file_logINS_9parameter3aux8arg_listINS5_15tagged_argumentINS1_8keywords3tag6formatEA25_KcEENS6_INS7_INS9_8max_sizeEmEENS6_INS7_INS9_11scan_methodEKNS1_5sinks4file11scan_methodEEENS6_INS7_INS9_10auto_flushEKbEENS6_INS7_INS9_13rotation_sizeEKiEENS6_INS7_INS9_6targetEKNS_10filesystem4pathEEENS6_INS7_INS9_9file_nameESV_EENS5_14empty_arg_listEEEEEEEEEEEEEEEEENS_10shared_ptrINSH_16synchronous_sinkINSH_17text_file_backendEEEEERKT_[_ZN5boost3log12v2s_mt_posix3aux12add_file_logINS_9parameter3aux8arg_listINS5_15tagged_argumentINS1_8keywords3tag6formatEA25_KcEENS6_INS7_INS9_8max_sizeEmEENS6_INS7_INS9_11scan_methodEKNS1_5sinks4file11scan_methodEEENS6_INS7_INS9_10auto_flushEKbEENS6_INS7_INS9_13rotation_sizeEKiEENS6_INS7_INS9_6targetEKNS_10filesystem4pathEEENS6_INS7_INS9_9file_nameESV_EENS5_14empty_arg_listEEEEEEEEEEEEEEEEENS_10shared_ptrINSH_16synchronous_sinkINSH_17text_file_backendEEEEERKT_]+0x74): undefined reference to `boost::log::v2s_mt_posix::sinks::file::aux::make_collector(boost::filesystem::path const&, unsigned long, unsigned long, unsigned long)'
libnode.a(node.cpp.o): In function `void boost::log::v2s_mt_posix::basic_formatting_ostream<char, std::char_traits<char>, std::allocator<char> >::aligned_write<wchar_t>(wchar_t const*, long)':
node.cpp:(.text._ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIcSt11char_traitsIcESaIcEE13aligned_writeIwEEvPKT_l[_ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIcSt11char_traitsIcESaIcEE13aligned_writeIwEEvPKT_l]+0xf7): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert_impl(wchar_t const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned long, std::locale const&)'
node.cpp:(.text._ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIcSt11char_traitsIcESaIcEE13aligned_writeIwEEvPKT_l[_ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIcSt11char_traitsIcESaIcEE13aligned_writeIwEEvPKT_l]+0x163): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert_impl(wchar_t const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned long, std::locale const&)'
libnode.a(node.cpp.o): In function `void boost::log::v2s_mt_posix::type_dispatcher::callback_base::trampoline<boost::log::v2s_mt_posix::binder1st<boost::log::v2s_mt_posix::output_fun, boost::log::v2s_mt_posix::expressions::aux::stream_ref<boost::log::v2s_mt_posix::basic_formatting_ostream<char, std::char_traits<char>, std::allocator<char> > >&>, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >(void*, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)':
node.cpp:(.text._ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stINS1_10output_funERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEEEENSt7__cxx1112basic_stringIwSB_IwESaIwEEEEEvPvRKT0_[_ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stINS1_10output_funERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEEEENSt7__cxx1112basic_stringIwSB_IwESaIwEEEEEvPvRKT0_]+0xc4): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert_impl(wchar_t const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned long, std::locale const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_log_setup.a(formatter_parser.o): In function `boost::log::v2s_mt_posix::basic_formatter<wchar_t> boost::log::v2s_mt_posix::parse_formatter<wchar_t>(wchar_t const*, wchar_t const*)':
(.text._ZN5boost3log12v2s_mt_posix15parse_formatterIwEENS1_15basic_formatterIT_EEPKS4_S7_[_ZN5boost3log12v2s_mt_posix15parse_formatterIwEENS1_15basic_formatterIT_EEPKS4_S7_]+0x58f): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert(wchar_t const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::locale const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_log_setup.a(formatter_parser.o): In function `void boost::log::v2s_mt_posix::basic_formatting_ostream<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::aligned_write<char>(char const*, long)':
(.text._ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIwSt11char_traitsIwESaIwEE13aligned_writeIcEEvPKT_l[_ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIwSt11char_traitsIwESaIwEE13aligned_writeIcEEvPKT_l]+0x8a): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert(char const*, unsigned long, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::locale const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_log_setup.a(formatter_parser.o): In function `void boost::log::v2s_mt_posix::basic_formatting_ostream<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::aligned_write<char>(char const*, long)':
(.text._ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIwSt11char_traitsIwESaIwEE13aligned_writeIcEEvPKT_l[_ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIwSt11char_traitsIwESaIwEE13aligned_writeIcEEvPKT_l]+0x10f): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert(char const*, unsigned long, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::locale const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_log_setup.a(formatter_parser.o): In function `void boost::log::v2s_mt_posix::type_dispatcher::callback_base::trampoline<boost::log::v2s_mt_posix::binder1st<boost::log::v2s_mt_posix::output_fun, boost::log::v2s_mt_posix::basic_formatting_ostream<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(void*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
(.text._ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stINS1_10output_funERNS1_24basic_formatting_ostreamIwSt11char_traitsIwESaIwEEEEENSt7__cxx1112basic_stringIcS8_IcESaIcEEEEEvPvRKT0_[_ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stINS1_10output_funERNS1_24basic_formatting_ostreamIwSt11char_traitsIwESaIwEEEEENSt7__cxx1112basic_stringIcS8_IcESaIcEEEEEvPvRKT0_]+0x71): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert(char const*, unsigned long, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::locale const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_log_setup.a(formatter_parser.o): In function `void boost::log::v2s_mt_posix::type_dispatcher::callback_base::trampoline<boost::log::v2s_mt_posix::binder1st<boost::log::v2s_mt_posix::output_fun, boost::log::v2s_mt_posix::expressions::aux::stream_ref<boost::log::v2s_mt_posix::basic_formatting_ostream<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >&>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(void*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
(.text._ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stINS1_10output_funERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIwSt11char_traitsIwESaIwEEEEEEENSt7__cxx1112basic_stringIcSB_IcESaIcEEEEEvPvRKT0_[_ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stINS1_10output_funERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIwSt11char_traitsIwESaIwEEEEEEENSt7__cxx1112basic_stringIcSB_IcESaIcEEEEEvPvRKT0_]+0x74): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert(char const*, unsigned long, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::locale const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_log_setup.a(formatter_parser.o): In function `void boost::log::v2s_mt_posix::type_dispatcher::callback_base::trampoline<boost::log::v2s_mt_posix::binder1st<boost::log::v2s_mt_posix::output_fun, boost::log::v2s_mt_posix::basic_formatting_ostream<char, std::char_traits<char>, std::allocator<char> >&>, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >(void*, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)':
(.text._ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stINS1_10output_funERNS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEENSt7__cxx1112basic_stringIwS8_IwESaIwEEEEEvPvRKT0_[_ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stINS1_10output_funERNS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEENSt7__cxx1112basic_stringIwS8_IwESaIwEEEEEvPvRKT0_]+0x6b): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert(wchar_t const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::locale const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_log_setup.a(default_formatter_factory.o): In function `void boost::log::v2s_mt_posix::type_dispatcher::callback_base::trampoline<boost::log::v2s_mt_posix::binder1st<boost::log::v2s_mt_posix::to_log_fun<void> const&, boost::log::v2s_mt_posix::expressions::aux::stream_ref<boost::log::v2s_mt_posix::basic_formatting_ostream<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >&>, boost::log::v2s_mt_posix::basic_string_literal<char, std::char_traits<char> > >(void*, boost::log::v2s_mt_posix::basic_string_literal<char, std::char_traits<char> > const&)':
(.text._ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stIRKNS1_10to_log_funIvEERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIwSt11char_traitsIwESaIwEEEEEEENS1_20basic_string_literalIcSE_IcEEEEEvPvRKT0_[_ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stIRKNS1_10to_log_funIvEERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIwSt11char_traitsIwESaIwEEEEEEENS1_20basic_string_literalIcSE_IcEEEEEvPvRKT0_]+0x71): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert(char const*, unsigned long, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::locale const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_log_setup.a(default_formatter_factory.o): In function `void boost::log::v2s_mt_posix::type_dispatcher::callback_base::trampoline<boost::log::v2s_mt_posix::binder1st<boost::log::v2s_mt_posix::to_log_fun<void> const&, boost::log::v2s_mt_posix::expressions::aux::stream_ref<boost::log::v2s_mt_posix::basic_formatting_ostream<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >&>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(void*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
(.text._ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stIRKNS1_10to_log_funIvEERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIwSt11char_traitsIwESaIwEEEEEEENSt7__cxx1112basic_stringIcSE_IcESaIcEEEEEvPvRKT0_[_ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stIRKNS1_10to_log_funIvEERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIwSt11char_traitsIwESaIwEEEEEEENSt7__cxx1112basic_stringIcSE_IcESaIcEEEEEvPvRKT0_]+0x71): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert(char const*, unsigned long, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::locale const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_log_setup.a(default_formatter_factory.o): In function `void boost::log::v2s_mt_posix::type_dispatcher::callback_base::trampoline<boost::log::v2s_mt_posix::binder1st<boost::log::v2s_mt_posix::to_log_fun<void> const&, boost::log::v2s_mt_posix::expressions::aux::stream_ref<boost::log::v2s_mt_posix::basic_formatting_ostream<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >&>, char>(void*, char const&)':
(.text._ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stIRKNS1_10to_log_funIvEERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIwSt11char_traitsIwESaIwEEEEEEEcEEvPvRKT0_[_ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stIRKNS1_10to_log_funIvEERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIwSt11char_traitsIwESaIwEEEEEEEcEEvPvRKT0_]+0x76): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert(char const*, unsigned long, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::locale const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_log_setup.a(default_formatter_factory.o): In function `void boost::log::v2s_mt_posix::type_dispatcher::callback_base::trampoline<boost::log::v2s_mt_posix::binder1st<boost::log::v2s_mt_posix::to_log_fun<void> const&, boost::log::v2s_mt_posix::expressions::aux::stream_ref<boost::log::v2s_mt_posix::basic_formatting_ostream<char, std::char_traits<char>, std::allocator<char> > >&>, boost::log::v2s_mt_posix::basic_string_literal<wchar_t, std::char_traits<wchar_t> > >(void*, boost::log::v2s_mt_posix::basic_string_literal<wchar_t, std::char_traits<wchar_t> > const&)':
(.text._ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stIRKNS1_10to_log_funIvEERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEEEENS1_20basic_string_literalIwSE_IwEEEEEvPvRKT0_[_ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stIRKNS1_10to_log_funIvEERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEEEENS1_20basic_string_literalIwSE_IwEEEEEvPvRKT0_]+0x6b): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert(wchar_t const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::locale const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_log_setup.a(default_formatter_factory.o): In function `void boost::log::v2s_mt_posix::type_dispatcher::callback_base::trampoline<boost::log::v2s_mt_posix::binder1st<boost::log::v2s_mt_posix::to_log_fun<void> const&, boost::log::v2s_mt_posix::expressions::aux::stream_ref<boost::log::v2s_mt_posix::basic_formatting_ostream<char, std::char_traits<char>, std::allocator<char> > >&>, wchar_t>(void*, wchar_t const&)':
(.text._ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stIRKNS1_10to_log_funIvEERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEEEEwEEvPvRKT0_[_ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stIRKNS1_10to_log_funIvEERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEEEEwEEvPvRKT0_]+0x6f): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert(wchar_t const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::locale const&)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libboost_log_setup.a(default_formatter_factory.o): In function `void boost::log::v2s_mt_posix::type_dispatcher::callback_base::trampoline<boost::log::v2s_mt_posix::binder1st<boost::log::v2s_mt_posix::to_log_fun<void> const&, boost::log::v2s_mt_posix::expressions::aux::stream_ref<boost::log::v2s_mt_posix::basic_formatting_ostream<char, std::char_traits<char>, std::allocator<char> > >&>, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >(void*, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)':
(.text._ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stIRKNS1_10to_log_funIvEERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEEEENSt7__cxx1112basic_stringIwSE_IwESaIwEEEEEvPvRKT0_[_ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stIRKNS1_10to_log_funIvEERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEEEENSt7__cxx1112basic_stringIwSE_IwESaIwEEEEEvPvRKT0_]+0x6b): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert(wchar_t const*, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::locale const&)'
collect2: error: ld returned 1 exit status
CMakeFiles/rai_wallet.dir/build.make:175: recipe for target 'rai_wallet' failed
make[3]: *** [rai_wallet] Error 1
CMakeFiles/Makefile2:421: recipe for target 'CMakeFiles/rai_wallet.dir/all' failed
make[2]: *** [CMakeFiles/rai_wallet.dir/all] Error 2
CMakeFiles/Makefile2:433: recipe for target 'CMakeFiles/rai_wallet.dir/rule' failed
make[1]: *** [CMakeFiles/rai_wallet.dir/rule] Error 2
Makefile:301: recipe for target 'rai_wallet' failed
make: *** [rai_wallet] Error 2

@androm3da
Copy link
Contributor

Hmm, is it possible the linker is using a different boost version from the one you compiled against?

I assume that you are using master? Can you double check and see whether this problem still exists if you back up to V9.0?

@brenzi
Copy link
Author

brenzi commented Dec 24, 2017

No difference. I did:

> git checkout V9.0

Cmake gives me a hint:

> cmake -G "Unix Makefiles" -DRAIBLOCKS_GUI=ON -DBOOST_ROOT="$BOOST_ROOT"

CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


-- Boost version: 1.63.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   system
--   log
--   log_setup
--   thread
--   program_options
--   regex
--   chrono
--   atomic
-- Compiler: 
-- Flags:  -march=native
-- Build type: Release
-- 
-- The following OPTIONAL packages have been found:

 * Qt5Core
 * Qt5Gui
 * Qt5Widgets
 * Qt5Test
 * Qt5
 * PythonInterp

-- The following REQUIRED packages have been found:

 * Boost (required version >= 1.57.0)
 * Threads

-- Configuring done
-- Generating done
-- Build files have been written to: **********************

It seems to reference boost 1.63, which is correct. Still the warnings on the top confuse me

@androm3da
Copy link
Contributor

I would try dumping debug details from cmake.

@brenzi
Copy link
Author

brenzi commented Dec 25, 2017

Here's debug output:

> export BOOST_BUILD=$HOME/opt/boost_1_63_0.BUILD
> export BOOST_ROOT=$HOME/opt/boost_1_63_0
> cmake -G "Unix Makefiles" -DRAIBLOCKS_GUI=ON -DBOOST_ROOT="$BOOST_ROOT" --debug-output
Running with debug output on.
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


   Called from: [4]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [3]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


   Called from: [4]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [3]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


   Called from: [4]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [3]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


   Called from: [4]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [3]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


   Called from: [4]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [3]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


   Called from: [4]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [3]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


   Called from: [4]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [3]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


   Called from: [4]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [3]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


   Called from: [4]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [3]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
CMake Warning at /usr/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106300
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:763 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.5/Modules/FindBoost.cmake:1332 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:77 (find_package)


   Called from: [4]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [3]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
-- Boost version: 1.63.0
   Called from: [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
-- Found the following Boost libraries:
   Called from: [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
--   date_time
   Called from: [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
--   filesystem
   Called from: [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
--   system
   Called from: [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
--   log
   Called from: [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
--   log_setup
   Called from: [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
--   thread
   Called from: [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
--   program_options
   Called from: [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
--   regex
   Called from: [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
--   chrono
   Called from: [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
--   atomic
   Called from: [2]	/usr/share/cmake-3.5/Modules/FindBoost.cmake
                [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
   Entering             /home/brenzi/tmp/raiblocks/gtest
   Called from: [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
   Returning to         /home/brenzi/tmp/raiblocks
   Called from: [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
   Entering             /home/brenzi/tmp/raiblocks/miniupnp/miniupnpc
   Called from: [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
   Returning to         /home/brenzi/tmp/raiblocks
   Called from: [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
   Entering             /home/brenzi/tmp/raiblocks/cryptopp
   Called from: [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
-- Compiler: 
   Called from: [1]	/home/brenzi/tmp/raiblocks/cryptopp/CMakeLists.txt
-- Flags:  -march=native
   Called from: [1]	/home/brenzi/tmp/raiblocks/cryptopp/CMakeLists.txt
-- Build type: Release
   Called from: [1]	/home/brenzi/tmp/raiblocks/cryptopp/CMakeLists.txt
-- 
-- The following OPTIONAL packages have been found:

 * Qt5Core
 * Qt5Gui
 * Qt5Widgets
 * Qt5Test
 * Qt5
 * PythonInterp

-- The following REQUIRED packages have been found:

 * Boost (required version >= 1.57.0)
 * Threads

   Called from: [1]	/home/brenzi/tmp/raiblocks/cryptopp/CMakeLists.txt
   Returning to         /home/brenzi/tmp/raiblocks
   Called from: [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
-- Configuring done
CMake Warning (dev) at CMakeLists.txt:276 (add_executable):
  Policy CMP0060 is not set: Link libraries by full path even in implicit
  directories.  Run "cmake --help-policy CMP0060" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  Some library files are in directories implicitly searched by the linker
  when invoked for CXX:

   /usr/lib/x86_64-linux-gnu/libboost_atomic.a
   /usr/lib/x86_64-linux-gnu/libboost_chrono.a
   /usr/lib/x86_64-linux-gnu/libboost_date_time.a
   /usr/lib/x86_64-linux-gnu/libboost_filesystem.a
   /usr/lib/x86_64-linux-gnu/libboost_log.a
   /usr/lib/x86_64-linux-gnu/libboost_log_setup.a
   /usr/lib/x86_64-linux-gnu/libboost_program_options.a
   /usr/lib/x86_64-linux-gnu/libboost_regex.a
   /usr/lib/x86_64-linux-gnu/libboost_system.a
   /usr/lib/x86_64-linux-gnu/libboost_thread.a

  For compatibility with older versions of CMake, the generated link line
  will ask the linker to search for these by library name.
This warning is for project developers.  Use -Wno-dev to suppress it.

   Called from: [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
CMake Warning (dev) in CMakeLists.txt:
  Policy CMP0065 is not set: Do not add flags to export symbols from
  executables without the ENABLE_EXPORTS target property.  Run "cmake
  --help-policy CMP0065" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, additional flags may be
  added to export symbols on all executables regardless of thier
  ENABLE_EXPORTS property.
This warning is for project developers.  Use -Wno-dev to suppress it.

   Called from: [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
CMake Warning (dev) in CMakeLists.txt:
  Policy CMP0065 is not set: Do not add flags to export symbols from
  executables without the ENABLE_EXPORTS target property.  Run "cmake
  --help-policy CMP0065" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, additional flags may be
  added to export symbols on all executables regardless of thier
  ENABLE_EXPORTS property.
This warning is for project developers.  Use -Wno-dev to suppress it.

   Called from: [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
CMake Warning (dev) in CMakeLists.txt:
  Policy CMP0065 is not set: Do not add flags to export symbols from
  executables without the ENABLE_EXPORTS target property.  Run "cmake
  --help-policy CMP0065" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, additional flags may be
  added to export symbols on all executables regardless of thier
  ENABLE_EXPORTS property.
This warning is for project developers.  Use -Wno-dev to suppress it.

   Called from: [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
CMake Warning (dev) in CMakeLists.txt:
  Policy CMP0065 is not set: Do not add flags to export symbols from
  executables without the ENABLE_EXPORTS target property.  Run "cmake
  --help-policy CMP0065" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, additional flags may be
  added to export symbols on all executables regardless of thier
  ENABLE_EXPORTS property.
This warning is for project developers.  Use -Wno-dev to suppress it.

   Called from: [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
-- Generating /home/brenzi/tmp/raiblocks
   Called from: [1]	/home/brenzi/tmp/raiblocks/CMakeLists.txt
-- Generating /home/brenzi/tmp/raiblocks/gtest
   Called from: [1]	/home/brenzi/tmp/raiblocks/gtest/CMakeLists.txt
CMake Warning (dev) in miniupnp/miniupnpc/CMakeLists.txt:
  Policy CMP0065 is not set: Do not add flags to export symbols from
  executables without the ENABLE_EXPORTS target property.  Run "cmake
  --help-policy CMP0065" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, additional flags may be
  added to export symbols on all executables regardless of thier
  ENABLE_EXPORTS property.
This warning is for project developers.  Use -Wno-dev to suppress it.

   Called from: [1]	/home/brenzi/tmp/raiblocks/miniupnp/miniupnpc/CMakeLists.txt
CMake Warning (dev) in miniupnp/miniupnpc/CMakeLists.txt:
  Policy CMP0065 is not set: Do not add flags to export symbols from
  executables without the ENABLE_EXPORTS target property.  Run "cmake
  --help-policy CMP0065" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, additional flags may be
  added to export symbols on all executables regardless of thier
  ENABLE_EXPORTS property.
This warning is for project developers.  Use -Wno-dev to suppress it.

   Called from: [1]	/home/brenzi/tmp/raiblocks/miniupnp/miniupnpc/CMakeLists.txt
CMake Warning (dev) in miniupnp/miniupnpc/CMakeLists.txt:
  Policy CMP0065 is not set: Do not add flags to export symbols from
  executables without the ENABLE_EXPORTS target property.  Run "cmake
  --help-policy CMP0065" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, additional flags may be
  added to export symbols on all executables regardless of thier
  ENABLE_EXPORTS property.
This warning is for project developers.  Use -Wno-dev to suppress it.

   Called from: [1]	/home/brenzi/tmp/raiblocks/miniupnp/miniupnpc/CMakeLists.txt
CMake Warning (dev) in miniupnp/miniupnpc/CMakeLists.txt:
  Policy CMP0065 is not set: Do not add flags to export symbols from
  executables without the ENABLE_EXPORTS target property.  Run "cmake
  --help-policy CMP0065" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, additional flags may be
  added to export symbols on all executables regardless of thier
  ENABLE_EXPORTS property.
This warning is for project developers.  Use -Wno-dev to suppress it.

   Called from: [1]	/home/brenzi/tmp/raiblocks/miniupnp/miniupnpc/CMakeLists.txt
CMake Warning (dev) in miniupnp/miniupnpc/CMakeLists.txt:
  Policy CMP0065 is not set: Do not add flags to export symbols from
  executables without the ENABLE_EXPORTS target property.  Run "cmake
  --help-policy CMP0065" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, additional flags may be
  added to export symbols on all executables regardless of thier
  ENABLE_EXPORTS property.
This warning is for project developers.  Use -Wno-dev to suppress it.

   Called from: [1]	/home/brenzi/tmp/raiblocks/miniupnp/miniupnpc/CMakeLists.txt
CMake Warning (dev) in miniupnp/miniupnpc/CMakeLists.txt:
  Policy CMP0065 is not set: Do not add flags to export symbols from
  executables without the ENABLE_EXPORTS target property.  Run "cmake
  --help-policy CMP0065" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, additional flags may be
  added to export symbols on all executables regardless of thier
  ENABLE_EXPORTS property.
This warning is for project developers.  Use -Wno-dev to suppress it.

   Called from: [1]	/home/brenzi/tmp/raiblocks/miniupnp/miniupnpc/CMakeLists.txt
-- Generating /home/brenzi/tmp/raiblocks/miniupnp/miniupnpc
   Called from: [1]	/home/brenzi/tmp/raiblocks/miniupnp/miniupnpc/CMakeLists.txt
-- Generating /home/brenzi/tmp/raiblocks/cryptopp
   Called from: [1]	/home/brenzi/tmp/raiblocks/cryptopp/CMakeLists.txt
-- Generating done
-- Build files have been written to: /home/brenzi/tmp/raiblocks

does that help you in any way?

I've added

cmake_policy(SET CMP0060 NEW)

at the top of CMake.Lists.txt but that didn't make a difference

@androm3da
Copy link
Contributor

Sorry, the way to debug cmake is called --trace I think and not --debug. It's super, super detailed. But in there somewhere should be a way to confirm that the boost you're linking against is the same as the one you're compiling against.

Speaking of which -- how confident are you that $HOME/opt/boost_1_63_0.BUILD represents the build output exactly matching the source from $HOME/opt/boost_1_63_0?

@brenzi
Copy link
Author

brenzi commented Dec 26, 2017

there you go:
cmaketrace.txt

$HOME/opt/boost_1_63_0.BUILD and $HOME/opt/boost_1_63_0 are populated (these folders are defined by the wiki howto I've linked in the OP.)

@gpascualg
Copy link

Just happened to me. Upgrade your CMake to 3.11. Newer boost versions require newer CMake versions (in this case, 1.63 requires 3.11)
https://cmake.org/download/

After installing and cleaning cmake cache (or delete your build folder, w/e), it went smooth

@cryptocode
Copy link
Contributor

Boost 1.66 is required as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants