<?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>85454</bug_id>
          
          <creation_ts>2005-03-15 21:20 0000</creation_ts>
          <short_desc>pingus segfaults on amd64 at startup</short_desc>
          <delta_ts>2006-04-06 12:57:15 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>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>UPSTREAM</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jhknight@gmail.com</reporter>
          <assigned_to>amd64@gentoo.org</assigned_to>
          <cc>bug.hunter@gmx.net</cc>
    
    <cc>games@gentoo.org</cc>
    
    <cc>infested@optonline.net</cc>
    
    <cc>openhs@users.sourceforge.net</cc>
    
    <cc>pacho@condmat1.ciencias.uniovi.es</cc>
    
    <cc>will.briggs@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>jhknight@gmail.com</who>
            <bug_when>2005-03-15 21:20:00 0000</bug_when>
            <thetext>--Backtrace--
#0  0x0000002a96b5e803 in memcpy () from /lib/libc.so.6
#1  0x0000002a95f25d80 in SubBlitter_Transparent&lt;unsigned&gt;::blt_noclip(CL_Blit_Transparent*, CL_Target*, int, int, int) () from /usr/lib/libclanDisplay.so.2
#2  0x0000002a95f24474 in CL_Blit_Transparent::blt_noclip(CL_Target*, int, int, int) () from /usr/lib/libclanDisplay.so.2
#3  0x0000002a95f27339 in CL_CardSurface_Blitter::put_screen(int, int, int, CL_Target*) () from /usr/lib/libclanDisplay.so.2
#4  0x0000002a95f3e1a3 in CL_Surface_Generic::put_screen(int, int, int, CL_DisplayCard*) () from /usr/lib/libclanDisplay.so.2
#5  0x0000000000505565 in std::list&lt;CL_Slot_v3&lt;CL_InputDevice*, int, int&gt;*, std::allocator&lt;CL_Slot_v3&lt;CL_InputDevice*, int, int&gt;*&gt; &gt;::erase(std::_List_iterator&lt;CL_Slot_v3&lt;CL_InputDevice*, int, int&gt;*&gt;) ()
#6  0x0000000000516b1f in std::_Rb_tree&lt;std::string, std::pair&lt;std::string const, int&gt;, std::_Select1st&lt;std::pair&lt;std::string const, int&gt; &gt;, std::less&lt;std::string&gt;, std::allocator&lt;std::pair&lt;std::string const, int&gt; &gt; &gt;::insert_unique(std::_Rb_tree_iterator&lt;std::pair&lt;std::string const, int&gt; &gt;, std::pair&lt;std::string const, int&gt; const&amp;) ()
#7  0x00000000005173e6 in std::_Rb_tree&lt;std::string, std::pair&lt;std::string const, int&gt;, std::_Select1st&lt;std::pair&lt;std::string const, int&gt; &gt;, std::less&lt;std::string&gt;, std::allocator&lt;std::pair&lt;std::string const, int&gt; &gt; &gt;::insert_unique(std::_Rb_tree_iterator&lt;std::pair&lt;std::string const, int&gt; &gt;, std::pair&lt;std::string const, int&gt; const&amp;) ()
#8  0x000000000051867f in std::_Rb_tree&lt;std::string, std::pair&lt;std::string const, int&gt;, std::_Select1st&lt;std::pair&lt;std::string const, int&gt; &gt;, std::less&lt;std::string&gt;, std::allocator&lt;std::pair&lt;std::string const, int&gt; &gt; &gt;::insert_unique(std::_Rb_tree_iterator&lt;std::pair&lt;std::string const, int&gt; &gt;, std::pair&lt;std::string const, int&gt; const&amp;) ()
#9  0x000000000044356f in std::_Rb_tree&lt;std::string, std::pair&lt;std::string const, std::string&gt;, std::_Select1st&lt;std::pair&lt;std::string const, std::string&gt; &gt;, std::less&lt;std::string&gt;, std::allocator&lt;std::pair&lt;std::string const, std::string&gt; &gt; &gt;::_M_erase(std::_Rb_tree_node&lt;std::pair&lt;std::string const, std::string&gt; &gt;*) ()
#10 0x0000000000443e65 in std::_Rb_tree&lt;std::string, std::pair&lt;std::string const, std::string&gt;, std::_Select1st&lt;std::pair&lt;std::string const, std::string&gt; &gt;, std::less&lt;std::string&gt;, std::allocator&lt;std::pair&lt;std::string const, std::string&gt; &gt; &gt;::_M_erase(std::_Rb_tree_node&lt;std::pair&lt;std::string const, std::string&gt; &gt;*) ()
#11 0x0000002a957bcf0c in main () from /usr/lib/libclanApp.so.2
#12 0x0000002a96b0be31 in __libc_start_main () from /lib/libc.so.6
#13 0x000000000040a7ca in ?? ()


Reproducible: Always
Steps to Reproduce:
1. Merge games-puzzle/pingus
2. run pingus
3. click start

Actual Results:  
Crashes

Expected Results:  
Don&apos;t crash, play the game

Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r14 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r14 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 25 2005, 08:38:55)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=k8 -O2 -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-march=k8 -O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks sandbox&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X acpi alsa amd64 bash-completion berkdb bitmap-fonts cdr crypt cups curl
dvd dvdread emul-linux-x86 encode esd fam flac font-server fortran freetype gif
gpm gtk imlib ipv6 java jp2 jpeg junit krb4 ldap libwww lzw lzw-tiff mad motif
mp3 ncurses nls oggvorbis opengl oss pam perl png posix python qt readline ssl
svg symlink tcpd tetex tiff truetype truetype-fonts type1-fonts usb userlocales
xml xml2 xpm xrandr xsl xv zlib&quot;
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>astinus@gentoo.org</who>
            <bug_when>2005-03-28 10:41:29 0000</bug_when>
            <thetext>Please let me know if this is still a problem under Gentoo 2005.0</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>infested@optonline.net</who>
            <bug_when>2005-04-04 23:57:02 0000</bug_when>
            <thetext>It still segfaults for me under Gentoo 2005.0 on version 0.6.0-r1 but I&apos;m not sure how to display all of that fancy backtrace info.  I can give you my emerge info, though.

It throws out a billion XMLHelper errors and then explodes saying:
exit(EXIT_FAILURE);
Segmentation fault

Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 17 2005, 13:16:43)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=athlon64 -O3 -pipe -funroll-loops -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=athlon64 -O3 -pipe -funroll-loops -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks fixpackages sandbox&quot;
GENTOO_MIRRORS=&quot;http://gentoo.ccccom.com http://mirror.usu.edu/mirrors/gentoo/ ftp://gentoo.ccccom.com http://gentoo.llarian.net/ http://gentoo.chem.wisc.edu/gentoo/&quot;
LANG=&quot;en_US.UTF-8&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;amd64 X acl acpi alsa apm avi bitmap-fonts bmp canna cddb cdparanoia cdr cjk crypt cups curl dvd dvdread encode font-server fortran gcj gif gtk gtk2 imagemagick imlib java jp2 jpeg lcms live lzw lzw-tiff mad mp3 mpeg ncurses nls nodroproot nptl oggvorbis opengl pam pcre perl pic png pnp python readline rtc samba sdl ssl tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xml xml2 xpm xrandr xv xvid zlib&quot;
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ornati@fastwebnet.it</who>
            <bug_when>2005-04-25 03:19:37 0000</bug_when>
            <thetext>Same problem here.

emerge --info

Gentoo Base System version 1.4.16
Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11.7 x86_64)
=================================================================
System uname: 2.6.11.7 x86_64 AMD Athlon(tm) 64 Processor 3200+
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 21 2005, 22:32:03)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=athlon64 -O2 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=athlon64 -O2 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks sandbox&quot;
GENTOO_MIRRORS=&quot;http://gentoo.inode.at&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;amd64 16bit X a52 aac acpi4linux alsa asm audiofile avi bash-completion blender-game bzip2 ccache cdda cdparanoia codecs cscope css cups dpms dv dvd dvdr dvdread emacs emul-linux encode fame ffmpeg freetype ftp gimp gimpprint glut gnome gpm gstreamer gtk gtk2 java jpeg lm_sensors mikmod mmap mp3 mpeg mpeg4 mplayer multilib ncurses nls nptl nptlonly oggvorbis opengl pam pdflib png rtc sdl tcpd truetype truetype-fonts userlocales utf8 xvid&quot;
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>metalgod@gentoo.org</who>
            <bug_when>2005-07-22 11:46:56 0000</bug_when>
            <thetext>I can confirm it segfaults here is my gdb output

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912510348704 (LWP 23730)]
0x0000003a4c872ae3 in memcpy () from /lib/tls/libc.so.6
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jimlaflin@gmail.com</who>
            <bug_when>2005-07-22 17:56:38 0000</bug_when>
            <thetext>Same here

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 30255)]
0x00002aaaac143593 in memcpy () from /lib/libc.so.6

