<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>69416</bug_id>
          
          <creation_ts>2004-10-29 08:47 0000</creation_ts>
          <short_desc>ivan 0.430 does not compile with GCC 3.4</short_desc>
          <delta_ts>2004-12-10 22:51:53 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>lack@gentoo.org</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>lack@gentoo.org</who>
            <bug_when>2004-10-29 08:47:11 0000</bug_when>
            <thetext>When trying to compile ivan with gcc-config set to i686-pc-linux-gnu-3.4.2, I got the following errors:

...
Making all in Source
make[2]: Entering directory `/var/tmp/portage/ivan-0.430/work/ivan-0.430/Main/So
urce&apos;
source=&apos;actset.cpp&apos; object=&apos;actset.o&apos; libtool=no \                              depfile=&apos;.deps/actset.Po&apos; tmpdepfile=&apos;.deps/actset.TPo&apos; \
depmode=gcc3 /bin/sh ../../depcomp \                                            i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSI
ON=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;ivan\&quot; -DVERS
ION=\&quot;0.430\&quot;  -I. -I. -I../../FeLib/Include -I../../Main/Include  -I/usr/includ
e/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\&quot;/var/games/ivan/\&quot; -DDATADIR=\&quot;/u
sr/share/games\&quot; -DUSE_SDL -DGCC  -O2 -march=athlon-xp -pipe -c -o actset.o `tes
t -f &apos;actset.cpp&apos; || echo &apos;./&apos;`actset.cpp                                       source=&apos;areaset.cpp&apos; object=&apos;areaset.o&apos; libtool=no \
depfile=&apos;.deps/areaset.Po&apos; tmpdepfile=&apos;.deps/areaset.TPo&apos; \                     depmode=gcc3 /bin/sh ../../depcomp \
i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSI
ON=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;ivan\&quot; -DVERS
ION=\&quot;0.430\&quot;  -I. -I. -I../../FeLib/Include -I../../Main/Include  -I/usr/includ
e/SDL -D_REENTRANT -DLINUX -DLOCAL_STATE_DIR=\&quot;/var/games/ivan/\&quot; -DDATADIR=\&quot;/u
sr/share/games\&quot; -DUSE_SDL -DGCC  -O2 -march=athlon-xp -pipe -c -o areaset.o `te
st -f &apos;areaset.cpp&apos; || echo &apos;./&apos;`areaset.cpp
In file included from actset.cpp:3:                                             ../../Main/Include/proto.h: In function `outputfile&amp; operator&lt;&lt;(outputfile&amp;, con
st type*)&apos;:
../../Main/Include/proto.h:80: error: no match for &apos;operator&lt;&lt;&apos; in &apos;SaveFile &lt;&lt; 
(ushort)(0)&apos;
../../Main/Include/proto.h: In function `inputfile&amp; operator&gt;&gt;(inputfile&amp;, type*
&amp;)&apos;:
../../Main/Include/proto.h:88: error: no match for &apos;operator&gt;&gt;&apos; in &apos;SaveFile &gt;&gt; 
Type&apos;
actset.cpp: At global scope:
actset.cpp:6: error: too few template-parameter-lists
actset.cpp:7: error: too few template-parameter-lists
actset.cpp:8: error: too few template-parameter-lists
In file included from ../../Main/Include/char.h:9,
                 from actset.cpp:15:
../../Main/Include/script.h:201: error: an explicit specialization must be prece
ded by &apos;template &lt;&gt;&apos;
../../Main/Include/script.h:217: error: an explicit specialization must be preceded by &apos;template &lt;&gt;&apos;
../../Main/Include/script.h:241: error: an explicit specialization must be preceded by &apos;template &lt;&gt;&apos;
../../Main/Include/script.h:253: error: an explicit specialization must be preceded by &apos;template &lt;&gt;&apos;
In file included from ../../Main/Include/char.h:9,
                 from areaset.cpp:2:
../../Main/Include/script.h:201: error: an explicit specialization must be preceded by &apos;template &lt;&gt;&apos;
../../Main/Include/script.h:217: error: an explicit specialization must be preceded by &apos;template &lt;&gt;&apos;
../../Main/Include/script.h:241: error: an explicit specialization must be preceded by &apos;template &lt;&gt;&apos;
../../Main/Include/script.h:253: error: an explicit specialization must be preceded by &apos;template &lt;&gt;&apos;
In file included from areaset.cpp:8:
../../Main/Include/proto.h: In function `outputfile&amp; operator&lt;&lt;(outputfile&amp;, const type*)&apos;:         
../../Main/Include/proto.h:80: error: ambiguous overload for &apos;operator&lt;&lt;&apos; in &apos;SaveFile &lt;&lt; (ushort)(0)&apos;
../../Main/Include/level.h:162: note: candidates are: outputfile&amp; operator&lt;&lt;(outputfile&amp;, const level*) &lt;near match&gt;
../../Main/Include/dungeon.h:49: note:                 outputfile&amp; operator&lt;&lt;(outputfile&amp;, const dungeon*) &lt;near match&gt;
../../Main/Include/script.h:451: note:                 outputfile&amp; operator&lt;&lt;(outputfile&amp;, const gamescript*) &lt;near match&gt;
../../Main/Include/team.h:47: note:                 outputfile&amp; operator&lt;&lt;(outputfile&amp;, const team*) &lt;near match&gt;
../../Main/Include/game.h:51: note:                 outputfile&amp; operator&lt;&lt;(outputfile&amp;, const homedata*) &lt;near match&gt;
../../FeLib/Include/bitmap.h:189: note:                 outputfile&amp; operator&lt;&lt;(outputfile&amp;, const bitmap*) &lt;near match&gt;
../../Main/Include/proto.h: In function `inputfile&amp; operator&gt;&gt;(inputfile&amp;, type*&amp;)&apos;:                
../../Main/Include/proto.h:88: error: no match for &apos;operator&gt;&gt;&apos; in &apos;SaveFile &gt;&gt; Type&apos;               
../../FeLib/Include/femath.h:77: note: candidates are: inputfile&amp; operator&gt;&gt;(inputfile&amp;, interval&amp;) 
../../FeLib/Include/femath.h:79: note:                 inputfile&amp; operator&gt;&gt;(inputfile&amp;, region&amp;)   
../../Main/Include/igraph.h:50: note:                 inputfile&amp; operator&gt;&gt;(inputfile&amp;, graphicid&amp;) 
../../Main/Include/level.h:163: note:                 inputfile&amp; operator&gt;&gt;(inputfile&amp;, level*&amp;)    
../../Main/Include/dungeon.h:50: note:                 inputfile&amp; operator&gt;&gt;(inputfile&amp;, dungeon*&amp;) 
../../Main/Include/lsquare.h:39: note:                 inputfile&amp; operator&gt;&gt;(inputfile&amp;, emitter&amp;)  
../../Main/Include/slot.h:119: note:                 inputfile&amp; operator&gt;&gt;(inputfile&amp;, slot&amp;)       
../../Main/Include/script.h:117: note:                 inputfile&amp; operator&gt;&gt;(inputfile&amp;, script&amp;)   
../../Main/Include/script.h:452: note:                 inputfile&amp; operator&gt;&gt;(inputfile&amp;, gamescript*&amp;)
../../Main/Include/team.h:48: note:                 inputfile&amp; operator&gt;&gt;(inputfile&amp;, team*&amp;)       
../../Main/Include/game.h:52: note:                 inputfile&amp; operator&gt;&gt;(inputfile&amp;, homedata*&amp;)   
../../Main/Include/game.h:72: note:                 inputfile&amp; operator&gt;&gt;(inputfile&amp;, configid&amp;)    
../../Main/Include/game.h:84: note:                 inputfile&amp; operator&gt;&gt;(inputfile&amp;, dangerid&amp;)    
../../FeLib/Include/bitmap.h:190: note:                 inputfile&amp; operator&gt;&gt;(inputfile&amp;, bitmap*&amp;) 
make[2]: *** [actset.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [areaset.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/ivan-0.430/work/ivan-0.430/Main/Source&apos;                
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ivan-0.430/work/ivan-0.430/Main&apos;
make: *** [all-recursive] Error 1
                    
!!! ERROR: games-roguelike/ivan-0.430 failed.
!!! Function games_src_compile, Line 143, Exitcode 2
!!! emake failed    
!!! If you need support, post the topmost build error, NOT this status message.

Workaround:

After switching gcc-config to i686-pc-linux-gnu-3.3.4, everything seemed to work properly.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>me@lordhelmchen.net</who>
            <bug_when>2004-11-29 15:09:49 0000</bug_when>
            <thetext>Submitted to &lt;http://sourceforge.net/tracker/index.php?func=detail&amp;atid=405033&amp;aid=1070506&amp;group_id=32287&gt;

was answered with
&quot;Thanks. Gcc 3.4.x branch didn&apos;t exist when we released 
v0.430 so we didn&apos;t notice this problem. It has already been 
fixed in our CVS version and will not reoccur in the soon-to-
be-released v0.50.&quot;

tried to set status to resolved-UPSTREAM, but was not allowed :)
looks like we have to wait until &quot;soon&quot; and hope the ebuild&apos;s maintainer will notice :)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-12-10 22:51:53 0000</bug_when>
            <thetext>ivan-0.50 added to portage.  Should be better with gcc34.

Thanks for the bug report.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>