[Snort-devel] missing include for snort-2.0.2

Andreas Steinmetz ast at ...537...
Tue Sep 23 05:38:17 EDT 2003

For snort-2.0.2 on Linux 2.4 configured with:

./configure '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' 
'--with-mysql=/usr/local/mysql' '--with-openssl=/usr' 
'--enable-smbalerts' '--enable-flexresp'

src/util.h is missing #include <sys/types.h> so build fails with:

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/local/mysql/include/mysql -DENABLE_MYSQL 
-I/sw/include  -O3 -fomit-frame-pointer -funroll-loops 
-fexpensive-optimizations -fschedule-insns2 -fcse-follow-jumps 
-fcse-skip-blocks -frerun-cse-after-loop -frerun-loop-opt -fgcse 
-fgcse-lm -fgcse-sm -fdelete-null-pointer-checks -falign-loops 
-falign-jumps -falign-functions -mcpu=pentiumpro -march=pentiumpro -mmmx 
-minline-all-stringops -Wall -DENABLE_SMB_ALERTS -c `test -f 
'sfthreshold.c' || echo './'`sfthreshold.c
In file included from sfthreshold.c:23:
util.h:42: 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 `/usr/src/snort-2.0.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/snort-2.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/snort-2.0.2'
make: *** [all] Error 2

Andreas Steinmetz
D.O.M. Datenverarbeitung GmbH

More information about the Snort-devel mailing list