Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54010 - Streamtuner fails to compile with GCC3.4 - error in sg-parser.c
Summary: Streamtuner fails to compile with GCC3.4 - error in sg-parser.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
: 55294 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-15 11:30 UTC by Christopher O'Neill
Modified: 2004-07-16 12:46 UTC (History)
1 user (show)

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


Attachments
Empty label removed (patch.diff,302 bytes, patch)
2004-06-15 11:32 UTC, Christopher O'Neill
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher O'Neill 2004-06-15 11:30:10 UTC
See results and attached patch which resolves the problem.  The problem is due to the following lines of code:

        default:                        /* only to suppress compiler warnings */
        }

GCC3.4 doesn't like the empty label.

Reproducible: Always
Steps to Reproduce:
1. Install linux with GCC3.4
2. emerge streamtuner


Actual Results:  
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I../../src/i18n -O2 -pipe -march=athlon64 -fweb
-ftracer -MT sg-parser.lo -MD -MP -MF .deps/sg-parser.Tpo -c sg-parser.c  -fPIC
-DPIC -o .libs/sg-parser.o
sg-parser.c: In function `sg_parser_get_statement':
sg-parser.c:291: error: label at end of compound statement
make[3]: *** [sg-parser.lo] Error 1

Expected Results:  
Compiled as normal

Portage 2.0.50-r8 (gcc34-amd64-2004.1, gcc-3.4.0, glibc-2.3.4.20040605-r0, 2.6.6)
=================================================================
System uname: 2.6.6 x86_64 4
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -march=athlon64 -fweb -ftracer"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=athlon64 -fweb -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://194.83.57.11/sites/www.ibiblio.org/gentoo/
http://194.83.57.3/sites/www.ibiblio.org/gentoo/
http://194.83.57.2/sites/www.ibiblio.org/gentoo/
http://194.83.57.7/sites/www.ibiblio.org/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 alsa amd64 apm avi berkdb crypt dvd esd foomaticdb gdbm gif gpm gtk2
imlib java jpeg libg++ libwww mikmod mozilla moznocompose moznoirc mpeg mysql
ncurses nls nptl oggvorbis opengl pam pdflib perl png python quicktime readline
sdl slang spell ssl tcltk tcpd threads truetype xinerama xml2 xmms xv xvid zlib"
Comment 1 Christopher O'Neill 2004-06-15 11:32:13 UTC
Created attachment 33332 [details, diff]
Empty label removed
Comment 2 Malcolm Lashley (RETIRED) gentoo-dev 2004-07-04 04:12:33 UTC
Fixed in CVS, thanks Chris ;-)
Comment 3 Karol Wojtaszek (RETIRED) gentoo-dev 2004-07-16 12:46:04 UTC
*** Bug 55294 has been marked as a duplicate of this bug. ***