Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52037 - gtkhtml-1.1.10 fails to compile with GCC 3.4
Summary: gtkhtml-1.1.10 fails to compile with GCC 3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-05-25 13:05 UTC by Mark Loeser (RETIRED)
Modified: 2004-08-24 23:40 UTC (History)
1 user (show)

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


Attachments
1 line patch to fix compile error (gtkhtml-gcc34.patch,484 bytes, patch)
2004-05-25 13:07 UTC, Mark Loeser (RETIRED)
Details | Diff
adds epatch line to ebuild uses popup.patch as filename for the patch by original poster (gtkhtml-1.1.10-r1.ebuild.patch,373 bytes, patch)
2004-06-05 16:23 UTC, Disenchanted (RETIRED)
Details | Diff
corrected version of patch for ebuild (ebuild.patch,537 bytes, patch)
2004-08-24 05:22 UTC, Anton Starikov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Loeser (RETIRED) gentoo-dev 2004-05-25 13:05:10 UTC
When you emerge gtkhtml-1.1.10 while using GCC 3.4 you get the following error message:
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DGNOMEDATADIR=\""/usr/share"\"        -DGNOMELOCALEDIR=\""/usr/share/locale"\"         -I../../src            -I.                                              -I.        -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/libcapplet1 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include                                   -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/freetype2 -I/usr/include/gnome-xml -I/usr/include/gal-1.0 -I/usr/include/libglade-1.0 -I/usr/include -I/usr/include/orbit-1.0    -DGLADE_DATADIR=\"/usr/share/gtkhtml-1.1/\"    -mtune=athlon-xp -march=athlon-xp -O3 -fomit-frame-pointer -pipe -ftracer -Wall -Wunused  -I/usr/include/gconf/1 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include -DGTKHTML_HAVE_GCONF  -DICONDIR=\"/usr/share/gtkhtml-1.1//icons\" -c popup.c
popup.c: In function `prepare_properties_and_menu':
popup.c:499: error: label at end of compound statement
make[3]: *** [popup.o] Error 1
make[3]: *** Waiting for unfinished jobs....


Reproducible: Always
Steps to Reproduce:
1. Ensure you are using gcc 3.4
2. emerge gtkhtml
3.

Actual Results:  
The above error message

Expected Results:  
Should have compiled
Comment 1 Mark Loeser (RETIRED) gentoo-dev 2004-05-25 13:07:25 UTC
Created attachment 32019 [details, diff]
1 line patch to fix compile error

Putting a break; after the default: label fixes the error.
Comment 2 Disenchanted (RETIRED) gentoo-dev 2004-06-05 16:21:18 UTC
adding ebuild patch to patch ebuild to include epatch of popup.patch (which i took the liberty to call your patch)

your patch allows gtkhtml to merge with gcc-3.4.0 on x86

Comment 3 Disenchanted (RETIRED) gentoo-dev 2004-06-05 16:23:11 UTC
Created attachment 32753 [details, diff]
adds epatch line to ebuild uses popup.patch as filename for the patch by original poster
Comment 4 Anton Starikov 2004-08-24 05:22:21 UTC
Created attachment 38088 [details, diff]
corrected version of patch for ebuild

Previous one was not correct, without "inherit eutils"
Comment 5 Karol Wojtaszek (RETIRED) gentoo-dev 2004-08-24 23:40:01 UTC
Fixed in portage.