Bug 218833 - games-server/monopd-0.9.3-r1 fails w/ gcc-4.3.0
Bug#: 218833 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: loki_val@gentoo.org
Component: GCC Porting
URL: 
Summary: games-server/monopd-0.9.3-r1 fails w/ gcc-4.3.0
Keywords:  
Status Whiteboard: 
Opened: 2008-04-22 05:04 0000
Description:   Opened: 2008-04-22 05:04 0000
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  
-DMONOPD_DATADIR=\"/usr/share/games/monopd\" -DMONOPD_CONFIGDIR=\"/etc/games\" 
-O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -c -o cardgroup.o
`test -f cardgroup.cpp || echo './'`cardgroup.cpp
source='debt.cpp' object='debt.o' libtool=no \
        depfile='.deps/debt.Po' tmpdepfile='.deps/debt.TPo' \
        depmode=gcc3 /bin/bash ../depcomp \
        i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  
-DMONOPD_DATADIR=\"/usr/share/games/monopd\" -DMONOPD_CONFIGDIR=\"/etc/games\" 
-O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -c -o debt.o `test -f
debt.cpp || echo './'`debt.cpp
source='display.cpp' object='display.o' libtool=no \
        depfile='.deps/display.Po' tmpdepfile='.deps/display.TPo' \
        depmode=gcc3 /bin/bash ../depcomp \
        i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  
-DMONOPD_DATADIR=\"/usr/share/games/monopd\" -DMONOPD_CONFIGDIR=\"/etc/games\" 
-O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -c -o display.o `test
-f display.cpp || echo './'`display.cpp
cardgroup.cpp:17:18: error: algo.h: No such file or directory
source='estate.cpp' object='estate.o' libtool=no \
        depfile='.deps/estate.Po' tmpdepfile='.deps/estate.TPo' \
        depmode=gcc3 /bin/bash ../depcomp \
        i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  
-DMONOPD_DATADIR=\"/usr/share/games/monopd\" -DMONOPD_CONFIGDIR=\"/etc/games\" 
-O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -c -o estate.o `test
-f estate.cpp || echo './'`estate.cpp
source='estategroup.cpp' object='estategroup.o' libtool=no \
        depfile='.deps/estategroup.Po' tmpdepfile='.deps/estategroup.TPo' \
        depmode=gcc3 /bin/bash ../depcomp \
        i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  
-DMONOPD_DATADIR=\"/usr/share/games/monopd\" -DMONOPD_CONFIGDIR=\"/etc/games\" 
-O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -c -o estategroup.o
`test -f estategroup.cpp || echo './'`estategroup.cpp
In file included from cardgroup.cpp:21:
game.h:150: warning: declaration ‘enum GameObject::Type’ does not declare
anything
cardgroup.cpp: In member function ‘void CardGroup::shuffleCards()’:
cardgroup.cpp:81: error: ‘random_shuffle’ was not declared in this scope
make[2]: *** [cardgroup.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from estategroup.cpp:24:
game.h:150: warning: declaration ‘enum GameObject::Type’ does not declare
anything
estategroup.cpp: In member function ‘int EstateGroup::rent(Player*, const
std::string&)’:
estategroup.cpp:84: error: ‘atoi’ was not declared in this scope
make[2]: *** [estategroup.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/games-server/monopd-0.9.3-r1/work/monopd-0.9.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/games-server/monopd-0.9.3-r1/work/monopd-0.9.3'
make: *** [all] Error 2

Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Peter Alfredsen 2008-04-22 05:04:58 0000 -------
Created an attachment (id=150564) [details]
monopd-0.9.3-gcc43.patch

Fixes the problem. Snatched from Debian.

------- Comment #2 From SpanKY 2008-05-10 10:56:56 0000 -------
thanks, added to the tree