Tengo Ubuntu 9.10 amd64 estoy intentado compilar en snort_inline de esta pagina:
http://snort-inline.sourceforge.net/download.html hago lo siguiente:
descomprimo
tar -xvf snort_inline-2.6.1.5.tar.z
en la carpeta /usr/src
ejecuto sh autojunk.sh y todo bien
e incluso hago un autoreconf -f y todo bien
despues compilo de esta forma:
./configure --enable-clamav --enable-flexresp2
hasta hay bien. Pero Al hacer el siguiente make (el primero) siempre me tira este error. No soy esperto en linux pero si aficionado ==>
./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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c hi_norm.c
rm -f libhi_norm.a
ar cru libhi_norm.a hi_norm.o
ranlib libhi_norm.a
make[5]: se sale del directorio `/usr/src/snort_inline-2.6.1.5/src/preprocessors/HttpInspect/normalization'
make[5]: se ingresa al directorio `/usr/src/snort_inline-2.6.1.5/src/preprocessors/HttpInspect'
rm -f libhttp_inspect.a
ar cru libhttp_inspect.a user_interface/hi_ui_config.o user_interface/hi_ui_server_lookup.o user_interface/hi_ui_iis_unicode_map.o session_inspection/hi_si.o mode_inspection/hi_mi.o anomaly_detection/hi_ad.o utils/hi_util_kmap.o utils/hi_util_xmalloc.o utils/hi_util_hbm.o event_output/hi_eo_log.o client/hi_client.o client/hi_client_norm.o server/hi_server.o normalization/hi_norm.o
ranlib libhttp_inspect.a
make[5]: se sale del directorio `/usr/src/snort_inline-2.6.1.5/src/preprocessors/HttpInspect'
make[4]: se sale del directorio `/usr/src/snort_inline-2.6.1.5/src/preprocessors/HttpInspect'
Making all in Stream5
make[4]: se ingresa al directorio `/usr/src/snort_inline-2.6.1.5/src/preprocessors/Stream5'
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c snort_stream5_tcp.c
snort_stream5_tcp.c: In function ‘Stream5ParseTcpArgs’:
snort_stream5_tcp.c:585: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
/usr/include/string.h:397: note: expected ‘const char *’ but argument is of type ‘u_char *’
snort_stream5_tcp.c:587: warning: pointer targets in passing argument 1 of ‘mSplit’ differ in signedness
../../../src/mstring.h:34: note: expected ‘char *’ but argument is of type ‘u_char *’
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c snort_stream5_udp.c
snort_stream5_udp.c: In function ‘Stream5ParseUdpArgs’:
snort_stream5_udp.c:137: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
/usr/include/string.h:397: note: expected ‘const char *’ but argument is of type ‘u_char *’
snort_stream5_udp.c:139: warning: pointer targets in passing argument 1 of ‘mSplit’ differ in signedness
../../../src/mstring.h:34: note: expected ‘char *’ but argument is of type ‘u_char *’
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c snort_stream5_icmp.c
snort_stream5_icmp.c: In function ‘ProcessIcmpEcho’:
snort_stream5_icmp.c:201: warning: unused variable ‘ssn’
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c snort_stream5_session.c
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c stream5_common.c
rm -f libstream5.a
ar cru libstream5.a snort_stream5_tcp.o snort_stream5_udp.o snort_stream5_icmp.o snort_stream5_session.o stream5_common.o snort_stream5_tcp.o snort_stream5_udp.o snort_stream5_icmp.o snort_stream5_session.o stream5_common.o
ranlib libstream5.a
make[4]: se sale del directorio `/usr/src/snort_inline-2.6.1.5/src/preprocessors/Stream5'
make[4]: se ingresa al directorio `/usr/src/snort_inline-2.6.1.5/src/preprocessors'
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c spp_arpspoof.c
spp_arpspoof.c: In function ‘ARPspoofInit’:
spp_arpspoof.c:167: warning: pointer targets in passing argument 1 of ‘ParseARPspoofArgs’ differ in signedness
spp_arpspoof.c:135: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_arpspoof.c: In function ‘ARPspoofHostInit’:
spp_arpspoof.c:227: warning: pointer targets in passing argument 1 of ‘ParseARPspoofHostArgs’ differ in signedness
spp_arpspoof.c:136: note: expected ‘char *’ but argument is of type ‘u_char *’
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c spp_bo.c
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c spp_rpc_decode.c
spp_rpc_decode.c: In function ‘RpcDecodeInit’:
spp_rpc_decode.c:153: warning: pointer targets in passing argument 1 of ‘SetRpcPorts’ differ in signedness
spp_rpc_decode.c:105: note: expected ‘char *’ but argument is of type ‘u_char *’
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c spp_stream4.c
spp_stream4.c: In function ‘Stream4Init’:
spp_stream4.c:1079: warning: pointer targets in passing argument 1 of ‘ParseStream4Args’ differ in signedness
spp_stream4.c:435: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_stream4.c: In function ‘Stream4InitExternalOptions’:
spp_stream4.c:1886: warning: pointer targets in passing argument 1 of ‘mSplit’ differ in signedness
../../src/mstring.h:34: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_stream4.c: In function ‘Stream4InitReassembler’:
spp_stream4.c:2147: warning: pointer targets in passing argument 1 of ‘mSplit’ differ in signedness
../../src/mstring.h:34: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_stream4.c:2368: warning: pointer targets in passing argument 1 of ‘mSplit’ differ in signedness
../../src/mstring.h:34: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_stream4.c: At top level:
../../src/bounds.h:126: warning: ‘SafeWrite’ defined but not used
../../src/sfutil/bitop_funcs.h:71: warning: ‘boInitStaticBITOP’ defined but not used
../../src/sfutil/bitop_funcs.h:181: warning: ‘boSetAllBits’ defined but not used
../../src/sfutil/bitop_funcs.h:203: warning: ‘boSetBit’ defined but not used
../../src/sfutil/bitop_funcs.h:237: warning: ‘boIsBitSet’ defined but not used
../../src/sfutil/bitop_funcs.h:270: warning: ‘boClearBit’ defined but not used
../../src/sfutil/bitop_funcs.h:303: warning: ‘boClearByte’ defined but not used
../../src/sfutil/bitop_funcs.h:335: warning: ‘boFreeBITOP’ defined but not used
../../src/preprocessors/flow/int-snort/flow_packet.h:30: warning: ‘IsIPv4Packet’ defined but not used
../../src/preprocessors/flow/int-snort/flow_packet.h:47: warning: ‘IsTcpPacket’ defined but not used
../../src/preprocessors/flow/int-snort/flow_packet.h:64: warning: ‘GetTcpFlags’ defined but not used
../../src/preprocessors/flow/int-snort/flow_packet.h:86: warning: ‘GetIPv4SrcPort’ defined but not used
../../src/preprocessors/flow/int-snort/flow_packet.h:108: warning: ‘GetIPv4DstPort’ defined but not used
../../src/preprocessors/flow/int-snort/flow_packet.h:129: warning: ‘GetIPv4Proto’ defined but not used
../../src/preprocessors/flow/int-snort/flow_packet.h:151: warning: ‘GetIPv4SrcIp’ defined but not used
../../src/preprocessors/flow/int-snort/flow_packet.h:174: warning: ‘GetIPv4DstIp’ defined but not used
../../src/preprocessors/flow/int-snort/flow_packet.h:192: warning: ‘GetIPv4Len’ defined but not used
../../src/preprocessors/flow/flow.h:88: warning: ‘flow_mark’ defined but not used
../../src/preprocessors/flow/flow.h:99: warning: ‘flow_checkflag’ defined but not used
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c snort_stream4_session.c
snort_stream4_session.c: In function ‘TruncSessionCache’:
snort_stream4_session.c:705: warning: unused variable ‘cnt’
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c snort_stream4_udp.c
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c stream_ignore.c
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c spp_telnet_negotiation.c
spp_telnet_negotiation.c: In function ‘TelNegInit’:
spp_telnet_negotiation.c:133: warning: pointer targets in passing argument 1 of ‘SetTelnetPorts’ differ in signedness
spp_telnet_negotiation.c:85: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_telnet_negotiation.c: In function ‘NormalizeTelnet’:
spp_telnet_negotiation.c:187: warning: pointer targets in assignment differ in signedness
spp_telnet_negotiation.c:188: warning: pointer targets in assignment differ in signedness
spp_telnet_negotiation.c:218: warning: pointer targets in assignment differ in signedness
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c spp_perfmonitor.c
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c perf.c
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c perf-base.c
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c perf-flow.c
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c perf-event.c
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c sfprocpidstats.c
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c spp_httpinspect.c
spp_httpinspect.c: In function ‘HttpInspectInit’:
spp_httpinspect.c:271: warning: pointer targets in passing argument 2 of ‘HttpInspectSnortConf’ differ in signedness
snort_httpinspect.h:5: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_httpinspect.c:278: warning: the address of ‘ErrorString’ will always evaluate as ‘true’
spp_httpinspect.c:289: warning: the address of ‘ErrorString’ will always evaluate as ‘true’
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c snort_httpinspect.c
snort_httpinspect.c: In function ‘LogEvents’:
snort_httpinspect.c:2295: warning: cast from pointer to integer of different size
snort_httpinspect.c:2313: warning: cast to pointer from integer of different size
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c spp_flow.c
spp_flow.c: In function ‘FlowInit’:
spp_flow.c:149: warning: pointer targets in passing argument 2 of ‘FlowParseArgs’ differ in signedness
spp_flow.c:68: note: expected ‘char *’ but argument is of type ‘u_char *’
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c portscan.c
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c spp_sfportscan.c
spp_sfportscan.c: In function ‘MakeProtoInfo’:
spp_sfportscan.c:165: warning: pointer targets in assignment differ in signedness
spp_sfportscan.c:166: warning: pointer targets in assignment differ in signedness
spp_sfportscan.c:207: warning: pointer targets in passing argument 1 of ‘SnortStrnlen’ differ in signedness
../../src/util.h:115: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_sfportscan.c: In function ‘MakeOpenPortInfo’:
spp_sfportscan.c:358: warning: pointer targets in passing argument 1 of ‘SnortStrnlen’ differ in signedness
../../src/util.h:115: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_sfportscan.c: In function ‘ParseLogFile’:
spp_sfportscan.c:1113: warning: pointer targets in passing argument 1 of ‘SnortSnprintf’ differ in signedness
../../src/util.h:112: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_sfportscan.c:1115: warning: pointer targets in passing argument 1 of ‘SnortSnprintf’ differ in signedness
../../src/util.h:112: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_sfportscan.c:1124: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness
/usr/include/stdio.h:249: note: expected ‘const char * __restrict__’ but argument is of type ‘u_char *’
spp_sfportscan.c: In function ‘PortscanInit’:
spp_sfportscan.c:1148: warning: pointer targets in passing argument 1 of ‘strtok’ differ in signedness
/usr/include/string.h:346: note: expected ‘char * __restrict__’ but argument is of type ‘u_char *’
spp_sfportscan.c:1155: warning: pointer targets in passing argument 1 of ‘FatalErrorNoOption’ differ in signedness
spp_sfportscan.c:806: note: expected ‘u_char *’ but argument is of type ‘char *’
spp_sfportscan.c:1163: warning: pointer targets in passing argument 1 of ‘FatalErrorNoOption’ differ in signedness
spp_sfportscan.c:806: note: expected ‘u_char *’ but argument is of type ‘char *’
spp_sfportscan.c:1171: warning: pointer targets in passing argument 1 of ‘FatalErrorNoOption’ differ in signedness
spp_sfportscan.c:806: note: expected ‘u_char *’ but argument is of type ‘char *’
spp_sfportscan.c:1179: warning: pointer targets in passing argument 1 of ‘FatalErrorNoOption’ differ in signedness
spp_sfportscan.c:806: note: expected ‘u_char *’ but argument is of type ‘char *’
spp_sfportscan.c:1187: warning: pointer targets in passing argument 1 of ‘FatalErrorNoOption’ differ in signedness
spp_sfportscan.c:806: note: expected ‘u_char *’ but argument is of type ‘char *’
spp_sfportscan.c:1195: warning: pointer targets in passing argument 1 of ‘FatalErrorNoOption’ differ in signedness
spp_sfportscan.c:806: note: expected ‘u_char *’ but argument is of type ‘char *’
spp_sfportscan.c:1207: warning: pointer targets in passing argument 1 of ‘FatalErrorNoOption’ differ in signedness
spp_sfportscan.c:806: note: expected ‘u_char *’ but argument is of type ‘char *’
spp_sfportscan.c:1215: warning: pointer targets in passing argument 1 of ‘FatalErrorNoOption’ differ in signedness
spp_sfportscan.c:806: note: expected ‘u_char *’ but argument is of type ‘char *’
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c spp_frag2.c
spp_frag2.c: In function ‘ParseFrag2Args’:
spp_frag2.c:470: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
/usr/include/string.h:397: note: expected ‘const char *’ but argument is of type ‘u_char *’
spp_frag2.c:507: warning: pointer targets in passing argument 1 of ‘mSplit’ differ in signedness
../../src/mstring.h:34: note: expected ‘char *’ but argument is of type ‘u_char *’
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c spp_frag3.c
spp_frag3.c: In function ‘Frag3ParseGlobalArgs’:
spp_frag3.c:991: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
/usr/include/string.h:397: note: expected ‘const char *’ but argument is of type ‘u_char *’
spp_frag3.c:993: warning: pointer targets in passing argument 1 of ‘mSplit’ differ in signedness
../../src/mstring.h:34: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_frag3.c: In function ‘Frag3ParseArgs’:
spp_frag3.c:1129: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
/usr/include/string.h:397: note: expected ‘const char *’ but argument is of type ‘u_char *’
spp_frag3.c:1136: warning: pointer targets in passing argument 1 of ‘mSplit’ differ in signedness
../../src/mstring.h:34: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_frag3.c: In function ‘Frag3NewTracker’:
spp_frag3.c:1911: warning: pointer targets in assignment differ in signedness
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c str_search.c
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c stream_api.c
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/usr/include/libipq -DENABLE_RESPONSE2 -I/usr/include -fno-strict-aliasing -g -O2 -Wall -DDYNAMIC_PLUGIN -DGIDS -DCLAMAV -fno-strict-aliasing -c spp_clamav.c
spp_clamav.c: In function ‘ProcessPorts’:
spp_clamav.c:191: warning: pointer targets in passing argument 1 of ‘mSplit’ differ in signedness
../../src/mstring.h:34: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_clamav.c: In function ‘ParseClamAVArgs’:
spp_clamav.c:306: warning: pointer targets in initialization differ in signedness
spp_clamav.c:356: warning: pointer targets in passing argument 1 of ‘mSplit’ differ in signedness
../../src/mstring.h:34: note: expected ‘char *’ but argument is of type ‘u_char *’
spp_clamav.c:365: warning: pointer targets in passing argument 1 of ‘ProcessPorts’ differ in signedness
spp_clamav.c:179: note: expected ‘u_char *’ but argument is of type ‘char *’
spp_clamav.c: In function ‘ClamAVInit’:
spp_clamav.c:520: warning: implicit declaration of function ‘cl_loaddbdir’
spp_clamav.c:530: warning: implicit declaration of function ‘cl_buildtrie’
spp_clamav.c:537: error: invalid application of ‘sizeof’ to incomplete type ‘struct cl_limits’
spp_clamav.c:539: error: invalid use of undefined type ‘struct cl_limits’
spp_clamav.c:541: error: invalid use of undefined type ‘struct cl_limits’
spp_clamav.c:543: error: invalid use of undefined type ‘struct cl_limits’
spp_clamav.c:545: error: invalid use of undefined type ‘struct cl_limits’
spp_clamav.c:547: error: invalid use of undefined type ‘struct cl_limits’
spp_clamav.c: In function ‘ClamAVReloadDB’:
spp_clamav.c:580: warning: implicit declaration of function ‘cl_freetrie’
spp_clamav.c: In function ‘strip_http_headers_p’:
spp_clamav.c:650: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness
/usr/include/string.h:340: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’
spp_clamav.c:650: warning: pointer targets in assignment differ in signedness
spp_clamav.c:663: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness
/usr/include/string.h:340: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’
spp_clamav.c:663: warning: pointer targets in assignment differ in signedness
spp_clamav.c:678: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness
/usr/include/string.h:340: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’
spp_clamav.c:678: warning: pointer targets in assignment differ in signedness
spp_clamav.c:706: warning: pointer targets in passing argument 1 of ‘strstr’ differ in signedness
/usr/include/string.h:340: note: expected ‘const char *’ but argument is of type ‘u_int8_t *’
spp_clamav.c:706: warning: pointer targets in assignment differ in signedness
spp_clamav.c: In function ‘StoreAndScan’:
spp_clamav.c:877: warning: passing argument 4 of ‘cl_scandesc’ from incompatible pointer type
/usr/include/clamav.h:178: note: expected ‘const struct cl_engine *’ but argument is of type ‘struct cl_node *’
spp_clamav.c:877: warning: passing argument 5 of ‘cl_scandesc’ makes integer from pointer without a cast
/usr/include/clamav.h:178: note: expected ‘unsigned int’ but argument is of type ‘struct cl_limits *’
spp_clamav.c:877: error: too many arguments to function ‘cl_scandesc’
make[4]: *** [spp_clamav.o] Error 1
make[4]: se sale del directorio `/usr/src/snort_inline-2.6.1.5/src/preprocessors'
make[3]: *** [all-recursive] Error 1
make[3]: se sale del directorio `/usr/src/snort_inline-2.6.1.5/src/preprocessors'
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio `/usr/src/snort_inline-2.6.1.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/usr/src/snort_inline-2.6.1.5'
make: *** [all] Error 2
pdta: con el ./configure --enable-flexresp2 si funciona pero con clamav NO. Me da este error
¿Que tengo que hacer o cambiar no hay nada en el google, por favor una ayuda.
este error me lo ha dado por lo menos desde que me inicie en ubuntu, es decir, no recuerdo bien, pero desde algunas distribuciones atrás
de ubuntu