Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30540 - snort fails to compile
Summary: snort fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-06 23:29 UTC by Seemant Kulleen (RETIRED)
Modified: 2003-10-28 06:44 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed snort-2.0.2 patch (snort-2.0.2-gcc3.3.patch,350 bytes, patch)
2003-10-09 06:55 UTC, Brandy Westcott (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Seemant Kulleen (RETIRED) gentoo-dev 2003-10-06 23:29:23 UTC
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 Jason Wever (RETIRED) gentoo-dev 2003-10-08 15:04:53 UTC
I've masked this on sparc until this problem is resolved.

Has this actually worked for anyone?
Comment 2 Brandy Westcott (RETIRED) gentoo-dev 2003-10-09 06:55:09 UTC
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.
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-10-28 06:44:29 UTC
2.0.2 compiles now fine