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

../rtb/libvanilla_rtb.so.1.1.0: undefined reference to `boost::log::v2_mt_posix #90

Open
utmsandeep opened this issue Apr 28, 2020 · 1 comment

Comments

@utmsandeep
Copy link

I have configured the project on linux , cmake 3.17.1 , boost 1.67.0 , gcc 7.5 .

After running make -j4 install i'm getting following error after 63% -

ubuntu@ip-172-26-15-204:~/vanilla-rtb/Release$ make -j4 install
Scanning dependencies of target jsonv
Scanning dependencies of target crud_service
Scanning dependencies of target parsers
Scanning dependencies of target generator
[ 1%] Building C object parsers/CMakeFiles/parsers.dir/jsmn.c.o
[ 3%] Building CXX object CRUD/service/CMakeFiles/crud_service.dir/mime_types.c pp.o
[ 5%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/algorithm_compar e.cpp.o
[ 5%] Built target generator
Scanning dependencies of target generator_experimental
[ 5%] Built target generator_experimental
Scanning dependencies of target vanilla_tests
[ 6%] Building CXX object tests/CMakeFiles/vanilla_tests.dir/vanilla_all.cpp.o
[ 8%] Linking CXX shared library libparsers.so
[ 8%] Built target parsers
[ 10%] Building CXX object tests/CMakeFiles/vanilla_tests.dir/main.cpp.o
[ 11%] Building CXX object CRUD/service/CMakeFiles/crud_service.dir/reply.cpp.o
[ 13%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/algorithm_map.cp p.o
[ 15%] Building CXX object CRUD/service/CMakeFiles/crud_service.dir/request_hand ler.cpp.o
[ 16%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/algorithm_traver se.cpp.o
[ 18%] Linking CXX executable vanilla_tests
[ 18%] Built target vanilla_tests
[ 20%] Building CXX object CRUD/service/CMakeFiles/crud_service.dir/request_pars er.cpp.o
[ 21%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/array.cpp.o
[ 23%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/char_convert.cpp .o
[ 25%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/coerce.cpp.o
/home/ubuntu/vanilla-rtb/jsonv/src/jsonv/coerce.cpp: In function ‘jsonv::value j sonv::coerce_merge(jsonv::value, jsonv::value)’:
/home/ubuntu/vanilla-rtb/jsonv/src/jsonv/coerce.cpp:197:9: warning: this stateme nt may fall through [-Wimplicit-fallthrough=]
if (can_coerce(b, kind::integer))
^~
/home/ubuntu/vanilla-rtb/jsonv/src/jsonv/coerce.cpp:200:5: note: here
case kind::decimal:
^~~~
[ 26%] Linking CXX shared library libcrud_service.so
[ 26%] Built target crud_service
Scanning dependencies of target my_service
[ 28%] Building CXX object CRUD/CMakeFiles/my_service.dir/main.cpp.o
[ 30%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/demangle.cpp.o
[ 31%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/detail.cpp.o
[ 33%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/detail/token_pat terns.cpp.o
[ 35%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/encode.cpp.o
[ 36%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/functional.cpp.o
[ 38%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/object.cpp.o
[ 40%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/parse.cpp.o
[ 41%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/path.cpp.o
[ 43%] Linking CXX executable my_service
[ 45%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/serialization.cp p.o
[ 45%] Built target my_service
[ 46%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/serialization_bu ilder.cpp.o
[ 48%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/tokenizer.cpp.o
[ 50%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/util.cpp.o
[ 51%] Building CXX object jsonv/CMakeFiles/jsonv.dir/src/jsonv/value.cpp.o
/home/ubuntu/vanilla-rtb/jsonv/src/jsonv/util.cpp: In function ‘jsonv::value jso nv::merge_explicit(const jsonv::merge_rules&, jsonv::path, jsonv::value, jsonv:: value)’:
/home/ubuntu/vanilla-rtb/jsonv/src/jsonv/util.cpp:118:13: warning: this statemen t may fall through [-Wimplicit-fallthrough=]
if (b.kind() == kind::integer)
^~
/home/ubuntu/vanilla-rtb/jsonv/src/jsonv/util.cpp:121:9: note: here
case kind::decimal:
^~~~
[ 53%] Linking CXX shared library libjsonv.so
[ 53%] Built target jsonv
Scanning dependencies of target vanilla_rtb
[ 55%] Building CXX object rtb/CMakeFiles/vanilla_rtb.dir/core/logger.cpp.o
[ 56%] Linking CXX shared library libvanilla_rtb.so
[ 56%] Built target vanilla_rtb
Scanning dependencies of target mock_bidder_test
Scanning dependencies of target country_cache_test
Scanning dependencies of target exchange_handler_test
Scanning dependencies of target messaging_client_test
[ 58%] Building CXX object examples/CMakeFiles/country_cache_test.dir/country_ca che_test.cpp.o
[ 60%] Building CXX object examples/CMakeFiles/mock_bidder_test.dir/mock_bidder_ test.cpp.o
[ 61%] Building CXX object examples/CMakeFiles/messaging_client_test.dir/messagi ng_client_test.cpp.o
[ 63%] Building CXX object examples/CMakeFiles/exchange_handler_test.dir/exchang e_handler_test.cpp.o
[ 65%] Linking CXX executable country_cache_test
../rtb/libvanilla_rtb.so.1.1.0: undefined reference to boost::log::v2_mt_posix: :aux::code_convert_impl(wchar_t const*, unsigned long, std::__cxx11::basic_strin g<char, std::char_traits<char>, std::allocator<char> >&, unsigned long, std::loc ale const&)' ../rtb/libvanilla_rtb.so.1.1.0: undefined reference to void boost::log::v2_mt_p osix::aux::put_integer(boost::log::v2_mt_posix::aux::basic_ostringstreambu f<char, std::char_traits, std::allocator >&, unsigned int, unsigned int, char)'
../rtb/libvanilla_rtb.so.1.1.0: undefined reference to boost::log::v2_mt_posix: :sinks::text_file_backend::construct(boost::filesystem::path const&, std::_Ios_O penmode, unsigned long, boost::log::v2_mt_posix::aux::light_function<bool ()> co nst&, bool, bool)' collect2: error: ld returned 1 exit status examples/CMakeFiles/country_cache_test.dir/build.make:120: recipe for target 'ex amples/country_cache_test' failed make[2]: *** [examples/country_cache_test] Error 1 CMakeFiles/Makefile2:518: recipe for target 'examples/CMakeFiles/country_cache_t est.dir/all' failed make[1]: *** [examples/CMakeFiles/country_cache_test.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 66%] Linking CXX executable mock_bidder_test CMakeFiles/mock_bidder_test.dir/mock_bidder_test.cpp.o: In function boost::arch ive::detail::common_iarchiveboost::archive::binary_iarchive::vload(boost::arch ive::class_name_type&)':
mock_bidder_test.cpp:(.text._ZN5boost7archive6detail15common_iarchiveINS0_15bina ry_iarchiveEE5vloadERNS0_15class_name_typeE[_ZN5boost7archive6detail15common_iar chiveINS0_15binary_iarchiveEE5vloadERNS0_15class_name_typeE]+0x1): undefined ref erence to boost::archive::basic_binary_iarchive<boost::archive::binary_iarchive >::load_override(boost::archive::class_name_type&)' CMakeFiles/mock_bidder_test.dir/mock_bidder_test.cpp.o: In function void boost: :serialization::throw_exceptionboost::archive::archive_exception(boost::archiv e::archive_exception const&)':
mock_bidder_test.cpp:(.text.ZN5boost13serialization15throw_exceptionINS_7archiv e17archive_exceptionEEEvRKT[ZN5boost13serialization15throw_exceptionINS_7archi ve17archive_exceptionEEEvRKT]+0x1d): undefined reference to boost::archive::ar chive_exception::archive_exception(boost::archive::archive_exception const&)' ../rtb/libvanilla_rtb.so.1.1.0: undefined reference to boost::log::v2_mt_posix: :aux::code_convert_impl(wchar_t const*, unsigned long, std::__cxx11::basic_strin g<char, std::char_traits, std::allocator >&, unsigned long, std::loc ale const&)'
../rtb/libvanilla_rtb.so.1.1.0: undefined reference to void boost::log::v2_mt_p osix::aux::put_integer<char>(boost::log::v2_mt_posix::aux::basic_ostringstreambu f<char, std::char_traits<char>, std::allocator<char> >&, unsigned int, unsigned int, char)' ../rtb/libvanilla_rtb.so.1.1.0: undefined reference to boost::log::v2_mt_posix: :sinks::text_file_backend::construct(boost::filesystem::path const&, std::_Ios_O penmode, unsigned long, boost::log::v2_mt_posix::aux::light_function<bool ()> co nst&, bool, bool)'
collect2: error: ld returned 1 exit status
examples/CMakeFiles/mock_bidder_test.dir/build.make:120: recipe for target 'exam ples/mock_bidder_test' failed
make[2]: *** [examples/mock_bidder_test] Error 1
CMakeFiles/Makefile2:577: recipe for target 'examples/CMakeFiles/mock_bidder_tes t.dir/all' failed
make[1]: *** [examples/CMakeFiles/mock_bidder_test.dir/all] Error 2
[ 68%] Linking CXX executable messaging_client_test
CMakeFiles/messaging_client_test.dir/messaging_client_test.cpp.o: In function b oost::archive::detail::common_iarchive<boost::archive::binary_iarchive>::vload(b oost::archive::class_name_type&)': messaging_client_test.cpp:(.text._ZN5boost7archive6detail15common_iarchiveINS0_1 5binary_iarchiveEE5vloadERNS0_15class_name_typeE[_ZN5boost7archive6detail15commo n_iarchiveINS0_15binary_iarchiveEE5vloadERNS0_15class_name_typeE]+0x1): undefine d reference to boost::archive::basic_binary_iarchive<boost::archive::binary_iar chive>::load_override(boost::archive::class_name_type&)'
CMakeFiles/messaging_client_test.dir/messaging_client_test.cpp.o: In function v oid boost::serialization::throw_exception<boost::archive::archive_exception>(boo st::archive::archive_exception const&)': messaging_client_test.cpp:(.text._ZN5boost13serialization15throw_exceptionINS_7a rchive17archive_exceptionEEEvRKT_[_ZN5boost13serialization15throw_exceptionINS_7 archive17archive_exceptionEEEvRKT_]+0x1d): undefined reference to boost::archiv e::archive_exception::archive_exception(boost::archive::archive_exception const& )'
../rtb/libvanilla_rtb.so.1.1.0: undefined reference to boost::log::v2_mt_posix: :aux::code_convert_impl(wchar_t const*, unsigned long, std::__cxx11::basic_strin g<char, std::char_traits<char>, std::allocator<char> >&, unsigned long, std::loc ale const&)' ../rtb/libvanilla_rtb.so.1.1.0: undefined reference to void boost::log::v2_mt_p osix::aux::put_integer(boost::log::v2_mt_posix::aux::basic_ostringstreambu f<char, std::char_traits, std::allocator >&, unsigned int, unsigned int, char)'
../rtb/libvanilla_rtb.so.1.1.0: undefined reference to boost::log::v2_mt_posix: :sinks::text_file_backend::construct(boost::filesystem::path const&, std::_Ios_O penmode, unsigned long, boost::log::v2_mt_posix::aux::light_function<bool ()> co nst&, bool, bool)' collect2: error: ld returned 1 exit status examples/CMakeFiles/messaging_client_test.dir/build.make:120: recipe for target 'examples/messaging_client_test' failed make[2]: *** [examples/messaging_client_test] Error 1 CMakeFiles/Makefile2:606: recipe for target 'examples/CMakeFiles/messaging_clien t_test.dir/all' failed make[1]: *** [examples/CMakeFiles/messaging_client_test.dir/all] Error 2 [ 70%] Linking CXX executable exchange_handler_test /usr/bin/ld: warning: libboost_system.so.1.67.0, needed by ../CRUD/service/libcr ud_service.so, may conflict with libboost_system.so.1.58.0 CMakeFiles/exchange_handler_test.dir/exchange_handler_test.cpp.o: In function b oost::archive::detail::common_iarchiveboost::archive::binary_iarchive::vload(b oost::archive::class_name_type&)':
exchange_handler_test.cpp:(.text._ZN5boost7archive6detail15common_iarchiveINS0_1 5binary_iarchiveEE5vloadERNS0_15class_name_typeE[_ZN5boost7archive6detail15commo n_iarchiveINS0_15binary_iarchiveEE5vloadERNS0_15class_name_typeE]+0x1): undefine d reference to boost::archive::basic_binary_iarchive<boost::archive::binary_iar chive>::load_override(boost::archive::class_name_type&)' CMakeFiles/exchange_handler_test.dir/exchange_handler_test.cpp.o: In function b oost::re_detail_106700::perl_matcher<char const*, std::allocator<boost::sub_matc h<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits > >::u nwind_extra_block(bool)':
exchange_handler_test.cpp:(.text._ZN5boost16re_detail_10670012perl_matcherIPKcSa INS_9sub_matchIS3_EEENS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE18unwind_ext ra_blockEb[ZN5boost16re_detail_10670012perl_matcherIPKcSaINS_9sub_matchIS3_EEEN S_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE18unwind_extra_blockEb]+0x22): und efined reference to boost::re_detail_106700::put_mem_block(void*)' CMakeFiles/exchange_handler_test.dir/exchange_handler_test.cpp.o: In function v oid boost::re_detail_106700::raise_error<boost::regex_traits_wrapper<boost::rege x_traits<char, boost::cpp_regex_traits > > >(boost::regex_traits_wrapper<b oost::regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex constants::error_type)':
exchange_handler_test.cpp:(.text._ZN5boost16re_detail_10670011raise_errorINS_20r egex_traits_wrapperINS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEEEEEvRKT_NS_15 regex_constants10error_typeE[_ZN5boost16re_detail_10670011raise_errorINS_20regex _traits_wrapperINS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEEEEEvRKT_NS_15rege x_constants10error_typeE]+0x98): undefined reference to boost::re_detail_106700 ::get_default_error_string(boost::regex_constants::error_type)' exchange_handler_test.cpp:(.text._ZN5boost16re_detail_10670011raise_errorINS_20r egex_traits_wrapperINS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEEEEEvRKT_NS_15 regex_constants10error_typeE[_ZN5boost16re_detail_10670011raise_errorINS_20regex _traits_wrapperINS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEEEEEvRKT_NS_15rege x_constants10error_typeE]+0xc9): undefined reference to boost::re_detail_106700 ::raise_runtime_error(std::runtime_error const&)'
CMakeFiles/exchange_handler_test.dir/exchange_handler_test.cpp.o: In function b oost::re_detail_106700::perl_matcher<char const*, std::allocator<boost::sub_matc h<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::e xtend_stack()': exchange_handler_test.cpp:(.text._ZN5boost16re_detail_10670012perl_matcherIPKcSa INS_9sub_matchIS3_EEENS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE12extend_sta ckEv[_ZN5boost16re_detail_10670012perl_matcherIPKcSaINS_9sub_matchIS3_EEENS_12re gex_traitsIcNS_16cpp_regex_traitsIcEEEEE12extend_stackEv]+0x2e): undefined refer ence to boost::re_detail_106700::get_mem_block()'
CMakeFiles/exchange_handler_test.dir/exchange_handler_test.cpp.o: In function c har const* boost::re_detail_106700::re_is_set_member<char const*, char, boost::r egex_traits<char, boost::cpp_regex_traits<char> >, unsigned int>(char const*, ch ar const*, boost::re_detail_106700::re_set_long<unsigned int> const*, boost::re_ detail_106700::regex_data<char, boost::regex_traits<char, boost::cpp_regex_trait s<char> > > const&, bool)': exchange_handler_test.cpp:(.text._ZN5boost16re_detail_10670016re_is_set_memberIP KccNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEjEET_S8_S8_PKNS0_11re_set_longI T2_EERKNS0_10regex_dataIT0_T1_EEb[_ZN5boost16re_detail_10670016re_is_set_memberI PKccNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEjEET_S8_S8_PKNS0_11re_set_long IT2_EERKNS0_10regex_dataIT0_T1_EEb]+0x360): undefined reference to boost::re_de tail_106700::cpp_regex_traits_implementation::transform_primary[abi:cxx11] (char const*, char const*) const'
exchange_handler_test.cpp:(.text._ZN5boost16re_detail_10670016re_is_set_memberIP KccNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEjEET_S8_S8_PKNS0_11re_set_longI T2_EERKNS0_10regex_dataIT0_T1_EEb[_ZN5boost16re_detail_10670016re_is_set_memberI PKccNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEjEET_S8_S8_PKNS0_11re_set_long IT2_EERKNS0_10regex_dataIT0_T1_EEb]+0x474): undefined reference to boost::re_de tail_106700::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char co nst*, char const*) const' CMakeFiles/exchange_handler_test.dir/exchange_handler_test.cpp.o: In function v oid boost::serialization::throw_exceptionboost::archive::archive_exception(boo st::archive::archive_exception const&)':
exchange_handler_test.cpp:(.text.ZN5boost13serialization15throw_exceptionINS_7a rchive17archive_exceptionEEEvRKT[ZN5boost13serialization15throw_exceptionINS_7 archive17archive_exceptionEEEvRKT]+0x1d): undefined reference to boost::archiv e::archive_exception::archive_exception(boost::archive::archive_exception const& )' CMakeFiles/exchange_handler_test.dir/exchange_handler_test.cpp.o: In function b oost::re_detail_106700::perl_matcher<char const*, std::allocator<boost::sub_matc h<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits > >::m atch_imp()':
exchange_handler_test.cpp:(.text._ZN5boost16re_detail_10670012perl_matcherIPKcSa INS_9sub_matchIS3_EEENS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE9match_impEv [ZN5boost16re_detail_10670012perl_matcherIPKcSaINS_9sub_matchIS3_EEENS_12regex traitsIcNS_16cpp_regex_traitsIcEEEEE9match_impEv]+0x1c): undefined reference to boost::re_detail_106700::get_mem_block()' exchange_handler_test.cpp:(.text._ZN5boost16re_detail_10670012perl_matcherIPKcSa INS_9sub_matchIS3_EEENS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE9match_impEv [_ZN5boost16re_detail_10670012perl_matcherIPKcSaINS_9sub_matchIS3_EEENS_12regex_ traitsIcNS_16cpp_regex_traitsIcEEEEE9match_impEv]+0x216): undefined reference to boost::re_detail_106700::verify_options(unsigned int, boost::regex_constants:: _match_flags)'
exchange_handler_test.cpp:(.text._ZN5boost16re_detail_10670012perl_matcherIPKcSa INS_9sub_matchIS3_EEENS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE9match_impEv [ZN5boost16re_detail_10670012perl_matcherIPKcSaINS_9sub_matchIS3_EEENS_12regex traitsIcNS_16cpp_regex_traitsIcEEEEE9match_impEv]+0x2c0): undefined reference to boost::re_detail_106700::put_mem_block(void*)' exchange_handler_test.cpp:(.text._ZN5boost16re_detail_10670012perl_matcherIPKcSa INS_9sub_matchIS3_EEENS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE9match_impEv [_ZN5boost16re_detail_10670012perl_matcherIPKcSaINS_9sub_matchIS3_EEENS_12regex_ traitsIcNS_16cpp_regex_traitsIcEEEEE9match_impEv]+0x3f7): undefined reference to boost::re_detail_106700::put_mem_block(void*)'
CMakeFiles/exchange_handler_test.dir/exchange_handler_test.cpp.o: In function h ttp::server::persistent_connection<http::crud::crud_dispatcher<http::server::req uest, http::server::reply, boost::match_results<char const*, std::allocator<boos t::sub_match<char const*> > >, boost::basic_regex<char, boost::regex_traits<char , boost::cpp_regex_traits<char> > > > >::do_read()::{lambda(boost::system::error _code, unsigned long)#1}::operator()(boost::system::error_code, unsigned long) c onst': exchange_handler_test.cpp:(.text._ZZN4http6server21persistent_connectionINS_4cru d15crud_dispatcherINS0_7requestENS0_5replyEN5boost13match_resultsIPKcSaINS6_9sub _matchIS9_EEEEENS6_11basic_regexIcNS6_12regex_traitsIcNS6_16cpp_regex_traitsIcEE EEEEEEE7do_readEvENKUlNS6_6system10error_codeEmE_clESN_m[_ZZN4http6server21persi stent_connectionINS_4crud15crud_dispatcherINS0_7requestENS0_5replyEN5boost13matc h_resultsIPKcSaINS6_9sub_matchIS9_EEEEENS6_11basic_regexIcNS6_12regex_traitsIcNS 6_16cpp_regex_traitsIcEEEEEEEEE7do_readEvENKUlNS6_6system10error_codeEmE_clESN_m ]+0x56a): undefined reference to boost::re_detail_106700::perl_matcher<char con st*, std::allocator<boost::sub_match<char const*> >, boost::regex_traits<char, b oost::cpp_regex_traits > >::construct_init(boost::basic_regex<char, boost: :regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex_const ants::_match_flags)'
../rtb/libvanilla_rtb.so.1.1.0: undefined reference to boost::log::v2_mt_posix: :aux::code_convert_impl(wchar_t const*, unsigned long, std::__cxx11::basic_strin g<char, std::char_traits<char>, std::allocator<char> >&, unsigned long, std::loc ale const&)' ../rtb/libvanilla_rtb.so.1.1.0: undefined reference to void boost::log::v2_mt_p osix::aux::put_integer(boost::log::v2_mt_posix::aux::basic_ostringstreambu f<char, std::char_traits, std::allocator >&, unsigned int, unsigned int, char)'
../rtb/libvanilla_rtb.so.1.1.0: undefined reference to boost::log::v2_mt_posix: :sinks::text_file_backend::construct(boost::filesystem::path const&, std::_Ios_O penmode, unsigned long, boost::log::v2_mt_posix::aux::light_function<bool ()> co nst&, bool, bool)' collect2: error: ld returned 1 exit status examples/CMakeFiles/exchange_handler_test.dir/build.make:118: recipe for target 'examples/exchange_handler_test' failed make[2]: *** [examples/exchange_handler_test] Error 1 CMakeFiles/Makefile2:548: recipe for target 'examples/CMakeFiles/exchange_handle r_test.dir/all' failed make[1]: *** [examples/CMakeFiles/exchange_handler_test.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2

@venediktov
Copy link
Owner

venediktov commented Apr 29, 2020

Linking CXX executable exchange_handler_test /usr/bin/ld: warning: libboost_system.so.1.67.0, needed by ../CRUD/service/libcr ud_service.so, may conflict with libboost_system.so.1.58.0

Looks like you have two boost libraries installed on your machine v.1.67 and v.1.58 those two libraries not compatible. The code is compiled with one but linked with another; I believe you might have old library installed under /user/lib which has precedence in linker search. First make sure only one version of library is installed e.g. both headers and boost binaries must come from the same version of boost.

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

2 participants