bzip2 issue while installing ROS indigo on Ubuntu 14.04
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
Similar to: https://answers.ros.org/question/3741...