Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68047 - soup-0.7.11 does not compile on gcc-3.4.2
Summary: soup-0.7.11 does not compile on gcc-3.4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-18 13:06 UTC by John Huttley
Modified: 2005-04-17 16:55 UTC (History)
2 users (show)

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


Attachments
Patch to allow soup-0.7.11 to compile with gcc-3.4.2 (soup-0.7.11-gcc-3.4.2.patch,2.98 KB, patch)
2004-10-27 06:30 UTC, Pär Karlsson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Huttley 2004-10-18 13:06:10 UTC
distcc[6346] ERROR: compile /var/tmp/portage/homedir/.ccache/wsdl-typec.tmp.alba tross.hisdad.org.nz.6338.i on localhost failed
wsdl-typecodes.c: In function `wsdl_typecode_find_alignment':
wsdl-typecodes.c:980: error: parse error before "__FUNCTION__"
wsdl-typecodes.c:1085: error: parse error before "__FUNCTION__"
wsdl-typecodes.c: In function `wsdl_typecode_size':
wsdl-typecodes.c:1109: error: parse error before "__FUNCTION__"
wsdl-typecodes.c:1221: error: parse error before "__FUNCTION__"
make[3]: *** [wsdl-typecodes.lo] Error 1


Reproducible: Always
Steps to Reproduce:
1. emerge the ebuild or just try and compile the tar file
2.
3.



Expected Results:  
if I use gcc-config to switch back to gcc-3,3.4 it emerges ok.

Gentoo Base System version 1.5.3
Portage 2.0.51_rc9 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20041006-r0,
2.6.8-gentoo-r4 i686)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 AMD Athlon(tm) 
distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
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
/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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium2 -O3 -pipe"
DISTDIR="/data/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j6"
PKGDIR="/data/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.95.254/gentoo-portage"
USE="X X509 acpi alsa apache2 avi berkdb bitmap-fonts bonobo cdr crypt cups dba
doc dvd dvdr dvdread encode esd evms2 exif fam flac foomaticdb freetds freetype
gd gif gimpprint gmp gnome gnomedb gpm gtk gtk2 gtkhtml guile imap imlib imlib2
jpeg ldap libwww lzo mad mime mozilla mp3 mpeg mpeg4 mppe-m ncurses nls nptl
nptlonly oggvorbis opengl openssh pam pcap pdflib perl pic png postgres python
qt quicktime readline samba sasl scanner sdl session slang spell sqlite ssl svga
tcpd tiff truetype uml usb x86 xine xml xml2 xmms xprint xv xvid zlib"
Comment 1 Dietrich Heise 2004-10-25 14:08:14 UTC
same here,
but no distcc...

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"SOUP-WSDL-RUNTIME\" -I../../src -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gnome-xml -march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -D_REENTRANT -c wsdl-typecodes.c  -fPIC -DPIC -o .libs/wsdl-typecodes.lo
wsdl-typecodes.c: In function `wsdl_typecode_find_alignment':
wsdl-typecodes.c:980: error: parse error before "__FUNCTION__"
wsdl-typecodes.c:1085: error: parse error before "__FUNCTION__"
wsdl-typecodes.c: In function `wsdl_typecode_size':
wsdl-typecodes.c:1109: error: parse error before "__FUNCTION__"
wsdl-typecodes.c:1221: error: parse error before "__FUNCTION__"
make[3]: *** [wsdl-typecodes.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/soup-0.7.11/work/soup-0.7.11/src/libwsdl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/soup-0.7.11/work/soup-0.7.11/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/soup-0.7.11/work/soup-0.7.11'
make: *** [all-recursive-am] Error 2

!!! ERROR: net-libs/soup-0.7.11 failed.
!!! Function src_compile, Line 45, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 2 Dietrich Heise 2004-10-25 14:09:05 UTC
didi ~ #  emerge info
Portage 2.0.51-r2 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.6.3
distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8,sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://intern/olddistfiles/ http://intern/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage/"
USE="3dnow X Xaw3d aalib alsa apache2 apm avi bitmap-fonts bonobo cdr crypt cups curl dba dga directfb doc dvd dvdr emacs encode esd f77 fbcon flash foomaticdb freetds gd gd-external gdbm ggi gif gmp gnome gpg gphoto2 gpm gtk gtk2 gtkhtml guile imap imlib jpeg kde ldap libg++ libwww linguas_de linguas_nds lirc mad matroska mcal memlimit mikmod mmx mozilla mpeg mysql ncures ncurses network nls ogg oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba sdl slang slp snmp spell sse ssl svga tcltk tcpd tetex tiff truetype vorbis x86 xml xml2 xmms xprint xv zlib"
Comment 3 Pär Karlsson 2004-10-27 06:30:23 UTC
Created attachment 42690 [details, diff]
Patch to allow soup-0.7.11 to compile with gcc-3.4.2

I found an existing patch to soup-0.7.11 for the FreeBSD people, who has run
into this problem before:

http://lists.freebsd.org/pipermail/freebsd-gnome/2004-August/007761.html

Attached here is the patch adapted for convenient one-time-patching in portage.
Comment 4 Ulrich Plate (RETIRED) gentoo-dev 2005-01-13 09:34:50 UTC
Just in case this got forgotten: The same bug still bites with (GCC) 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7), and the patch still works beautifully to make it compile...
Comment 5 foser (RETIRED) gentoo-dev 2005-01-13 09:43:09 UTC
we obviously forgot, please apply & close ulrich. Thanks.
Comment 6 steveb 2005-03-15 17:55:34 UTC
I can confirm that the patch works with gcc version 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110, ssp-3.4.3.20050110-0, pie-8.7.7). Without the patch, I can not compile soup.
Comment 7 steveb 2005-04-12 15:38:33 UTC
# ping gentoo-dev.libs-soup.ebuild
PING gentoo-dev.libs-soup.ebuild (127.0.0.1) 56(84) bytes of data.

--- gentoo-dev.libs-soup.ebuild ping statistics ---
149 packets transmitted, 0 received, 100% packet loss, time 148021ms




When will the patch make his way into portage? Patch works perfectly over here and it does not look like a big work/task to push this into portage CVS and confirm.

** me waiting **

SteveB
Comment 8 foser (RETIRED) gentoo-dev 2005-04-17 14:43:15 UTC
added the patch, sorry for the delay I assumed ulrich would fix it.
Comment 9 steveb 2005-04-17 16:55:02 UTC
Thanks