Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16903 - cannonsmash-0.6.5-r1 fixes the loadparts.cpp
Summary: cannonsmash-0.6.5-r1 fixes the loadparts.cpp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-05 11:00 UTC by Bernardo S. A. Silva
Modified: 2003-03-09 20:42 UTC (History)
0 users

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


Attachments
cannonsmash-0.6.5-r1.ebuild (cannonsmash-0.6.5-r1.ebuild,924 bytes, application/octet-stream)
2003-03-05 11:01 UTC, Bernardo S. A. Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernardo S. A. Silva 2003-03-05 11:00:05 UTC
Hi,

 The cannonsmash, in some comfigurations, make an error while compiling. The
problem is, this error occur a lot but it is not reproduceable. 
 But, it occurs in my Gentoo. So, I decide to make an ebuild that works on both.
 This ebuild works pretty well on any Gentoo I have been tested...

   Thanx, Bernardo S. A. Silva

Reproducible: Sometimes
Steps to Reproduce:
1. emerge cannonsmash
2. wait
3. been disappointed

Actual Results:  
loadparts.cpp: In static member function `static bool parts::load_anim(int, 
   anim_parts*, int, const char**, int*)':
loadparts.cpp:433: cannot pass objects of non-POD type `struct 
   std::basic_string<char, std::char_traits<char>, std::allocator<char> >' 
   through `...'
loadparts.cpp: In member function `void polyhedron_parts::render() const':
loadparts.cpp:582: warning: unused variable `float NanTheBLACK[4]'
loadparts.cpp:583: warning: unused variable `float ManOfVirtue[4]'
make[2]: ** [loadparts.o] Erro 1
make[2]: Leaving directory `/var/tmp/portage/cannonsmash-0.6.5/work/csmash-0.6.5'
make[1]: ** [all-recursive] Erro 1
make[1]: Leaving directory `/var/tmp/portage/cannonsmash-0.6.5/work/csmash-0.6.5'
make: ** [all-recursive-am] Erro 2

!!! ERROR: app-games/cannonsmash-0.6.5 failed.
!!! Function src_compile, Line 30, Exitcode 2
!!! (no error message)
Comment 1 Bernardo S. A. Silva 2003-03-05 11:01:04 UTC
Created attachment 8988 [details]
cannonsmash-0.6.5-r1.ebuild

Only added the sed line...
Comment 2 Bernardo S. A. Silva 2003-03-05 11:02:09 UTC
The fix is very simple. Only added the sed line to rip of the "printf" debug message bugged...
Comment 3 SpanKY gentoo-dev 2003-03-05 13:10:06 UTC
please post `emerge info` ...
i didnt add the fix because i was unable to reproduce it and i wanted to open a
new report where i could gather more information about the problem
Comment 4 Bernardo S. A. Silva 2003-03-09 12:23:17 UTC
Hi,

emerge info:

Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) XP 1700+
GENTOO_MIRRORS=" ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm avi crypt cups encode gif jpeg libg++ mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gdbm berkdb slang readline arts tetex aalib svga tcltk mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt motif mozilla cdr -kde -gnome java 3dnow mmx sse opengl dvd alsa"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -mmmx -m3dnow -msse -fomit-frame-pointer"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

And this bug is quite reproduceable with this options (my friend has an machine identical and installs gentoo).

   Thanx, Bernardo S. A. Silva
Comment 5 SpanKY gentoo-dev 2003-03-09 20:42:06 UTC
ok, added patch to cvs