[Snort-devel] unable to compile flexresp

rottz at ...403... rottz at ...403...
Tue Aug 21 17:22:14 EDT 2001


Chris,
I'm running the latest build 75 and trying to compile flexresp on my
FreeBSD 4.3 system. I was running the default freebsd libnet version and
it didn't work, so dragos suggested install 1.0.2a, which I found in the
freebsd ports section. After I installed it, it still won't compile.
Seems to be a problem with sp_respond.c so I thought you might want to
take a look at it. Here is the error msg after "make"

<snip>
gcc -DHAVE_CONFIG_H -I. -I. -I.   -DENABLE_SSL -I/usr/local/include  -g
-O2 -Wall -DENABLE_RESPONSE -DLIBNET_BSDISH_OS -DLIBN         
ET_BSD_BYTE_SWAP -DHAVE_SOCKADDR_SA_LEN -DLIBNET_LIL_ENDIAN -c
sp_respond.c
In file included from snort.h:194,
                 from sp_respond.h:23,
                 from sp_respond.c:35:
decode.h:691: warning: `icmp_id' redefined
/usr/local/include/libnet/libnet-headers.h:305: warning: this is the
location of the previous definition
decode.h:692: warning: `icmp_seq' redefined
/usr/local/include/libnet/libnet-headers.h:306: warning: this is the
location of the previous definition
decode.h:728: warning: `icmp_otime' redefined
/usr/local/include/libnet/libnet-headers.h:337: warning: this is the
location of the previous definition
decode.h:729: warning: `icmp_rtime' redefined
/usr/local/include/libnet/libnet-headers.h:339: warning: this is the
location of the previous definition
decode.h:730: warning: `icmp_ttime' redefined
/usr/local/include/libnet/libnet-headers.h:341: warning: this is the
location of the previous definition
decode.h:731: warning: `icmp_ip' redefined
/usr/include/netinet/ip_icmp.h:108: warning: this is the location of the
previous definition
decode.h:733: warning: `icmp_mask' redefined
/usr/local/include/libnet/libnet-headers.h:332: warning: this is the
location of the previous definition
decode.h:734: warning: `icmp_data' redefined
/usr/local/include/libnet/libnet-headers.h:334: warning: this is the
location of the previous definition
In file included from snort.h:194,
                 from sp_respond.h:23,
                 from sp_respond.c:35:
decode.h:668: redefinition of `struct ih_idseq'
decode.h:676: redefinition of `struct ih_pmtu'
decode.h:682: redefinition of `struct ih_rtradv'
decode.h:704: redefinition of `struct id_ts'
decode.h:712: redefinition of `struct id_ip'
decode.h:718: redefinition of `struct icmp_ra_addr'
*** Error code 1
</snip>
What version of libnet should I be running to be compatible with this
code? Any ideas or suggestions would be much appreciated.
default freebsd = $Id: libnet-headers.h,v 1.9 1999/10/27 01:37:22 route
Exp $
1.0.2a = $Id: libnet-headers.h,v 1.1.1.1 2000/05/25 00:28:49 route Exp $
sp_respond.c = $Id: sp_respond.c,v 1.8 2001/05/02 16:53:16 cec Exp $


Peter
-- 
rottz at securityflaw dot com
Founder of Securityflaw




More information about the Snort-devel mailing list