ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Building error: Indigo on Debian Jessie: pluginlib "undefined reference to..."

asked 2016-02-10 09:32:22 -0500

tomtana gravatar image

updated 2016-02-10 09:38:04 -0500

Hi there,

I am currently trying to build ROS indigo from source on my Debian Jessie machine. I keep on getting the following error when the process is trying to build the package "pluginlib". I am really stuck here and would appreciate your help on this!

Thanks!

Linking CXX executable /home/tman/ros_catkin_ws/devel_isolated/pluginlib/lib/pluginlib/plugin_tool
/opt/ros/indigo/lib/librosconsole.so: undefined reference to `boost::re_detail::verify_options(unsigned int, boost::regex_constants::_match_flags)'
/opt/ros/indigo/lib/librosconsole.so: undefined reference to `boost::re_detail::get_mem_block()'
/opt/ros/indigo/lib/librosconsole.so: undefined reference to `boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > > > const&)'
/opt/ros/indigo/lib/librosconsole.so: undefined reference to `boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, 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)'
/opt/ros/indigo/lib/librosconsole.so: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const'
/opt/ros/indigo/lib/librosconsole.so: undefined reference to `boost::re_detail::get_default_error_string(boost::regex_constants::error_type)'
/opt/ros/indigo/lib/librosconsole.so: undefined reference to `boost::re_detail::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const'
/opt/ros/indigo/lib/librosconsole.so: undefined reference to `boost::re_detail::put_mem_block(void*)'
/opt/ros/indigo/lib/librosconsole.so: undefined reference to `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)'
/opt/ros/indigo/lib/librosconsole.so: undefined reference to `boost::re_detail::raise_runtime_error(std::runtime_error const&)'
collect2: error: ld returned 1 exit status
CMakeFiles/plugin_tool.dir/build.make:116: recipe for target '/home/tman/ros_catkin_ws/devel_isolated/pluginlib/lib/pluginlib/plugin_tool' failed
make[2]: *** [/home/tman/ros_catkin_ws/devel_isolated/pluginlib/lib/pluginlib/plugin_tool] Error 1
CMakeFiles/Makefile2:310: recipe for target 'CMakeFiles/plugin_tool.dir/all' failed
make[1]: *** [CMakeFiles/plugin_tool.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'pluginlib': 
  Command '['/opt/ros/indigo/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/tman/ros_catkin_ws/build_isolated/pluginlib && /opt/ros/indigo/env.sh make -j4 -l4

Command failed, exiting.
edit retag flag offensive close merge delete

Comments

it's not a dependencies problem on Debian Stretch and ROS Lunar. The command rosdep install --from-paths src --ignore-src --rosdistro lunar -y -r --os=debian:stretch doesn't solve the problem

2ROS0 gravatar image 2ROS0  ( 2019-02-05 10:33:45 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2016-02-10 10:55:10 -0500

tomtana gravatar image

updated 2016-02-10 10:55:32 -0500

The error was caused by unresolved dependencies.

I could resolve them by running the command:

rosdep install --from-paths src --ignore-src --rosdistro indigo -y -r --os=debian:jessie
edit flag offensive delete link more
0

answered 2017-07-10 09:33:08 -0500

yaqing gravatar image

Meet the similar error(but mine is Error 1CMakeFiles/Makefile2:198 and Error 2Makefile:138... Whatever) No result by running: rosdep install --from-paths src --ignore-src --rosdistro indigo -y -r --os=debian:jessie How can I solve the problem? How can I make sure that I compiled all dependencies with one version of GCC?

edit flag offensive delete link more
0

answered 2017-06-04 13:36:58 -0500

archenroot gravatar image

This is usually happening in general on any system where you have multiple GCC versions installed on Gentoo systems. While C packages are not affected, C++ suffer problems when one dependency is compiled for example with 5.4.0 and other dependency with 6.3.0. Recompiling all dependencies with one version of GCC should/might help.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-10 09:22:25 -0500

Seen: 1,213 times

Last updated: Feb 10 '16