bzip2 issue while installing ROS indigo on Ubuntu 14.04

asked 2016-08-11 09:15:49 -0500

hitheng gravatar image

updated 2016-08-12 01:28:06 -0500

gvdhoorn gravatar image

Here is the error msg I got while building ROS. I did get the source for bzip2 and rebuild with -fPIC, but still the same issue, any help is appreciated.

Linking CXX shared library /home/zjia/ros_catkin_ws/devel_isolated/rosbag_storage/lib/librosbag_storage.so
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libbz2.a(bzlib.o): relocation R_X86_64_32S against `BZ2_crc32Table' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libbz2.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [/home/zjia/ros_catkin_ws/devel_isolated/rosbag_storage/lib/librosbag_storage.so] Error 1
make[1]: *** [CMakeFiles/rosbag_storage.dir/all] Error 2
make: *** [all] Error 2
zjia@mllwl1186-l:~/r
edit retag flag offensive close merge delete

Comments

AndyZe gravatar image AndyZe  ( 2022-08-27 19:06:39 -0500 )edit