[Snort-users] flexresp2 breaks

Jason Haar Jason.Haar at ...294...
Sun Jan 27 20:45:04 EST 2008

Hi there

I'm just trying to compile snort- under CentOS4.6 with flexresp2 
enabled, and it won't play nicely, I get:

gcc -DHAVE_CONFIG_H -I. -I../../../src/detection-plugins -I../.. 
-I../../.. -I../../../src -I../../../src/sfutil -I/usr/include/pcap 
-I../../../src/output-plugins -I../../../src/detection-plugins 
-I../../../src/dynamic-plugins -I../../../src/preprocessors 
-I../../../src/preprocessors/flow -I../../../src/preprocessors/portscan  
-I../../../src/preprocessors/Stream5 -I../../../src/target-based  
-DENABLE_RESPONSE2 -I/usr/include -g -O2 -g -O2 -Wall -DDYNAMIC_PLUGIN 
-c ../../../src/detection-plugins/sp_respond2.c
In file included from ../../../src/decode.h:49,
                 from ../../../src/detection-plugins/sp_respond2.c:99:
../../../src/ipv6_port.h:71: error: conflicting types for 'ip_t'
/usr/include/dnet/ip.h:411: error: previous declaration of 'ip_t' was here
In file included from ../../../src/detection-plugins/sp_respond2.c:99:
../../../src/decode.h:948:1: warning: "IP_PROTO_HOPOPTS" redefined
In file included from /usr/include/dnet.h:15,
                 from ../../../src/detection-plugins/sp_respond2.c:97:
/usr/include/dnet/ip.h:97:1: warning: this is the location of the 
previous definition
../../../src/detection-plugins/sp_respond2.c: In function `Respond2Init':
../../../src/detection-plugins/sp_respond2.c:260: warning: assignment 
from incompatible pointer type

I've tried this with the default libdnet-1.11 that comes with CentOS4.6, 
and with 1.12 compiled from scratch. Simply put:

../../../src/ipv6_port.h has " typedef u_int32_t ip_t;"

and /usr/include/dnet/ip.h has "typedef struct ip_handle ip_t;"

Any ideas what's at fault there? I also assume there'll be more 
definitions at fault than just that one.



Jason Haar
Information Security Manager, Trimble Navigation Ltd.
Phone: +64 3 9635 377 Fax: +64 3 9635 417
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1

More information about the Snort-users mailing list