Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

franka_gripper: undefined reference to symbol 'pthread_condattr_setclock@@GLIBC_2.3.3' #95

Open
liborw opened this issue Feb 20, 2020 · 1 comment

Comments

@liborw
Copy link

liborw commented Feb 20, 2020

Hi,

I'm trying to build franka_gripper on ArchLinux, and got undefined reference error:

[100%] Linking CXX executable devel/lib/franka_gripper/franka_gripper_node
/usr/bin/ld: CMakeFiles/franka_gripper_node.dir/src/franka_gripper_node.cpp.o: undefined reference to symbol 'pthread_condattr_setclock@@GLIBC_2.3.3'
/usr/bin/ld: /usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/franka_gripper_node.dir/build.make:120: devel/lib/franka_gripper/franka_gripper_node] Error 1
make[2]: Leaving directory '/build/ros-melodic-franka-gripper/src/build'
make[1]: *** [CMakeFiles/Makefile2:2888: CMakeFiles/franka_gripper_node.dir/all] Error 2
make[1]: Leaving directory '/build/ros-melodic-franka-gripper/src/build'
make: *** [Makefile:130: all] Error 2
==> ERROR: A failure occurred in build()
    Aborting...
==> ERROR: Build failed, check /home/wagnelib/Arch/ros-arch-pkg-build/chroot/ros_melodic/build

Any suggestions?

@bbbrian94
Copy link

if you are using ubuntu and compile from terminal just add a flag "-pthread". I just met the similar problem in another project. just a tip lol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants