Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49470 - games-arcade/crack-attack-1.1.10 fails to emerge with gcc-3.4
Summary: games-arcade/crack-attack-1.1.10 fails to emerge with gcc-3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-04-30 01:04 UTC by Andrew Sayman
Modified: 2004-05-04 20:53 UTC (History)
1 user (show)

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


Attachments
Fixes the sstream bug (crack-attack-sstream-fix.diff,4.73 KB, patch)
2004-04-30 03:43 UTC, Andrew Sayman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Sayman 2004-04-30 01:04:44 UTC
Emerging crack-attack fails with: 
Making all in src
make[1]: Entering directory `/mnt/hda1/portage/tmp/portage/crack-attack-1.1.10/work/crack-attack-1.1.10/src'
g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"'    -O2 -march=athlon-xp -pipe -DGL_GLEXT_LEGACY -s -c Attack.cxx
g++ -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/games/crack-attack/"'    -O2 -march=athlon-xp -pipe -DGL_GLEXT_LEGACY -s -c Block.cxx
In file included from /usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/sstream:641,
                 from TextureLoader.h:7,
                 from Attack.cxx:45:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/sstream.tcc: In member function `virtual typename std::basic_stringbuf<_CharT, _Traits, _Alloc>::int_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::overflow(typename _Traits::int_type)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/sstream.tcc:90: error: expected unqualified-id before '(' token
make[1]: *** [Attack.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/mnt/hda1/portage/tmp/portage/crack-attack-1.1.10/work/crack-attack-1.1.10/src'
make: *** [all-recursive] Error 1

!!! ERROR: games-arcade/crack-attack-1.1.10 failed.
!!! Function src_compile, Line 32, Exitcode 2
!!! emake failed

Steps to reproduce:
1. Upgrade to gcc-3.4
2. emerge crack-attack

Expected Results:
crack-attack is successfully installed

Actual results:
crack-attack fails to install

Extra info:
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.4.0, glibc-2.3.3_pre20040207-r0, 2.6.4)
=================================================================
System uname: 2.6.4 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.9
ccache version 2.3 [disabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-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 /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 -march=athlon-xp -pipe"
DISTDIR="/mnt/hda1/portage/distfiles"
FEATURES="autoaddcvs sandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://adelie.polymtl.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/hda1/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://128.61.75.81/gentoo-portage"
USE="3dnow X aalib acpi alsa avi berkdb bonobo cdr crypt cups dedicated doc dvd encode esd foomaticdb gdbm gif gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml guile imlib java jfs jikes jpeg junit ldap libg++ libwww mad mikmod mmx mng motif mozilla mpeg mysql nas ncurses nls ogg oggvorbis openal opengl oss pam pdflib perl png python qt quicktime readline reiserfs ruby samba sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype usb x86 xml xml2 xmms xosd xv zlib"
Comment 1 Andrew Sayman 2004-04-30 03:43:28 UTC
Created attachment 30383 [details, diff]
Fixes the sstream bug

This bug had something to do with the order of including headers. I rearranged
everything so that TextureLoader.h would come before everything else and it
works fine.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-05-04 20:53:51 UTC
Doesn't seem to hurt for gcc 3.3 so I'll add it in.

Thanks for the patch and bug report.