Bug 51997 - clanlib-0.6.5-r1 fails with gcc-3.4
|
Bug#:
51997
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: games@gentoo.org
|
Reported By: felix@hsgheli.de
|
|
Component: GCC Porting
|
|
|
URL:
|
|
Summary: clanlib-0.6.5-r1 fails with gcc-3.4
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2004-05-25 04:27 0000
|
Emerging clanlib-0.6.5-r1 using gcc-3.4 fails with the following error:
Compiling Sources/Core/System/Generic/console_window.cpp
Compiling Sources/Core/System/Generic/console_window_generic.cpp
Compiling Sources/Core/System/Unix/init_linux.cpp
Compiling Sources/Core/System/Unix/appconf.cpp
In file included from Sources/Core/System/Unix/init_linux.cpp:27:
Sources/Core/System/Unix/appconf.h:621: error: class FileConfig::ConfigGroup redeclared with different access
make: *** [Libs/Intermediate/init_linux.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from Sources/Core/System/Unix/appconf.cpp:81:
Sources/Core/System/Unix/appconf.h:621: error: class FileConfig::ConfigGroup redeclared with different access
make: *** [Libs/Intermediate/appconf.o] Error 1
!!! ERROR: dev-games/clanlib-0.6.5-r1 failed.
!!! Function src_compile, Line 61, Exitcode 2
!!! emake failed
It works with gcc-3.3.3
Reproducible: Always
Steps to Reproduce:
1. install gcc-3.4.0(-r4)
2. emerge =dev-games/clanlib-0.6.5-r1
Actual Results:
emerge failed with the above error
Expected Results:
compile and install clanlib-0.6.5 with gcc-3.4
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.4.0, glibc-2.3.3_pre20040420-r0,
2.6.6-love4)
=================================================================
System uname: 2.6.6-love4 i686 AMD Athlon(tm) XP
Gentoo Base System version 1.4.15
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-fexpensive-optimizations -fstack-protector -march=athlon-xp
-mtune=athlon-xp -msse -m3dnow -mmmx -ftracer -O4 -fomit-frame-pointer
-finline-functions -falign-jumps=4 -falign-loops=4 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /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="-fexpensive-optimizations -fstack-protector -march=athlon-xp
-mtune=athlon-xp -msse -m3dnow -mmmx -ftracer -O4 -fomit-frame-pointer
-finline-functions -falign-jumps=4 -falign-loops=4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="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 aalib acpi alsa apm arts athlon avi berkdb cdr crypt cups dga dvd
encode esd foomaticdb gdbm ggi gif gnome gpm gtk gtk2 guile imlib java joystick
jpeg kde ldap libg++ libwww mad mikmod mmx mng motif mozilla moznocompose
moznoirc moznomail mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib
perl png python qt quicktime readline scanner sdl slang spell sse ssl svga tcltk
tcpd tetex tiff truetype x86 xml xml2 xmms xv zlib"
I just found a patch done by the ROCKLinux guys. It's inside a huge patch with
fixes for other packages as well, so I had to separate them. Clanlib compiles
nicely with it and seems to work as usual.
added patch to portage, thanks