Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 73313
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Netmon Herd <netmon@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Marcus Huelter <Marcus.Huelter@t-online.de>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
cleanbuild.patch Get rid of warnings and errors patch Peter K. Lee 2004-12-17 14:14 0000 1.07 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 73313 depends on: 22460 Show dependency tree
Bug 73313 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-12-04 01:58 0000
emerge -uvD airtraf fails at:

make[1]: Entering directory `/var/tmp/portage/airtraf-1.1/work/airtraf-1.1/src/sniffd'
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':
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'
make: *** [just_sniff] Error 2

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

from autoconfig.c: line: 771...
---<snip>---
      }
      fclose(fh);
      break;
    case DRV_PRISM2:


    }
---<snip>---
there is missing at least a ';' after the 'DRV_PRISM2:' 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="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="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"

------- Comment #1 From Marcus Huelter 2004-12-07 01:43:03 0000 -------
The issue boils down to the fact, that gcc-3.4.x no more accepts a compound
statement ending with a label.

---<snip>---
$: cat t.c
int main(void)
{
        return 0;
        LABEL:
}
$: gcc t.c
t.c: In function `main':
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.

$:
---<snip>---

Cheers,
Marcus

------- Comment #2 From Peter K. Lee 2004-12-08 11:22:40 0000 -------
There are actually several more warning errors, it's been there like forever,
and I could've probably fixed it in the time it took to write this response...

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

Maybe there will be a new tree next year.  Maybe I will come back to maintain
it this time. :)

------- Comment #3 From Peter K. Lee 2004-12-17 14:14:52 0000 -------
Created an attachment (id=46236) [details]
Get rid of warnings and errors

It should build correctly now.

------- Comment #4 From Daniel Black 2005-01-12 01:58:43 0000 -------
fixed - thankyuou.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug