mysql-sniffer icon indicating copy to clipboard operation
mysql-sniffer copied to clipboard

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

Open d4zzz opened this issue 6 years ago • 5 comments

/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

d4zzz avatar Jun 06 '18 03:06 d4zzz

这问题还没人解决吗?

supergaga avatar Aug 21 '18 09:08 supergaga

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

bollwarm avatar Sep 04 '18 08:09 bollwarm

@bollwarm Thanks

hhyo avatar Nov 29 '18 08:11 hhyo

@bollwarm It works!

tankilo avatar Nov 30 '18 03:11 tankilo

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

ronghuaihai avatar Jan 27 '21 08:01 ronghuaihai