Ask Your Question
1

librosconsole.so: undefined reference to `boost::re_detail_106100::cpp_regex_traits_implementation ...

asked 2016-10-23 06:46:51 -0600

Kyuzo gravatar image

I'm trying to install ROS indigo on a Debian Jessie based distribution using the wiki http://wiki.ros.org/indigo/Installati...

I did rosdep install --from-paths src --ignore-src --rosdistro indigo -y -r --os=debian:jessie however, when I run sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/indigo to build the catkin workspace I got a linking error:

==> Processing catkin package: 'pluginlib'
==> Building with env: '/opt/ros/indigo/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/user/ros_catkin_ws/build_isolated/pluginlib'
==> make -j2 -l2 in '/home/user/ros_catkin_ws/build_isolated/pluginlib'
[ 50%] Linking CXX executable /home/user/ros_catkin_ws/devel_isolated/pluginlib/lib/pluginlib/plugin_tool
/opt/ros/indigo/lib/librosconsole.so: undefined reference to `boost::re_detail_106100::cpp_regex_traits_implementation<char>::transform(char const, char const) const'
/opt/ros/indigo/lib/librosconsole.so: undefined reference to `boost::re_detail_106100::cpp_regex_traits_implementation<char>::transform_primary(char const, char const) const'
collect2: error: ld returned 1 exit status
CMakeFiles/plugin_tool.dir/build.make:133: recipe for target '/home/user/ros_catkin_ws/devel_isolated/pluginlib/lib/pluginlib/plugin_tool' failed
make[2]: ** [/home/user/ros_catkin_ws/devel_isolated/pluginlib/lib/pluginlib/plugin_tool] Error 1
CMakeFiles/Makefile2:197: recipe for target 'CMakeFiles/plugin_tool.dir/all' failed
make[1]: *
* [CMakeFiles/plugin_tool.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'pluginlib':
Command '['/opt/ros/indigo/env.sh', 'make', '-j2', '-l2']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/user/ros_catkin_ws/build_isolated/pluginlib && /opt/ros/indigo/env.sh make -j2 -l2

As for librosconsole.so

==> Processing catkin package: 'rosconsole'
==> Creating build directory: 'build_isolated/rosconsole'
==> Building with env: '/opt/ros/indigo/env.sh'
==> cmake /home/user/ros_catkin_ws/src/ros_comm/rosconsole -DCATKIN_DEVEL_PREFIX=/home/user/ros_catkin_ws/devel_isolated/rosconsole -DCMAKE_INSTALL_PREFIX=/opt/ros/indigo -DCMAKE_BUILD_TYPE=Release -G Unix Makefiles in '/home/user/ros_catkin_ws/build_isolated/rosconsole'
-- The C compiler identification is GNU 5.3.1
-- The CXX compiler identification is GNU 5.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/user/ros_catkin_ws/devel_isolated/rosconsole
-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo
-- This workspace overlays: /opt/ros/indigo
-- Found PythonInterp: /usr/bin/python (found version "2.7.12")
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/user/ros_catkin_ws/build_isolated/rosconsole/test_results
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found gtest sources under '/usr/src/gtest': gtests ...

(more)
edit retag flag offensive close merge delete

Comments

meet the same problem... Can anybody solve it?

yaqing gravatar imageyaqing ( 2017-07-10 09:35:50 -0600 )edit

Same error with Debian Stretch and ROS Lunar

2ROS0 gravatar image2ROS0 ( 2019-02-05 10:28:54 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-09-16 20:30:30 -0600

jessearmand gravatar image

I have seen the same problem in Debian Buster and ROS kinetic / melodic.

In my case, the solution is to make sure there's only one version of libboost in the system and to use the latest but stable GCC compiler on Buster (GCC version 8).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-10-23 06:41:00 -0600

Seen: 748 times

Last updated: Oct 23 '16