<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>30540</bug_id>
          
          <creation_ts>2003-10-06 23:29 0000</creation_ts>
          <short_desc>snort fails to compile</short_desc>
          <delta_ts>2003-10-28 06:44:29 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>seemant@gentoo.org</reporter>
          <assigned_to>aliz@gentoo.org</assigned_to>
          <cc>apermyakov@linuxmail.org</cc>
    
    <cc>brandy@gentoo.org</cc>
    
    <cc>mholzer@gentoo.org</cc>
    
    <cc>sparc@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2003-10-06 23:29:23 0000</bug_when>
            <thetext>make[3]: Entering directory `/var/tmp/portage/snort-2.0.2/work/snort-2.0.2/src&apos;
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 &apos;sfthreshold.c&apos; ||
echo &apos;./&apos;`sfthreshold.c
In file included from sfthreshold.c:23:
util.h:42: error: syntax error before &quot;netmasks&quot;
util.h:42: warning: type defaults to `int&apos; in declaration of `netmasks&apos;
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&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/snort-2.0.2/work/snort-2.0.2/src&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/snort

Reproducible: Always
Steps to Reproduce:
1.
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>weeve@gentoo.org</who>
            <bug_when>2003-10-08 15:04:53 0000</bug_when>
            <thetext>I&apos;ve masked this on sparc until this problem is resolved.

Has this actually worked for anyone?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brandy@gentoo.org</who>
            <bug_when>2003-10-09 06:55:09 0000</bug_when>
            <thetext>Created an attachment (id=19006)
proposed snort-2.0.2 patch

Adding &apos;#include &lt;sys/types.h&gt;&apos; to src/util.h before the declaration using
&apos;u_long&apos; lets things compile nicely.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-10-28 06:44:29 0000</bug_when>
            <thetext>2.0.2 compiles now fine</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>19006</attachid>
            <date>2003-10-09 06:55 0000</date>
            <desc>proposed snort-2.0.2 patch</desc>
            <filename>snort-2.0.2-gcc3.3.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtdXIgc25vcnQtMi4wLjIvc3JjL3V0aWwuaCBzbm9ydC0yLjAuMi1nZW50b28vc3JjL3V0
aWwuaAotLS0gc25vcnQtMi4wLjIvc3JjL3V0aWwuaAkyMDAzLTAzLTI3IDA5OjU5OjMwLjAwMDAw
MDAwMCArMTIwMAorKysgc25vcnQtMi4wLjItZ2VudG9vL3NyYy91dGlsLmgJMjAwMy0xMC0xMCAw
MjoxMTo0MS4wMDAwMDAwMDAgKzEzMDAKQEAgLTM5LDYgKzM5LDggQEAKICNpbmNsdWRlICJzdHJs
Y3B5dS5oIgogI2VuZGlmCiAKKyNpbmNsdWRlIDxzeXMvdHlwZXMuaD4KKwogZXh0ZXJuIHVfbG9u
ZyBuZXRtYXNrc1szM107CiAKIC8qIFNlbGYgcHJlc2VydmF0aW9uIG1lbW9yeSBjb250cm9sIHN0
cnVjdCAqLwo=
</data>        

          </attachment>
    </bug>

</bugzilla>