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

libpthread.so.0: error adding symbols: DSO missing from command line #30

Open
d4zzz opened this issue Jun 6, 2018 · 5 comments
Open

Comments

@d4zzz
Copy link

d4zzz commented Jun 6, 2018

/usr/bin/ld: /root/mysql-sniffer/lib/libgthread-2.0.a(gthread-impl.o): undefined reference to symbol 'pthread_setspecific@@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
bin/CMakeFiles/mysql-sniffer.dir/build.make:224: recipe for target 'bin/mysql-sniffer' failed
make[2]: *** [bin/mysql-sniffer] Error 1
CMakeFiles/Makefile2:85: recipe for target 'bin/CMakeFiles/mysql-sniffer.dir/all' failed
make[1]: *** [bin/CMakeFiles/mysql-sniffer.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@supergaga
Copy link

这问题还没人解决吗?

@bollwarm
Copy link

bollwarm commented Sep 4, 2018

I had resolved this question by the method of following:

change the configure files mysql-sniffer/src/CMakeLists.txt

TARGET_LINK_LIBRARIES(mysql-sniffer optimized
libnidstcpreasm.a
libpthread.so.0
libnet.a
libpcap.a
libglib-2.0.a
libgthread-2.0.a
librt.so)

TARGET_LINK_LIBRARIES(mysql-sniffer debug
libnidstcpreasm-dbg.a
libpthread.so.0
libnet.a
libpcap.a
libglib-2.0.a
libgthread-2.0.a
librt.so)

and then cmake and make
It't OK

@hhyo
Copy link

hhyo commented Nov 29, 2018

@bollwarm Thanks

@tankilo
Copy link

tankilo commented Nov 30, 2018

@bollwarm It works!

@ronghuaihai
Copy link

I had resolved this question by the method of following:

change the configure files mysql-sniffer/src/CMakeLists.txt

TARGET_LINK_LIBRARIES(mysql-sniffer optimized
libnidstcpreasm.a
libpthread.so.0
libnet.a
libpcap.a
libglib-2.0.a
libgthread-2.0.a
librt.so)

TARGET_LINK_LIBRARIES(mysql-sniffer debug
libnidstcpreasm-dbg.a
libpthread.so.0
libnet.a
libpcap.a
libglib-2.0.a
libgthread-2.0.a
librt.so)

and then cmake and make
It't OK

确实能解决问题,thanks

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

6 participants