if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/SDL -D_REENTRANT -DHAVE_OPENGL -Wall -DDBG_ENABLED -march=athlon -O3 -pipe -g -MT cRandomND.o -MD -MP -MF ".deps/cRandomND.Tpo" \ -c -o cRandomND.o `test -f 'cRandomND.cpp' || echo './'`cRandomND.cpp; \ then mv -f ".deps/cRandomND.Tpo" ".deps/cRandomND.Po"; \ else rm -f ".deps/cRandomND.Tpo"; exit 1; \ fi cTextureFont.cpp: In member function `void ShootingStar::cTextureFont::PrintStringW(std::string, float, float)': cTextureFont.cpp:177: error: `sin' undeclared (first use this function) cTextureFont.cpp:177: error: (Each undeclared identifier is reported only once for each function it appears in.) make[3]: *** [cTextureFont.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/shootingstar-1.2.0/work/shootingstar-1.2.0/src/engine' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/shootingstar-1.2.0/work/shootingstar-1.2.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/shootingstar-1.2.0/work/shootingstar-1.2.0' make: *** [all] Error 2 !!! ERROR: games-action/shootingstar-1.2.0 failed. !!! Function games_src_compile, Line 122, Exitcode 2 !!! emake failed Reproducible: Always Steps to Reproduce: Gentoo Base System version 1.5.1 Portage 2.0.50-r9 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7) ================================================================= System uname: 2.6.7 i686 AMD Athlon(tm) Processor distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe -g" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -O3 -pipe -g" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache nostrip sandbox" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://darkstar.ist.utl.pt/pub/gentoo/" MAKEOPTS="-j5" PKGDIR="/packages/nessie" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="X aalib alsa arts avi berkdb cdr crypt cups doc dvd encode esd foomaticdb gdbm gif glut gnome gphoto2 gpm gtk gtk2 gtkhtml imlib java jpeg kde libg++ libwww mad mikmod mmx mozilla mpeg ncurses nptl oggvorbis opengl pam pdflib perl png ppd python qt quicktime readline ruby sdl slang spell ssl svga tcltk tcpd tetex tiff truetype x86 xml2 xmms xv zlib"
I changed this bug's severity to minor.
Why?
Works for me with gcc-3.3. Looks like a gcc 3.4.1 issue. Try adding math.h to the top of the file and see if that works for you.
Reopen when you've tried that out please.
Created attachment 36216 [details, diff] Proposed patch for source math.h fixed the first problem; there was a second caused by a dodgy cast. I think what I have done is marginally better (cast int to enum). I guess that really the deserialisation should check that the int is in the range of the enum, but I guess that is non-trivial in c++.
Created attachment 36218 [details, diff] Patch to ebuild
See patches
Added to CVS. Thanks for the bug report and patch.