make[3]: Entering directory `/var/tmp/portage/snort-2.0.2/work/snort-2.0.2/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins -I../src/preprocessors -I/usr/include/mysql -DENABLE_MYSQL -DENABLE_RESPONSE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -I/usr/local/include -I/sw/include -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall -DENABLE_SMB_ALERTS -c `test -f 'sfthreshold.c' || echo './'`sfthreshold.c In file included from sfthreshold.c:23: util.h:42: error: syntax error before "netmasks" util.h:42: warning: type defaults to `int' in declaration of `netmasks' util.h:42: warning: data definition has no type or storage class make[3]: *** [sfthreshold.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/snort-2.0.2/work/snort-2.0.2/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/snort-2.0.2/work/snort-2.0.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/snort Reproducible: Always Steps to Reproduce: 1. 2. 3.
I've masked this on sparc until this problem is resolved. Has this actually worked for anyone?
Created attachment 19006 [details, diff] proposed snort-2.0.2 patch Adding '#include <sys/types.h>' to src/util.h before the declaration using 'u_long' lets things compile nicely.
2.0.2 compiles now fine