Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58287 - games-action/shootingstar-1.2.0 fails to emerge
Summary: games-action/shootingstar-1.2.0 fails to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-25 07:13 UTC by Loz Hygate
Modified: 2004-07-26 14:53 UTC (History)
0 users

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


Attachments
Proposed patch for source (gcc34_fixes.diff,1.03 KB, patch)
2004-07-26 13:07 UTC, Loz Hygate
Details | Diff
Patch to ebuild (a.diff,474 bytes, patch)
2004-07-26 13:09 UTC, Loz Hygate
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Loz Hygate 2004-07-25 07:13:40 UTC
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"
Comment 1 Alexander Plank (RETIRED) gentoo-dev 2004-07-25 14:24:47 UTC
I changed this bug's severity to minor.
Comment 2 Loz Hygate 2004-07-25 15:01:32 UTC
Why?
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-07-25 17:41:54 UTC
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.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2004-07-25 22:02:04 UTC
Reopen when you've tried that out please.
Comment 5 Loz Hygate 2004-07-26 13:07:28 UTC
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++.
Comment 6 Loz Hygate 2004-07-26 13:09:35 UTC
Created attachment 36218 [details, diff]
Patch to ebuild
Comment 7 Loz Hygate 2004-07-26 13:10:57 UTC
See patches
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2004-07-26 14:53:32 UTC
Added to CVS.  Thanks for the bug report and patch.