Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66447 - x11-wm/xfce-3.8.18-r2 fails to compile with gcc 3.4.2
Summary: x11-wm/xfce-3.8.18-r2 fails to compile with gcc 3.4.2
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-05 11:53 UTC by Thomas Cort (RETIRED)
Modified: 2005-02-19 18:44 UTC (History)
0 users

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


Attachments
New ebuild to apply gcc34 patch (xfce-3.8.18-r2.ebuild,1.57 KB, application/octet-stream)
2004-10-05 12:30 UTC, Thomas Cort (RETIRED)
Details
Patch to make xfce sources compile with gcc 3.4.2 (xfce-3.8.18-gcc34.patch,1.19 KB, patch)
2004-10-05 12:31 UTC, Thomas Cort (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Cort (RETIRED) gentoo-dev 2004-10-05 11:53:40 UTC
When I try to "# emerge xfce", I get errors on xfce-3.8.18-r2. The errors have to do with the use of fprintf(stderr, __FUNCTION__ "Some String"); which doesn't compile with gcc 3.4.2. 

Reproducible: Always
Steps to Reproduce:
1. emerge xfce

Actual Results:  
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -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/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11
R6/include -I/usr/include/libxml2 -I../ -I../libs/ -DXFCE_DIR=\"/usr/share/xfce\
" -DXFCE_LOCALE_DIR=\"/usr/share/locale\" -DXFCE_CONFDIR=\"/etc/xfce\"  -I/usr/X
11R6/include  -O2 -fomit-frame-pointer -Wall -Wno-implicit-int -MT taskbar.o -MD
 -MP -MF ".deps/taskbar.Tpo" \
  -c -o taskbar.o `test -f 'taskbar.c' || echo './'`taskbar.c; \
then mv ".deps/taskbar.Tpo" ".deps/taskbar.Po"; \
else rm -f ".deps/taskbar.Tpo"; exit 1; \
fi
configtree.c: In function `gxfce_write_configs':
configtree.c:401: error: parse error before string constant
configtree.c: In function `gxfce_reset_configs':
configtree.c:430: error: parse error before string constant
make[2]: *** [configtree.o] Error 1
make[2]: *** Waiting for unfinished jobs....
taskbar.c: In function `taskbar_save_config':
taskbar.c:1700: error: label at end of compound statement
make[2]: *** [taskbar.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/xfce-3.8.18-r2/work/xfce-3.8.18/xfc e'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xfce-3.8.18-r2/work/xfce-3.8.18'
make: *** [all] Error 2


Expected Results:  
It should have built cleanly

Portage 2.0.51_rc7 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20040808-r0,
2.6.8.1-ck9 i686)
=================================================================
System uname: 2.6.8.1-ck9 i686 Intel(R) Celeron(R) CPU 2.70GHz
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -fomit-frame-pointer -fpermissive"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://cs.ubishops.ca:2121/pub/gentoo
ftp://cs.ubishops.ca/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X aim alsa apm arts audiofile avi berkdb bitmap-fonts bzlib calendar
cdinstall cdr cdrom chroot cpdflib crypt cups dba directfb divx4linux dv dvdread
encode esd f77 faac faad fbcon fbdev ffmpeg flac flash foomaticdb ftp gcj gcl gd
gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile i8x0 imlib jabber java
javascript jikes jpeg kde libdsk libg++ libwww lzw-tiff mad md5sum mhash mikmod
motif mozaccess mozcalendar mozctl mozdomi mozilla moznocompose moznoirc
moznomail mpeg mpeg4 mplayer msn music mysql nas native ncurses net nethack nls
nocd noexperimental nojoystick nomac noreiserfs ntlm oav offensive oggvorbis
opengl oscar oss pam pdflib perl php png posix postgres pthreads python qt
quicktime readline ruby sdl slang sndfile snmp sockets spell ssl svga tcltk tcpd
tetex threads truetype usb vanilla x86 xml xml2 xmms xprint xv xvid yahoo zlib"


-------------


I ran into the same problem with tuxnes ( bug 65450 ). I'll make a patch and
post it later this afternoon.
Comment 1 Thomas Cort (RETIRED) gentoo-dev 2004-10-05 12:30:34 UTC
Created attachment 41167 [details]
New ebuild to apply gcc34 patch
Comment 2 Thomas Cort (RETIRED) gentoo-dev 2004-10-05 12:31:17 UTC
Created attachment 41168 [details, diff]
Patch to make xfce sources compile with gcc 3.4.2
Comment 3 Thomas Cort (RETIRED) gentoo-dev 2004-10-05 12:33:50 UTC
Besides that __FUNCTION__ "string" error I reported earlier there was also a stray label. Both issues are fixed with the attached patch. The new ebuild uses epatch to apply the patch. I've tested it and it works as expected.
Comment 4 Brad Cowan (RETIRED) gentoo-dev 2005-02-19 18:44:58 UTC
removed from the tree