Snort mailing list archives

RE: problems with mysql and snort


From: Chris Owen <cowen () gt ca>
Date: Tue, 24 Jul 2001 14:35:57 -0400

Maybe try installing zlib if you don't already have it and maybe zlib-bin.
They're called zlib1g and zlib-bin in dselect.
 
 Chris.

-----Original Message-----
From: Victor Siu [mailto:khayir () hotmail com]
Sent: Monday, July 23, 2001 7:07 PM
To: snort-users () lists sourceforge net
Subject: [Snort-users] problems with mysql and snort


I keep getting the following error when trying to compile snort.  I used the
following for the config

./configure --prefix=/usr/local/snort --enable-flexresp
-with-mysql=/usr/local/mysql

 I'm running debian 2..2.3r with a compiled 2.2.19 kernel.

gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/mysql/include -DENABLE_MYSQL -I/usr/local/include -DENABLE_SSL
-I/usr/include  -g -O2 -Wall  -DENABLE_RESPONSE -D_BSD_SOURCE -D__BSD_SOURCE
-D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN  -c sp_ip_fragbits.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/mysql/include -DENABLE_MYSQL -I/usr/local/include -DENABLE_SSL
-I/usr/include  -g -O2 -Wall  -DENABLE_RESPONSE -D_BSD_SOURCE -D__BSD_SOURCE
-D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN  -c spp_anomsensor.c
gcc  -g -O2 -Wall  -DENABLE_RESPONSE -D_BSD_SOURCE -D__BSD_SOURCE
-D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN
-L/usr/local/mysql/lib -L/usr/local/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 -lssl -lcrypto -lnet
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
`my_uncompress':
my_compress.o(.text+0x9a): undefined reference to `uncompress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
`my_compress_alloc':
my_compress.o(.text+0x12a): undefined reference to `compress'
collect2: ld returned 1 exit status
make: *** [snort] Error 1


I also installed the binary version of mysql.  If that is the problem does
anyone have the proper ./configure for mysql?  Thanks in advance

 

Victor Siu


Current thread: