Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 597456 - dev-ruby/facter-3.4.1 fails to link (undefined references related to boost regex)
Summary: dev-ruby/facter-3.4.1 fails to link (undefined references related to boost re...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-18 15:27 UTC by Reuben Martin
Modified: 2016-10-26 00:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (emerge-info.txt,6.91 KB, text/plain)
2016-10-18 15:31 UTC, Reuben Martin
Details
Build Log (build.log,248.09 KB, text/plain)
2016-10-18 15:33 UTC, Reuben Martin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Martin 2016-10-18 15:27:26 UTC
this is built against dev-libs/boost-1.62.0-r1


[ 99%] Linking CXX executable ../bin/facter
cd /var/tmp/portage/dev-ruby/facter-3.4.1/work/facter-3.4.1_build/exe && /usr/bin/cmake -E cmake_link_script CMakeFiles/facter.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++   -O2 -march=native -mfpmath=sse -ftree-vectorize -fomit-frame-pointer -pipe -fvisibility-inlines-hidden  -Wno-maybe-uninitialized -std=c++11 -Wall -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-unknown-pragmas -Wno-missing-field-initializers -Wextra   -Wl,-O1 -Wl,--sort-common -Wl,--as-needed CMakeFiles/facter.dir/facter.cc.o  -o ../bin/facter -rdynamic -lrt ../lib/libfacter.so.3.4.1 -Wl,-Bstatic -lcpp-hocon /usr/lib64/leatherman_curl.a /usr/lib64/leatherman_ruby.a /usr/lib64/leatherman_execution.a /usr/lib64/leatherman_dynamic_library.a /usr/lib64/leatherman_file_util.a /usr/lib64/leatherman_util.a /usr/lib64/leatherman_logging.a /usr/lib64/leatherman_locale.a -Wl,-Bdynamic -lboost_locale-mt -lboost_system-mt -lboost_log-mt -lboost_log_setup-mt -lboost_thread-mt -lboost_date_time-mt -lboost_filesystem-mt -lboost_chrono-mt -lboost_regex-mt -lpthread /usr/lib64/leatherman_locale.a -lrt /usr/lib64/leatherman_logging.a /usr/lib64/leatherman_util.a -ldl /usr/lib64/leatherman_file_util.a /usr/lib64/leatherman_dynamic_library.a /usr/lib64/leatherman_execution.a -lcurl -lboost_program_options-mt -lboost_system-mt -lboost_filesystem-mt -lboost_date_time-mt -lboost_regex-mt -lboost_thread-mt -lboost_chrono-mt -lpthread -lrt -Wl,-Bstatic -lcpp-hocon -Wl,-Bdynamic -lboost_locale-mt -lboost_log-mt -lboost_log_setup-mt -ldl -lcurl -lboost_program_options-mt -Wl,-rpath,/var/tmp/portage/dev-ruby/facter-3.4.1/work/facter-3.4.1_build/lib: 
../lib/libfacter.so.3.4.1: undefined reference to `boost::re_detail_106100::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const'
../lib/libfacter.so.3.4.1: undefined reference to `boost::re_detail_106100::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)'
../lib/libfacter.so.3.4.1: undefined reference to `boost::re_detail_106100::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const'
../lib/libfacter.so.3.4.1: undefined reference to `boost::re_detail_106100::raise_runtime_error(std::runtime_error const&)'
../lib/libfacter.so.3.4.1: undefined reference to `boost::re_detail_106100::get_mem_block()'
../lib/libfacter.so.3.4.1: undefined reference to `boost::re_detail_106100::get_default_error_string(boost::regex_constants::error_type)'
../lib/libfacter.so.3.4.1: undefined reference to `boost::re_detail_106100::put_mem_block(void*)'
../lib/libfacter.so.3.4.1: undefined reference to `boost::re_detail_106100::verify_options(unsigned int, boost::regex_constants::_match_flags)'
collect2: error: ld returned 1 exit status

Reproducible: Always
Comment 1 Reuben Martin 2016-10-18 15:31:24 UTC
Created attachment 450686 [details]
emerge info
Comment 2 Reuben Martin 2016-10-18 15:33:34 UTC
Created attachment 450688 [details]
Build Log
Comment 3 Reuben Martin 2016-10-19 14:29:24 UTC
Same error with dev-ruby/facter-3.1.8 BTW

Probably a breaking change in latest version of boost.
Comment 4 Kobboi 2016-10-21 19:50:23 UTC
For facter-3.1.8, I get a similar but different error:

[ 67%] Linking CXX executable ../bin/facter
cd /var/tmp/portage/dev-ruby/facter-3.1.8/work/facter-3.1.8_build/exe && /usr/bin/cmake -E cmake_link_script CMakeFiles/facter.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++   -O2 -march=native -pipe -fomit-frame-pointer  -Wno-maybe-uninitialized -std=c++11 -Wall -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-unknown-pragmas -Wno-missing-field-initializers -Wextra   -Wl,-O1 -Wl,--as-needed CMakeFiles/facter.dir/facter.cc.o  -o ../bin/facter -rdynamic ../lib/libfacter.so.3.2.0 -lboost_program_options-mt /usr/lib64/leatherman_util.a -lpthread -Wl,-rpath,/var/tmp/portage/dev-ruby/facter-3.1.8/work/facter-3.1.8_build/lib: 
../lib/libfacter.so.3.2.0: undefined reference to `boost::re_detail_106100::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const'
../lib/libfacter.so.3.2.0: undefined reference to `boost::re_detail_106100::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)'
../lib/libfacter.so.3.2.0: undefined reference to `boost::re_detail_106100::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const'
../lib/libfacter.so.3.2.0: undefined reference to `boost::re_detail_106100::raise_runtime_error(std::runtime_error const&)'
../lib/libfacter.so.3.2.0: undefined reference to `boost::re_detail_106100::get_mem_block()'
../lib/libfacter.so.3.2.0: undefined reference to `boost::re_detail_106100::get_default_error_string(boost::regex_constants::error_type)'
../lib/libfacter.so.3.2.0: undefined reference to `boost::re_detail_106100::put_mem_block(void*)'
../lib/libfacter.so.3.2.0: undefined reference to `boost::re_detail_106100::verify_options(unsigned int, boost::regex_constants::_match_flags)'
Comment 5 Kobboi 2016-10-21 19:50:54 UTC
boost-1.62.0-r1
Comment 6 Alex Xu (Hello71) 2016-10-25 23:00:54 UTC
read news items
Comment 7 Reuben Martin 2016-10-26 00:56:45 UTC
Which news item? I read the news items. I've seen nothing in the news items even remotely related to this.