Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53435 - [PATCH] pingus-0.6.0 doesn't compile with gcc-3.4
Summary: [PATCH] pingus-0.6.0 doesn't compile with gcc-3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-09 10:36 UTC by Felix Riemann
Modified: 2004-06-09 22:34 UTC (History)
0 users

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


Attachments
patch adding iostream header (pingus-gcc34.patch,259 bytes, patch)
2004-06-09 10:38 UTC, Felix Riemann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Riemann 2004-06-09 10:36:54 UTC
The emerge of pingus-0.6.0 stops with the following error if I use gcc-3.4:
if g++ -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/include/libxml2  -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 -MT graph.o -MD -MP -MF ".deps/graph.Tpo" \
  -c -o graph.o `test -f 'graph.cxx' || echo './'`graph.cxx; \
then mv ".deps/graph.Tpo" ".deps/graph.Po"; \
else rm -f ".deps/graph.Tpo"; exit 1; \
fi
In file included from graph.cxx:20:
graph.hxx: In member function `WorldMapNS::Edge<EdgeType>& WorldMapNS::Graph<NodeType, EdgeType>::resolve_edge(const WorldMapNS::NodeId&, const WorldMapNS::NodeId&)':
graph.hxx:151: error: `cout' is not a member of `std'
graph.hxx:151: error: `endl' is not a member of `std'
make[3]: *** [graph.o] Fehler 1
make[3]: *** Warte auf noch nicht beendete Prozesse...
make[3]: Leaving directory `/var/tmp/portage/pingus-0.6.0-r1/work/pingus-0.6.0/src/worldmap'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/pingus-0.6.0-r1/work/pingus-0.6.0/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/pingus-0.6.0-r1/work/pingus-0.6.0'
make: *** [all] Fehler 2

!!! ERROR: games-puzzle/pingus-0.6.0-r1 failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! emake failed



Reproducible: Always
Steps to Reproduce:
1. make gcc-3.4.0 your compiler
2. emerge pingus-0.6.0-r1
3.

Actual Results:  
emerge breaks with the above error

Expected Results:  
pingus should finish compiling
Comment 1 Felix Riemann 2004-06-09 10:38:27 UTC
Created attachment 32987 [details, diff]
patch adding iostream header

it looks like it's sufficient to add the iostream header-file to graph.hxx
pingus finishes compiling and works as expected
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-06-09 22:34:47 UTC
Added to CVS.  Thanks for the bug report and patch.