matiasinsaurralde / facebook-tunnel

Tunneling Internet traffic over Facebook chat.
1.29k stars 82 forks source link

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

Closed eyedeekay closed 9 years ago

eyedeekay commented 9 years ago

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.