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

/opt/ros/hydro/lib/libroscpp.so: undefined symbol: _ZN3ros6HeaderC1Ev

asked 2014-03-05 22:44:33 -0500

Artem gravatar image

updated 2014-03-09 23:07:44 -0500

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.

edit retag flag offensive close merge delete

Comments

Have you tried recompiling everything from scratch, including rosconsole?

demmeln gravatar image demmeln  ( 2014-03-06 01:21:12 -0500 )edit

Yes I did. Did not help. I also rebuilt log4cxx.

Artem gravatar image Artem  ( 2014-03-06 03:42:40 -0500 )edit

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?

William gravatar image William  ( 2014-03-06 06:12:56 -0500 )edit

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

Artem gravatar image Artem  ( 2014-03-06 11:35:49 -0500 )edit

Can you please execute the following 'rosrun camera1394 camera1394_node', you don't have to have cameras. Do you get the errors above?

Artem gravatar image Artem  ( 2014-03-06 12:04:00 -0500 )edit

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.

demmeln gravatar image demmeln  ( 2014-03-06 14:45:41 -0500 )edit

I do get the same segfault upon exiting rviz though...

demmeln gravatar image demmeln  ( 2014-03-06 15:03:51 -0500 )edit

Thank you! It is weird, now I am having similar errors in Ubuntu 13.04, I've updated my answer.

Artem gravatar image Artem  ( 2014-03-06 21:30:24 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-03-10 00:17:03 -0500

demmeln gravatar image

I looks like maybe this was an issue with a specific version. I suggest you reinstall the latest release from scratch, or at least check which packages have a newer version released. ( http://answers.ros.org/question/10965... might help)

edit flag offensive delete link more

Comments

Thank you! I rebuilt ros again and did brew update and upgrade, still having the same errors. No idea what has happened.

Artem gravatar image Artem  ( 2014-03-11 05:32:48 -0500 )edit

This is wierd. Could you maybe detail the exact steps you take for reinstalling ros and then building the camera1394 package that fails?

demmeln gravatar image demmeln  ( 2014-03-14 04:17:07 -0500 )edit

Sorry I did not update the question. After reinstalling and rebuilding ros and all my packagers the problem has gone, at least in Mac OSX, I will check Ubuntu later. Thanks for your help.

Artem gravatar image Artem  ( 2014-03-14 21:49:18 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2014-03-05 22:44:33 -0500

Seen: 1,412 times

Last updated: Mar 10 '14