/opt/ros/hydro/lib/libroscpp.so: undefined symbol: _ZN3ros6HeaderC1Ev
After updating Mac OS 10.9.1 to 10.9.2 camera1394 nodes fails to start with
dyld: lazy symbol binding failed: Symbol not found: __ZN3ros7console5printEPNS0_10FilterBaseEPN7log4cxx6LoggerENS0_6levels5LevelERKNSt3__118basic_stringstreamIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEPKciSI_
Referenced from: /Users/user/ros/st_perception/devel/lib/camera1394/camera1394_node
Expected in: /opt/ros/hydro/lib/librosconsole.dylib
dyld: Symbol not found: __ZN3ros7console5printEPNS0_10FilterBaseEPN7log4cxx6LoggerENS0_6levels5LevelERKNSt3__118basic_stringstreamIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEPKciSI_
Referenced from: /Users/user/ros/st_perception/devel/lib/camera1394/camera1394_node
Expected in: /opt/ros/hydro/lib/librosconsole.dylib
I found it is a common problem, however could not find a solution. I believe rosconsole needs to be modified. But how? Any ideas?
- EDITED
OK, it looks like it's not only OSX problem, I've started having similar issues on Linux 13.04, that is running on the same computer in Parallels. Here is an example:
/opt/ros/hydro/lib/rosout/rosout: symbol lookup error: /opt/ros/hydro/lib/libroscpp.so: undefined symbol: _ZN3ros6HeaderC1Ev
- EDITED2
It's weird, it's working fine on Ubuntu, so I am back to the original question about Mac OSX. I guess it is my local problem, related to software versions.
Have you tried recompiling everything from scratch, including rosconsole?
Yes I did. Did not help. I also rebuilt log4cxx.
I am able to run rviz with hydro on 10.9.2, have you sourced your setup.bash? Does the library `/opt/ros/hydro/lib/librosconsole.dylib` exist?
Yes, librosconsole.dylib exists and its size's 536136b. There's a chance that I somehow messed up my brew repository and should probably rebuild everything.I can run rviz, but when exiting it,I get segment. fault in libOgreMain.1.7.4.dylib 0x000000010fecfddd Ogre::Viewport::_updateDimensions() + 25
Can you please execute the following 'rosrun camera1394 camera1394_node', you don't have to have cameras. Do you get the errors above?
No, that works for me on 10.9.2. I get a "[ERROR] [1394160230.038058000]: [camera] device open failed: [Camera1394::open]: No cameras found" error, but nothing from the dynamic linker. I just recompiled all of ROS hydro and the the camera1394 package from scratch.
I do get the same segfault upon exiting rviz though...
Thank you! It is weird, now I am having similar errors in Ubuntu 13.04, I've updated my answer.