[Snort-users] flexresp2 breaks 2.8.0.1?

James Lay jlay at ...13475...
Sun Jan 27 21:50:40 EST 2008


On 1/27/08 6:45 PM, "Jason Haar" <Jason.Haar at ...294...> wrote:

> Hi there
> 
> I'm just trying to compile snort-2.8.0.1 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/flow/int-snort
> -I../../../src/preprocessors/HttpInspect/include
> -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.
> 
> Thanks!


I posted the same a couple times here...never got any response, so I just
compiled without flexresp2 and away I went.

James






More information about the Snort-users mailing list