Bug 30540 - snort fails to compile
Bug#: 30540 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: aliz@gentoo.org Reported By: seemant@gentoo.org
Component: Applications
URL: 
Summary: snort fails to compile
Keywords:  
Status Whiteboard: 
Opened: 2003-10-06 23:29 0000
Description:   Opened: 2003-10-06 23:29 0000
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.

------- Comment #1 From Jason Wever (RETIRED) 2003-10-08 15:04:53 0000 -------
I've masked this on sparc until this problem is resolved.

Has this actually worked for anyone?

------- Comment #2 From Brandy Westcott (RETIRED) 2003-10-09 06:55:09 0000 -------
Created an attachment (id=19006) [details]
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.

------- Comment #3 From Martin Holzer (RETIRED) 2003-10-28 06:44:29 0000 -------
2.0.2 compiles now fine