emerge --info follows
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.5-r0,
2.6.12-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=athlon64 -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/splash /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=athlon64 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://gentoo.blueyonder.co.uk&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X aac alsa amarok amd64 avi berkdb bitmap-fonts cdb cdr crypt cups curl doc
dvd dvdr encode fam foomaticdb fortran gif gphoto2 gpm gstreamer gtk gtk2
imagemagick imlib ipv6 java jpeg junit kde lm_sensors lzw lzw-tiff mad mp3 mpeg
msn ncurses nls nocd nvidia opengl pam pdflib perl png python qt quicktime
readline real sdl spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts
usb userlocales v4l vcd xine xml2 xmms xpm xv zlib userland_GNU kernel_linux
elibc_glibc&quot;
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2005-08-17 11:14:34 0000</bug_when>
            <thetext>I have the same problem:
http://bugs.gentoo.org/show_bug.cgi?id=99942</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2005-08-17 11:28:53 0000</bug_when>
            <thetext>*** Bug 99942 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2005-09-05 10:38:18 0000</bug_when>
            <thetext>It seems that pingus only crash if you are using gcc 3.4.
I have tried to compile pingus without gcc34 patch (bug 63773) but it doesn</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2005-09-05 10:38:18 0000</bug_when>
            <thetext>It seems that pingus only crash if you are using gcc 3.4.
