[Snort-users] problems compiling snort.

Bart Dom bart.dom at ...1162...
Wed Jan 17 09:05:22 EST 2001


Hello All,

For some time now i am trying to get snort working on 1 of our machines.
Install of libpcap goes well. The configure of snort also goes well but
"make" failes. Pls find the output below.

Has anybody seen this before or has anybody any idea how to fix this?

thx

Bart

-----output-----

gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c
sp_ipoption_check.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c sp_rpc_check.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c
sp_icmp_id_check.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c
sp_icmp_seq_check.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c sp_respond.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c
spo_alert_syslog.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c
spo_log_tcpdump.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c spo_database.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c sp_session.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c spp_defrag.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c parser.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c spo_alert_fast.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c spo_alert_full.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c spo_alert_smb.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c
spo_alert_unixsock.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c sp_react.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c spo_xml.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c
sp_ip_tos_check.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c spp_tcp_stream.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c snprintf.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c checksum.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c sp_reference.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c sp_ip_fragbits.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap
-I/usr/local/include/mysql -DENABLE_MYSQL  -g -O2 -Wall  -c spp_anomsensor.c
gcc  -g -O2 -Wall  -L/usr/local/lib/mysql -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
snort.o: In function `GenHomenet':
/home/bartdo/firewall/snort-1.7/snort.c:1015: undefined reference to
`__inet_addr'
log.o: In function `OpenLogFile':
/home/bartdo/firewall/snort-1.7/log.c:164: undefined reference to
`__inet_ntoa'
log.o: In function `AlertFast':
/home/bartdo/firewall/snort-1.7/log.c:865: undefined reference to
`__inet_ntoa'
/home/bartdo/firewall/snort-1.7/log.c:876: undefined reference to
`__inet_ntoa'
/home/bartdo/firewall/snort-1.7/log.c:878: undefined reference to
`__inet_ntoa'
/home/bartdo/firewall/snort-1.7/log.c:884: undefined reference to
`__inet_ntoa'
log.o:/home/bartdo/firewall/snort-1.7/log.c:886: more undefined references
to `__inet_ntoa' follow
rules.o: In function `ParseIP':
/home/bartdo/firewall/snort-1.7/rules.c:2020: undefined reference to
`__inet_addr'
/home/bartdo/firewall/snort-1.7/rules.c:2051: undefined reference to
`__inet_addr'
/home/bartdo/firewall/snort-1.7/rules.c:2075: undefined reference to
`__inet_addr'
plugbase.o: In function `GetIP':
/home/bartdo/firewall/snort-1.7/plugbase.c:574: undefined reference to
`__inet_ntoa'
spp_portscan.o: In function `PortscanPreprocFunction':
/home/bartdo/firewall/snort-1.7/spp_portscan.c:918: undefined reference to
`__inet_ntoa'
/home/bartdo/firewall/snort-1.7/spp_portscan.c:925: undefined reference to
`__inet_ntoa'
/home/bartdo/firewall/snort-1.7/spp_portscan.c:934: undefined reference to
`__inet_ntoa'
/home/bartdo/firewall/snort-1.7/spp_portscan.c:944: undefined reference to
`__inet_ntoa'
spp_portscan.o:/home/bartdo/firewall/snort-1.7/spp_portscan.c:970: more
undefined references to `__inet_ntoa' follow
spp_anomsensor.o: In function `create_netlist':
/home/bartdo/firewall/snort-1.7/spp_anomsensor.c:340: undefined reference to
`__inet_addr'
spp_anomsensor.o: In function `record_packet':
/home/bartdo/firewall/snort-1.7/spp_anomsensor.c:1520: undefined reference
to `__inet_ntoa'
/home/bartdo/firewall/snort-1.7/spp_anomsensor.c:1520: undefined reference
to `__inet_ntoa'
collect2: ld returned 1 exit status
make: *** [snort] Error 1




More information about the Snort-users mailing list