[Snort-users] snort 1.7 compiling with mysql

konsul at ...1169... konsul at ...1169...
Thu Jan 18 09:20:34 EST 2001

Hello Everyone. I have troubles with compiling snort with mysql
support. A have been installed  MySQL-3.22.32-1 from rpm, and it
working excelenty, configure script
correctly find mysql lib and headers, and enable support for it, but
during compilation, folowing output:
gcc  -g -O2 -Wall  -L/usr/lib/mysql -L/usr/lib -o snort  snort.o log.o decode.o mstring.o rules.o plugbase.o sp_pattern_match.o sp_tcp_flag_check.o sp_icmp_type_check.o sp_icmp_code_check.o sp_ttl_check.o sp_ip_id_check.o sp_tcp_ack_check.o sp_tcp_seq_check.o sp_dsize_check.o spp_http_decode.o spp_minfrag.o spp_portscan.o sp_ipoption_check.o sp_rpc_check.o sp_icmp_id_check.o sp_icmp_seq_check.o sp_respond.o spo_alert_syslog.o spo_log_tcpdump.o spo_database.o sp_session.o spp_defrag.o parser.o spo_alert_fast.o spo_alert_full.o spo_alert_smb.o spo_alert_unixsock.o sp_react.o spo_xml.o sp_ip_tos_check.o spp_tcp_stream.o snprintf.o checksum.o sp_reference.o sp_ip_fragbits.o spp_anomsensor.o  -lpcap -lm -lnsl  -lm -lmysqlclient -lpq
/usr/lib/mysql/libmysqlclient.a(my_open.o): In function `my_open':
my_open.o(.text+0x14): undefined reference to `open64'
/usr/lib/mysql/libmysqlclient.a(mf_format.o): In function `fn_format':
mf_format.o(.text+0x208): undefined reference to `__lxstat64'
/usr/lib/mysql/libmysqlclient.a(my_fopen.o): In function `my_fopen':
my_fopen.o(.text+0x21): undefined reference to `fopen64'
make: *** [snort] Error 1
then make stopped. ld.so.conf contain string for mysql libs. WHats is
this ?

Best regards,
 konsul                          mailto:konsul at ...1169...

More information about the Snort-users mailing list