<?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>73313</bug_id>
          
          <creation_ts>2004-12-04 01:58 0000</creation_ts>
          <short_desc>airtraf fails to compile: label at end of compound statement</short_desc>
          <delta_ts>2005-01-12 01:58:43 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>x86</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>
          <dependson>22460</dependson>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>Marcus.Huelter@t-online.de</reporter>
          <assigned_to>netmon@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>Marcus.Huelter@t-online.de</who>
            <bug_when>2004-12-04 01:58:55 0000</bug_when>
            <thetext>emerge -uvD airtraf fails at:

make[1]: Entering directory `/var/tmp/portage/airtraf-1.1/work/airtraf-1.1/src/sniffd&apos;
i686-pc-linux-gnu-gcc -I../libcommon -I../libncurses -O3 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe -Wall -c     airtraf.c
i686-pc-linux-gnu-gcc -I../libcommon -I../libncurses -O3 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe -Wall -c     autoconfig.c
autoconfig.c: In function `disable_monitor&apos;:
autoconfig.c:777: error: label at end of compound statement
make[1]: *** [autoconfig.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/airtraf-1.1/work/airtraf-1.1/src/sniffd&apos;
make: *** [just_sniff] Error 2

sourced code from:
   http://www.elixar.com/airtraf-1.1.tar.gz
executed &apos;make all&apos; within the src-directory; same result/error msg

from autoconfig.c: line: 771...
---&lt;snip&gt;---
      }
      fclose(fh);
      break;
    case DRV_PRISM2:


    }
---&lt;snip&gt;---
there is missing at least a &apos;;&apos; after the &apos;DRV_PRISM2:&apos; label.

Reproducible: Always
Steps to Reproduce:
pls. see detail section


Expected Results:  
a clean (warning free ;) compile/install

emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.4.2, glibc-2.3.4.20041102-r0,
2.6.9-gentoo-r1h i686)
=================================================================
System uname: 2.6.9-gentoo-r1h i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.6.6
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jun 13 2004, 20:57:39)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.9.3, 1.8.5-r2, 1.6.3, 1.7.9, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O3 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks sandbox sfperms&quot;
GENTOO_MIRRORS=&quot;ftp://sunsite.cnlab-switch.ch/mirror/gentoo/
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X aalib acpi acpi4linux alsa apm arts artswrappersuid avi berkdb
bitmap-fonts bluetooth bonobo cdr crypt cups dv dvd encode esd ethereal f77 fam
ffmpeg flac foomaticdb fortran freetype gdbm gif gnome gphoto2 gpm gstreamer gtk
gtk2 gtkhtml imagemagick imap imlib irda irmc java jpeg kde ldap libg++ libwww
lirc mad mikmod mmx motif mozcalendar mozilla mpeg mpeg4 mysql ncurses nls
nvidia oggvorbis opengl oss pam pda pdflib perl png ppds python qt quicktime
readline ruby samba sdl slang socks5 spell sse ssl svga tcltk tcpd tetex tiff
transcode truetype unicode usb v4l vim-with-x x86 xine xml xml2 xmms xv xvid
zlib zvbi&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Marcus.Huelter@t-online.de</who>
            <bug_when>2004-12-07 01:43:03 0000</bug_when>
            <thetext>The issue boils down to the fact, that gcc-3.4.x no more accepts a compound statement ending with a label.

---&lt;snip&gt;---
$: cat t.c
int main(void)
{
        return 0;
        LABEL:
}
$: gcc t.c
t.c: In function `main&apos;:
t.c:5: error: label at end of compound statement
$:gcc --version
gcc (GCC) 3.4.3  (Gentoo Linux 3.4.3, ssp-3.4.3-0, pie-8.7.6.6)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$:
---&lt;snip&gt;---

Cheers,
Marcus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>saint@corenova.com</who>
            <bug_when>2004-12-08 11:22:40 0000</bug_when>
            <thetext>There are actually several more warning errors, it&apos;s been there like forever, and I could&apos;ve probably fixed it in the time it took to write this response...

But, I&apos;m not going to touch that (codebase) at this time since there&apos;s just too much that has changed since it&apos;s release.

Maybe there will be a new tree next year.  Maybe I will come back to maintain it this time. :)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>saint@corenova.com</who>
            <bug_when>2004-12-17 14:14:52 0000</bug_when>
            <thetext>Created an attachment (id=46236)
Get rid of warnings and errors

It should build correctly now.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2005-01-12 01:58:43 0000</bug_when>
            <thetext>fixed - thankyuou.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>46236</attachid>
            <date>2004-12-17 14:14 0000</date>
            <desc>Get rid of warnings and errors</desc>
            <filename>cleanbuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtTmF1ciBzcmMvc25pZmZkL2F1dG9jb25maWcuYyBzcmMubmV3L3NuaWZmZC9hdXRvY29u
ZmlnLmMKLS0tIHNyYy9zbmlmZmQvYXV0b2NvbmZpZy5jCTIwMDMtMDEtMjMgMTY6NDE6MzYuMDAw
MDAwMDAwIC0wODAwCisrKyBzcmMubmV3L3NuaWZmZC9hdXRvY29uZmlnLmMJMjAwNC0xMi0xNyAx
MjoyNzo0NS4wMDAwMDAwMDAgLTA4MDAKQEAgLTc3Miw4ICs3NzIsNyBAQAogICAgICAgZmNsb3Nl
KGZoKTsKICAgICAgIGJyZWFrOwogICAgIGNhc2UgRFJWX1BSSVNNMjoKLSAgICAgIAotCQorCQli
cmVhazsKICAgICB9CiAgICAgLyogdXBkYXRlIGZsYWcgdGFrZSBvZmYg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