Bug 227063 - games-roguelike/ivan-0.50 fails to compile w/gcc-4.3
Bug#: 227063 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: gentoo@altkai.ml1.net
Component: Games
URL: 
Summary: games-roguelike/ivan-0.50 fails to compile w/gcc-4.3
Keywords:  
Status Whiteboard: 
Opened: 2008-06-14 23:22 0000
Description:   Opened: 2008-06-14 23:22 0000
/Please/ don't hardmask without giving me a chance to hunt for patches first.

i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"ivan\" -DVERSION=\"0.50\"  -I. -I.  -I../../FeLib/Include 
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DLINUX
-DLOCAL_STATE_DIR=\"/var/games/ivan\" -DDATADIR=\"/usr/share/games\" -DUSE_SDL
-DGCC  -O0 -march=athlon-xp -pipe -fomit-frame-pointer -c fetime.cpp
festring.cpp:20: warning: deprecated conversion from string constant to 'char*'
festring.cpp: In static member function 'static void
festring::InstallIntegerMap()':
festring.cpp:459: error: 'atexit' was not declared in this scope
make[2]: *** [festring.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/games-roguelike/ivan-0.50/work/ivan-0.50/FeLib/Source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/games-roguelike/ivan-0.50/work/ivan-0.50/FeLib'
make: *** [all-recursive] Error 1


Reproducible: Always

------- Comment #1 From Marek Miller 2008-06-15 14:40:43 0000 -------
Again missing headers.

Steps to reproduce:
1. USE="" emerge -v1 =games-roguelike/ivan-0.50

The error messages:
1.
> festring.cpp: In static member function 'static void festring::InstallIntegerMap()':
> festring.cpp:459: error: 'atexit' was not declared in this scope


My emerge --info: as in the bug 226663, comment 2.
I include the patch.

------- Comment #2 From Marek Miller 2008-06-15 14:41:09 0000 -------
Created an attachment (id=156923) [details]
ivan-0.50-gcc43.patch

------- Comment #3 From Kai 2008-06-16 02:27:45 0000 -------
Thanks Marek! Compiles and works fine. Tested on x86.

------- Comment #4 From Mr. Bones. 2008-06-17 01:47:53 0000 -------
in portage.  thanks for the bug report and patch.