I have tried to compile pingus without gcc34 patch (bug 63773) but it doesn´t
compile :(

Any ideas?

Thanks and sorry my poor english</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2005-09-06 10:19:14 0000</bug_when>
            <thetext>About patches applied to pingus 0.6 sources.

There are two patches: pingus-0.6.0-gcc3.patch and pingus-0.6.0-gcc34.patch.

Their content is the following.
________
pingus-0.6.0-gcc3.patch
________

Pingus uses assert() but never includes assert.h, boo !

http://bugs.gentoo.org/show_bug.cgi?id=28281

--- pingus-0.6.0/src/blitter.cxx
+++ pingus-0.6.0/src/blitter.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;config.h&gt;
 #include &lt;stdio.h&gt;
 #include &quot;pingus_error.hxx&quot;
--- pingus-0.6.0/src/col_map.cxx
+++ pingus-0.6.0/src/col_map.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;iostream&gt;
 #include &lt;ClanLib/Display/SurfaceProviders/canvas.h&gt;
 #include &quot;gui/graphic_context.hxx&quot;
--- pingus-0.6.0/src/console.cxx
+++ pingus-0.6.0/src/console.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;config.h&gt;
 #include &lt;ClanLib/Display/Display/display.h&gt;
 #include &lt;ClanLib/Display/Font/font.h&gt;
--- pingus-0.6.0/src/demo_recorder.cxx
+++ pingus-0.6.0/src/demo_recorder.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;time.h&gt;
 #include &lt;iostream&gt;
 #include &quot;system.hxx&quot;
--- pingus-0.6.0/src/editor/generic_property_frame.cxx
+++ pingus-0.6.0/src/editor/generic_property_frame.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;iostream&gt;
 #include &lt;ClanLib/GUI/label.h&gt;
 #include &lt;ClanLib/GUI/inputbox.h&gt;
--- pingus-0.6.0/src/gui/root_gui_manager.cxx
+++ pingus-0.6.0/src/gui/root_gui_manager.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &quot;root_gui_manager.hxx&quot;
 #include &quot;../input/controller.hxx&quot;
 
--- pingus-0.6.0/src/pingu_holder.cxx
+++ pingus-0.6.0/src/pingu_holder.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;iostream&gt;
 #include &quot;pingu_holder.hxx&quot;
 #include &quot;pingu.hxx&quot;
--- pingus-0.6.0/src/savegame_manager.cxx
+++ pingus-0.6.0/src/savegame_manager.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;iostream&gt;
 #include &lt;fstream&gt;
 #include &quot;system.hxx&quot;
--- pingus-0.6.0/src/worldmap/dot.cxx
+++ pingus-0.6.0/src/worldmap/dot.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;iostream&gt;
 #include &quot;../xml_file_reader.hxx&quot;
 #include &quot;dot.hxx&quot;
--- pingus-0.6.0/src/worldmap/graph.hxx
+++ pingus-0.6.0/src/worldmap/graph.hxx
@@ -20,6 +20,8 @@
 #ifndef HEADER_GRAPH_HXX
 #define HEADER_GRAPH_HXX
 
+#include &lt;assert.h&gt;
 #include &lt;algorithm&gt;
 #include &lt;vector&gt;
+#include &lt;iostream&gt;
 
______________________________________________________________________

pingus-0.6.0-gcc34.patch
___________

Make sure we type the cast properly.

http://bugs.gentoo.org/show_bug.cgi?id=63773

--- src/story_screen.cxx
+++ src/story_screen.cxx
@@ -142,7 +142,7 @@
 
   if (!page_displayed_completly)
     {
-      unsigned int len = static_cast&lt;unsigned int&gt;(20.0f * time_passed);
+      size_t len = static_cast&lt;size_t&gt;(20.0f * time_passed);
       display_text = current_page.text.substr(0,
Math::min(current_page.text.length(), len));
 
       if (current_page.text.length() &lt; len)
______________

I have simplified pingus-0.6.0-gcc3.patch:

______
pingus-0.6.0-gcc3.patch
______

Pingus uses assert() but never includes assert.h, boo !

http://bugs.gentoo.org/show_bug.cgi?id=28281

--- pingus-0.6.0/src/worldmap/graph.hxx
+++ pingus-0.6.0/src/worldmap/graph.hxx
@@ -20,6 +20,8 @@
 
+#include &lt;assert.h&gt;
 #include &lt;algorithm&gt;
 #include &lt;vector&gt;
+#include &lt;iostream&gt;
_______________

Whith the gcc34 patch and the simplified gcc3 patch, pingus compiles succesfully
but it still crashing with the same error :(. I think that the problem would be
the grah.hxx patch (in gcc3 patch), but, if I don</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2005-09-06 10:19:14 0000</bug_when>
            <thetext>About patches applied to pingus 0.6 sources.

There are two patches: pingus-0.6.0-gcc3.patch and pingus-0.6.0-gcc34.patch.

Their content is the following.
________
pingus-0.6.0-gcc3.patch
________

Pingus uses assert() but never includes assert.h, boo !

http://bugs.gentoo.org/show_bug.cgi?id=28281

--- pingus-0.6.0/src/blitter.cxx
+++ pingus-0.6.0/src/blitter.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;config.h&gt;
 #include &lt;stdio.h&gt;
 #include &quot;pingus_error.hxx&quot;
--- pingus-0.6.0/src/col_map.cxx
+++ pingus-0.6.0/src/col_map.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;iostream&gt;
 #include &lt;ClanLib/Display/SurfaceProviders/canvas.h&gt;
 #include &quot;gui/graphic_context.hxx&quot;
--- pingus-0.6.0/src/console.cxx
+++ pingus-0.6.0/src/console.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;config.h&gt;
 #include &lt;ClanLib/Display/Display/display.h&gt;
 #include &lt;ClanLib/Display/Font/font.h&gt;
--- pingus-0.6.0/src/demo_recorder.cxx
+++ pingus-0.6.0/src/demo_recorder.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;time.h&gt;
 #include &lt;iostream&gt;
 #include &quot;system.hxx&quot;
--- pingus-0.6.0/src/editor/generic_property_frame.cxx
+++ pingus-0.6.0/src/editor/generic_property_frame.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;iostream&gt;
 #include &lt;ClanLib/GUI/label.h&gt;
 #include &lt;ClanLib/GUI/inputbox.h&gt;
--- pingus-0.6.0/src/gui/root_gui_manager.cxx
+++ pingus-0.6.0/src/gui/root_gui_manager.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &quot;root_gui_manager.hxx&quot;
 #include &quot;../input/controller.hxx&quot;
 
--- pingus-0.6.0/src/pingu_holder.cxx
+++ pingus-0.6.0/src/pingu_holder.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;iostream&gt;
 #include &quot;pingu_holder.hxx&quot;
 #include &quot;pingu.hxx&quot;
--- pingus-0.6.0/src/savegame_manager.cxx
+++ pingus-0.6.0/src/savegame_manager.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;iostream&gt;
 #include &lt;fstream&gt;
 #include &quot;system.hxx&quot;
--- pingus-0.6.0/src/worldmap/dot.cxx
+++ pingus-0.6.0/src/worldmap/dot.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include &lt;assert.h&gt;
 #include &lt;iostream&gt;
 #include &quot;../xml_file_reader.hxx&quot;
 #include &quot;dot.hxx&quot;
--- pingus-0.6.0/src/worldmap/graph.hxx
+++ pingus-0.6.0/src/worldmap/graph.hxx
@@ -20,6 +20,8 @@
 #ifndef HEADER_GRAPH_HXX
 #define HEADER_GRAPH_HXX
 
+#include &lt;assert.h&gt;
 #include &lt;algorithm&gt;
 #include &lt;vector&gt;
+#include &lt;iostream&gt;
 
______________________________________________________________________

pingus-0.6.0-gcc34.patch
___________

Make sure we type the cast properly.

http://bugs.gentoo.org/show_bug.cgi?id=63773

--- src/story_screen.cxx
+++ src/story_screen.cxx
@@ -142,7 +142,7 @@
 
   if (!page_displayed_completly)
     {
-      unsigned int len = static_cast&lt;unsigned int&gt;(20.0f * time_passed);
+      size_t len = static_cast&lt;size_t&gt;(20.0f * time_passed);
       display_text = current_page.text.substr(0,
Math::min(current_page.text.length(), len));
 
       if (current_page.text.length() &lt; len)
______________

I have simplified pingus-0.6.0-gcc3.patch:

______
pingus-0.6.0-gcc3.patch
______

Pingus uses assert() but never includes assert.h, boo !

http://bugs.gentoo.org/show_bug.cgi?id=28281

--- pingus-0.6.0/src/worldmap/graph.hxx
+++ pingus-0.6.0/src/worldmap/graph.hxx
@@ -20,6 +20,8 @@
 
+#include &lt;assert.h&gt;
 #include &lt;algorithm&gt;
 #include &lt;vector&gt;
+#include &lt;iostream&gt;
_______________

Whith the gcc34 patch and the simplified gcc3 patch, pingus compiles succesfully
but it still crashing with the same error :(. I think that the problem would be
the grah.hxx patch (in gcc3 patch), but, if I don´t apply this patch, pingus
doesn&apos;t compile :(
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2005-09-06 10:36:09 0000</bug_when>
            <thetext>I will try to use a debian patch for pingus
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2005-09-15 10:43:56 0000</bug_when>
            <thetext>I have compiled the pingus tarball from debian
(http://packages.debian.org/unstable/games/pingus) with the debian patch and the
gcc34 patch from gentoo and it fails with the same error (?).
Does it need another patch for solve the problem or the gentoo gcc34 patch is
breaking pingus?

____

I think that pingus should be marked as testing until the bug is fixed, but it
is only an opinion...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2005-09-28 09:58:42 0000</bug_when>
            <thetext>Is there anybody that runs pingus on amd64 succesfully?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>blubb@gentoo.org</who>
            <bug_when>2005-10-08 06:59:23 0000</bug_when>
            <thetext>(In reply to comment #11)
&gt; I think that pingus should be marked as testing until the bug is fixed, but it
&gt; is only an opinion...

i completely removed the keyword for now</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2005-10-10 05:26:06 0000</bug_when>
            <thetext>I have tried to compile using pingus suse src rpms with its patches and I have 
the same problem.
I think that is a problem with gcc 3.4</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>blubb@gentoo.org</who>
            <bug_when>2006-01-20 07:45:27 0000</bug_when>
            <thetext>if it&apos;s a problem with gcc-3.4, it&apos;s better assigned to the maintainers</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2006-01-20 07:51:14 0000</bug_when>
            <thetext>It works fine for me on x86 with gcc34 so I&apos;d like someone with an amd64 to try out  and commit the patches.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>blubb@gentoo.org</who>
            <bug_when>2006-01-20 08:04:51 0000</bug_when>
            <thetext>oh well, back to amd64 then :/</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chutzpah@gentoo.org</who>
            <bug_when>2006-02-02 14:12:50 0000</bug_when>
            <thetext>This seems to be an upstream issue, it&apos;s crashing for me too.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2006-02-03 05:26:58 0000</bug_when>
            <thetext>On what machine are you trying to run it?

Thanks</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>deltacow@gentoo.org</who>
            <bug_when>2006-02-03 05:47:55 0000</bug_when>
            <thetext>The problem with this is not pingus I think...rather it is clanlib.  Look at the similarity in the bactrace here to comment #16 of bug #64522.  My guess is that this is a sometimes-present 64bit issue in the earlier versions of clanlib.  The new clanlib has removed the SubBlitter_Transparent and several other functions in the similar section of the API (which unfortunately breaks compatibility for both clanbomber and pingus...).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>deltacow@gentoo.org</who>
            <bug_when>2006-04-06 12:57:15 0000</bug_when>
            <thetext>Okay, at this point then closing this as UPSTREAM and I&apos;ve filed a bug with the pingus devs http://savannah.nongnu.org/bugs/index.php?func=detailitem&amp;item_id=16289 although I&apos;m not holding out a lot of hope for a quick solution (upstream looks inactive).</thetext>
          </long_desc>
      
    </bug>

</bugzilla>