-
Notifications
You must be signed in to change notification settings - Fork 294
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
make 报错 #33
Comments
同问。。我也遇到了同样的错误,是centos7不支持吗? |
issues/30 |
同样 |
同样的问题,系统环境如下: |
我也是,按readme操作漏了个依赖好像, |
proj/bin/CMakeFiles/mysql-sniffer.dir/link.txt 文件最后加上-lpthread, 重新make就可以了 |
[ 83%] Building CXX object bin/CMakeFiles/mysql-sniffer.dir/sniff-config.cpp.o
/root/mysql-sniffer/src/sniff-config.cpp: 在函数‘int parse_cmdline_option(int, char**)’中:
/root/mysql-sniffer/src/sniff-config.cpp:183:9: 警告:variable ‘opt_len’ set but not used [-Wunused-but-set-variable]
int opt_len;
^
[100%] Building CXX object bin/CMakeFiles/mysql-sniffer.dir/sniff-log.cpp.o
Linking CXX executable mysql-sniffer
/usr/bin/ld: /root/mysql-sniffer/lib/libgthread-2.0.a(gthread-impl.o): undefined reference to symbol 'pthread_setspecific@@GLIBC_2.2.5'
//usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: 错误:ld 返回 1
make[2]: *** [bin/mysql-sniffer] 错误 1
make[1]: *** [bin/CMakeFiles/mysql-sniffer.dir/all] 错误 2
make: *** [all] 错误 2
##########################################################################
系统环境:CentOS7
glib2-devel-2.54.2-2.el7.x86_64 libpcap-devel-1.5.3-11.el7.x86_64 libnet-devel-1.1.6-7.el7.x86_64
The text was updated successfully, but these errors were encountered: