Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69647 - freelords-0.3.3 won't compile, error in ObjectList.cpp
Summary: freelords-0.3.3 won't compile, error in ObjectList.cpp
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-31 11:08 UTC by Paul Hartman
Modified: 2004-11-10 22:13 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Hartman 2004-10-31 11:08:31 UTC
i686-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"freelords\" -DVERSION=\"0.3.3\" -DHAVE_LIBSDL_IMAGE=1 -DHAVE_LIBEXPAT=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1  -I. -I. -I/usr/include/paragui -I/usr/include/freetype2 -I/usr/include/SDL -D_REENTRANT -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2   -DFREELORDS_DATADIR='"/usr/share/games/freelords"' -Iserver   -O -Wall -DPO_PATH=\"/usr/share/locale/\" -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -c -o stacklist.o stacklist.cpp
ObjectList.cpp: In member function `T* ObjectList<T>::getObjectAt(int, int)':
ObjectList.cpp:30: error: there are no arguments to `begin' that depend on a template parameter, so a declaration of `begin' must be available
ObjectList.cpp:30: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
ObjectList.cpp:30: error: there are no arguments to `end' that depend on a template parameter, so a declaration of `end' must be available
make[2]: *** [ObjectList.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/freelords-0.3.3/work/freelords-0.3.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/freelords-0.3.3/work/freelords-0.3.3/src'
make: *** [all-recursive] Error 1

!!! ERROR: games-strategy/freelords-0.3.3 failed.
!!! Function src_compile, Line 46, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. emerge -uD freelords


Actual Results:  
error compiling freelords

Expected Results:  
no errors

Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041021-r0,
2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.4
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/NX/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.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/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X aalib aim alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bonobo
cdparanoia cdr codecs crypt cups curl curlwrappers directfb dvd dvdr dvdread
encode esd ethereal evo exif f77 flac flash foomaticdb ftp gd gdbm gif gnome
gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib innodb
jabber java jikes joystick jpeg kde libg++ libwww mad mikmod mime mmx mng motif
mozilla mpeg msn mysql mysqli ncurses network nls nptl nvidia offensive
oggvorbis opengl oscar oss pam pdflib perl png postgres python qt readline samba
scanner sdl slang sndfile spell sse ssl svg svga tcltk tcpd tidy tiff truetype
usb videos wmf x86 xml2 xmms xpm xv xvid yahoo zlib"
Comment 1 Bryan Duff 2004-11-03 13:32:24 UTC
Have you tried simpler CFLAGS, like "-O2 -march=pentium4"?
Comment 2 Bryan Duff 2004-11-03 13:40:01 UTC
You may want to try the freelords-0.3.4 ebuild filed in bugzilla (although by my own testing it fails to run with gcc-3.4.2 - but it compiles).  It may be an issue with paragui.
Comment 3 Paul Hartman 2004-11-10 22:13:02 UTC
Some combination of updated packages seems to have done the job, I am able to successfully emerge (and play) freelords now.