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)
Created attachment 8988 [details] cannonsmash-0.6.5-r1.ebuild Only added the sed line...
The fix is very simple. Only added the sed line to rip of the "printf" debug message bugged...
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
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
ok, added patch to cvs