[Snort-users] compile error

Tom Fischer tfischer at ...4078...
Wed Nov 14 09:25:05 EST 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

hope anybody can help me. The build process stops with this error(s):

gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap  
- -I/usr/local/pgsql/include -DENABLE_POSTGRESQL -I/usr/local/include  -g -O2 
- -Wall -DENABLE_RESPONSE -c sp_respond.c
sp_respond.c: In function `RespondInit':
sp_respond.c:81: warning: implicit declaration of function 
`libnet_open_raw_sock'
sp_respond.c: In function `PrecacheTcp':
sp_respond.c:185: `IP_H' undeclared (first use in this function)
sp_respond.c:185: (Each undeclared identifier is reported only once
sp_respond.c:185: for each function it appears in.)
sp_respond.c:185: `TCP_H' undeclared (first use in this function)
sp_respond.c:192: warning: implicit declaration of function `libnet_build_ip'
sp_respond.c:193: warning: implicit declaration of function `libnet_get_prand'
sp_respond.c:193: `PRu16' undeclared (first use in this function)
sp_respond.c:197: warning: implicit declaration of function `libnet_build_tcp'
sp_respond.c: In function `Respond':
sp_respond.c:228: warning: unused variable `i'
sp_respond.c:249: `ICMP_UNREACH_NET' undeclared (first use in this function)
sp_respond.c:253: `ICMP_UNREACH_HOST' undeclared (first use in this function)
sp_respond.c:257: `ICMP_UNREACH_PORT' undeclared (first use in this function)
sp_respond.c: In function `SendICMP_UNREACH':
sp_respond.c:275: `IP_H' undeclared (first use in this function)
sp_respond.c:275: `ICMP_UNREACH_H' undeclared (first use in this function)
sp_respond.c:277: warning: implicit declaration of function 
`libnet_init_packet'
sp_respond.c:279: warning: implicit declaration of function `libnet_error'
sp_respond.c:279: `LIBNET_ERR_CRITICAL' undeclared (first use in this 
function)
sp_respond.c:285: `PRu16' undeclared (first use in this function)
sp_respond.c:289: warning: implicit declaration of function 
`libnet_build_icmp_unreach'
sp_respond.c:289: `ICMP_UNREACH' undeclared (first use in this function)
sp_respond.c:296: warning: implicit declaration of function 
`libnet_do_checksum'
sp_respond.c:298: warning: implicit declaration of function `libnet_write_ip'
sp_respond.c:267: warning: `sz' might be used uninitialized in this function
sp_respond.c: In function `SendTCPRST':
sp_respond.c:309: `IP_H' undeclared (first use in this function)
sp_respond.c:309: `TCP_H' undeclared (first use in this function)
sp_respond.c:358: `LIBNET_ERR_CRITICAL' undeclared (first use in this 
function)
sp_respond.c:311: warning: `tcph' might be used uninitialized in this function
make: *** [sp_respond.o] Error 1

libnet is libnet-0.10.10 downloaded 10mins ago from sourceforge. Distribution 
is Debian 2.2 with kernel 2.4.12

config options: --with-postgresql=/usr/local/pgsql --enable-flexresp

thx in advance
- -- 
Tom Fischer			ABH Marketingservice GmbH
System Administrator		Weisshaustraße 23a
Tel: 0221-94400446		50939 Köln	
http://www.abh.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjvyqL4ACgkQwafQrcfco8EIagCaAoEOKgdkt8XOUTed9VpQiU/B
sR4AniX94R+wQcb+0UV213cYyhsi6PXs
=Ds24
-----END PGP SIGNATURE-----





More information about the Snort-users mailing list