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

pthread wasn't being linked, I added it to CMakeLists.txt #6

Merged
merged 4 commits into from
Mar 19, 2015

Conversation

eyedeekay
Copy link
Contributor

Pretty simple, I was trying to build on Debian and was getting this

/usr/bin/ld: libtun.a(tun.cpp.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/facebook-tunnel.dir/build.make:94: recipe for target 'facebook-tunnel' failed
make[2]: *** [facebook-tunnel] Error 1
CMakeFiles/Makefile2:170: recipe for target 'CMakeFiles/facebook-tunnel.dir/all' failed
make[1]: *** [CMakeFiles/facebook-tunnel.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

Which just meant that pthread wasn't being linked correctly on Debian 8. Given the ubiquity of Debian-based systems I added it to CMakeLists.txt. Look forward to getting this to compile on the Android NDK.

matiasinsaurralde added a commit that referenced this pull request Mar 19, 2015
pthread wasn't being linked, I added it to CMakeLists.txt
@matiasinsaurralde matiasinsaurralde merged commit b82adf5 into matiasinsaurralde:master Mar 19, 2015
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

Successfully merging this pull request may close these issues.

2 participants