[Snort-users] Snort 2.8 compile error

James Lay jlay at ...13475...
Fri Sep 28 11:26:58 EDT 2007




On 9/28/07 8:04 AM, "Adam Keeton" <akeeton at ...1935...> wrote:

> 
> James Lay wrote:
>> Woot!
>> 
>> gcc -DHAVE_CONFIG_H -I. -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
>> -I/usr/local/mysql/include/mysql -DENABLE_MYSQL -DENABLE_RESPONSE2
>> -DENABLE_REACT -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
>> -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -I/usr/local/include -I/sw/include
>> -g -O2 -Wall -DSTREAM4_UDP -DDYNAMIC_PLUGIN -c sp_respond2.c
>> In file included from ../../src/decode.h:49,
>>                  from 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 sp_respond2.c:99:
>> ../../src/decode.h:948:1: warning: "IP_PROTO_HOPOPTS" redefined
>> In file included from /usr/include/dnet.h:15,
>>                  from sp_respond2.c:97:
>> /usr/include/dnet/ip.h:97:1: warning: this is the location of the previous
>> definition
>> sp_respond2.c: In function `Respond2Init':
>> sp_respond2.c:260: warning: assignment from incompatible pointer type
>> sp_respond2.c: In function `Respond2Restart':
>> sp_respond2.c:299: warning: passing arg 1 of `ip_close' from incompatible
>> pointer type
>> sp_respond2.c:299: warning: assignment from incompatible pointer type
>> sp_respond2.c: In function `SendReset':
>> sp_respond2.c:682: warning: passing arg 1 of `ip_send' from incompatible
>> pointer type
>> sp_respond2.c: In function `SendUnreach':
>> sp_respond2.c:806: warning: passing arg 1 of `ip_send' from incompatible
>> pointer type
>> make[3]: *** [sp_respond2.o] Error 1
>> make[3]: Leaving directory `/home/jlay/snort-2.8.0/src/detection-plugins'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory `/home/jlay/snort-2.8.0/src'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/jlay/snort-2.8.0'
>> make: *** [all] Error 2
>> 
>> Any hints on how to fixie this?
>> 
>> James
>> 
>> 
>>   
> Thanks for the report. I'm working on a fix right now. As as work
> around, you can rerun configure without --enable-flexresp2 and recompile.

Excellent...thank you :)

James






More information about the Snort-users mailing list