mysql-sniffer
mysql-sniffer copied to clipboard
libpthread.so.0: error adding symbols: DSO missing from command line
/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
这问题还没人解决吗?
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 Thanks
@bollwarm It works!
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