Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101903 - scorched3d-39 fails to compile
Summary: scorched3d-39 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-09 14:43 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2005-08-09 20:37 UTC (History)
0 users

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 Alexandre Rostovtsev (RETIRED) gentoo-dev 2005-08-09 14:43:20 UTC
Scorched3d-39 fails to compile because it can't resolve the wxString
constructor. For what it's worth, I have wxGTK-2.4.2-r3 (USE="-debug +gtk2 +odbc
+opengl +unicode -wxgtk1") and wxGTK-2.6.1 (USE="-debug +doc +gnome +gtk2
-joystick +odbc +opengl +sdl +unicode -wxgtk1").

Reproducible: Always
Steps to Reproduce:
1. emerge =scorched3d-39

Actual Results:  
i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"scorched3d\" -DVERSION=\"39\" -DHAVE_MYSQL=1  -I. -I. -I../porting
-I..   -I/usr/X11R6/include -I/usr/X11R6 -I/usr/local/include
-I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -march=athlon-xp -O2 -pipe
-frename-registers -fomit-frame-pointer  -I/usr/include/SDL -D_REENTRANT  
-I/usr/include/freetype2 -DS3D_DOCDIR=\"/usr/share/doc/scorched3d-39\"
-DS3D_DATADIR=\"/usr/share/games/scorched3d\" -DS3D_BINDIR=\"/usr/games/bin\"
-DdDOUBLE -c -o GLGif.o `test -f '../GLEXT/GLGif.cpp' || echo
'./'`../GLEXT/GLGif.cpp
i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"scorched3d\" -DVERSION=\"39\" -DHAVE_MYSQL=1  -I. -I. -I../porting
-I..   -I/usr/X11R6/include -I/usr/X11R6 -I/usr/local/include
-I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -march=athlon-xp -O2 -pipe
-frename-registers -fomit-frame-pointer  -I/usr/include/SDL -D_REENTRANT  
-I/usr/include/freetype2 -DS3D_DOCDIR=\"/usr/share/doc/scorched3d-39\"
-DS3D_DATADIR=\"/usr/share/games/scorched3d\" -DS3D_BINDIR=\"/usr/games/bin\"
-DdDOUBLE -c -o GLImage.o `test -f '../GLEXT/GLImage.cpp' || echo
'./'`../GLEXT/GLImage.cpp
i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"scorched3d\" -DVERSION=\"39\" -DHAVE_MYSQL=1  -I. -I. -I../porting
-I..   -I/usr/X11R6/include -I/usr/X11R6 -I/usr/local/include
-I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -march=athlon-xp -O2 -pipe
-frename-registers -fomit-frame-pointer  -I/usr/include/SDL -D_REENTRANT  
-I/usr/include/freetype2 -DS3D_DOCDIR=\"/usr/share/doc/scorched3d-39\"
-DS3D_DATADIR=\"/usr/share/games/scorched3d\" -DS3D_BINDIR=\"/usr/games/bin\"
-DdDOUBLE -c -o GLInfo.o `test -f '../GLEXT/GLInfo.cpp' || echo
'./'`../GLEXT/GLInfo.cpp
i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"scorched3d\" -DVERSION=\"39\" -DHAVE_MYSQL=1  -I. -I. -I../porting
-I..   -I/usr/X11R6/include -I/usr/X11R6 -I/usr/local/include
-I/usr/lib/wx/include/gtk2u-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -march=athlon-xp -O2 -pipe
-frename-registers -fomit-frame-pointer  -I/usr/include/SDL -D_REENTRANT  
-I/usr/include/freetype2 -DS3D_DOCDIR=\"/usr/share/doc/scorched3d-39\"
-DS3D_DATADIR=\"/usr/share/games/scorched3d\" -DS3D_BINDIR=\"/usr/games/bin\"
-DdDOUBLE -c -o GLLenseFlare.o `test -f '../GLEXT/GLLenseFlare.cpp' || echo
'./'`../GLEXT/GLLenseFlare.cpp
../GLEXT/GLGif.cpp: In member function `bool GLGif::loadFromFile(const char*)':
../GLEXT/GLGif.cpp:50: error: call of overloaded `wxString(const char*&)' is
ambiguous
/usr/include/wx/string.h:323: note: candidates are: wxString::wxString(const
wxWCharBuffer&) <near match>
/usr/include/wx/string.h:306: note:                 wxString::wxString(wxChar,
size_t) <near match>
/usr/include/wx/string.h:291: note:                 wxString::wxString(const
wxString&) <near match>
/usr/include/wx/string.h:284: note:                 wxString::wxString(int)
<near match>
make[2]: *** [GLGif.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/scorched3d-39/work/scorched/src/scorched'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/scorched3d-39/work/scorched/src'
make: *** [all-recursive] Error 1

Expected Results:  
successful emerge

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4-vanilla,
glibc-2.3.5-r1, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.0_pre3
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.1-r2
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -frename-registers -fomit-frame-pointer "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -frename-registers -fomit-frame-pointer "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-mirror.internap.com/pub/gentoo/
http://mirror.datapipe.net/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.osuosl.org"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac aalib acl acpi adns aim alsa apache2 apm arts avi
bash-completion berkdb bitmap-fonts bonobo cdr cjk cmucl crypt cscope cups curl
dbus dnd doc dumb-allegro dvd dvdr editor eds emacs emboss encode erandom esd
ethereal evo fam fbcon ffmpeg fftw flac foomaticdb fortran gd gdbm ggi gif gnome
gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal hardened howl ieee1394
imagemagick imlib ipv6 ithreads jack java jce jpeg junit kde kerberos lcms ldap
libg++ libwww lirc mad mbox mikmod mmx mng mono motif mozdevelop mozilla
moznocompose moznoirc moznomail mozxmlterm mp3 mpeg mule mysql nas ncurses nls
nntp nptl oav odbc ogg oggvorbis opengl opie oss pam pcre pda pdflib perl pic
plotutils png postgres python qt quicktime readline samba scanner sdl slang slp
snmp speex spell sqlite sse ssl svg tcltk tcpd tetex threads tiff truetype
truetype-fonts type1-fonts unicode usb vorbis win32codecs wmf xface xine
xinerama xml xml2 xmms xprint xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-08-09 15:12:25 UTC
resync and try it again.
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2005-08-09 16:36:32 UTC
Resynced, now another problem comes up, this time in mysql logging support:

i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"scorched3d\" -DVERSION=\"39\" -DHAVE_MYSQL=1  -I. -I. -I../porting
-I..   -I/usr/X11R6/include -I/usr/X11R6 -I/usr/local/include
-I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -march=athlon-xp -O2 -pipe
-frename-registers -fomit-frame-pointer  -I/usr/include/SDL -D_REENTRANT  
-I/usr/include/freetype2 -DS3D_DOCDIR=\"/usr/share/doc/scorched3d-39\"
-DS3D_DATADIR=\"/usr/share/games/scorched3d\" -DS3D_BINDIR=\"/usr/games/bin\"
-DdDOUBLE -c -o StatsLoggerFile.o `test -f '../common/StatsLoggerFile.cpp' ||
echo './'`../common/StatsLoggerFile.cpp
i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"scorched3d\" -DVERSION=\"39\" -DHAVE_MYSQL=1  -I. -I. -I../porting
-I..   -I/usr/X11R6/include -I/usr/X11R6 -I/usr/local/include
-I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -march=athlon-xp -O2 -pipe
-frename-registers -fomit-frame-pointer  -I/usr/include/SDL -D_REENTRANT  
-I/usr/include/freetype2 -DS3D_DOCDIR=\"/usr/share/doc/scorched3d-39\"
-DS3D_DATADIR=\"/usr/share/games/scorched3d\" -DS3D_BINDIR=\"/usr/games/bin\"
-DdDOUBLE -c -o StatsLoggerMySQL.o `test -f '../common/StatsLoggerMySQL.cpp' ||
echo './'`../common/StatsLoggerMySQL.cpp
i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"scorched3d\" -DVERSION=\"39\" -DHAVE_MYSQL=1  -I. -I. -I../porting
-I..   -I/usr/X11R6/include -I/usr/X11R6 -I/usr/local/include
-I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -march=athlon-xp -O2 -pipe
-frename-registers -fomit-frame-pointer  -I/usr/include/SDL -D_REENTRANT  
-I/usr/include/freetype2 -DS3D_DOCDIR=\"/usr/share/doc/scorched3d-39\"
-DS3D_DATADIR=\"/usr/share/games/scorched3d\" -DS3D_BINDIR=\"/usr/games/bin\"
-DdDOUBLE -c -o Triangle.o `test -f '../common/Triangle.cpp' || echo
'./'`../common/Triangle.cpp
i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"scorched3d\" -DVERSION=\"39\" -DHAVE_MYSQL=1  -I. -I. -I../porting
-I..   -I/usr/X11R6/include -I/usr/X11R6 -I/usr/local/include
-I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -march=athlon-xp -O2 -pipe
-frename-registers -fomit-frame-pointer  -I/usr/include/SDL -D_REENTRANT  
-I/usr/include/freetype2 -DS3D_DOCDIR=\"/usr/share/doc/scorched3d-39\"
-DS3D_DATADIR=\"/usr/share/games/scorched3d\" -DS3D_BINDIR=\"/usr/games/bin\"
-DdDOUBLE -c -o Vector.o `test -f '../common/Vector.cpp' || echo
'./'`../common/Vector.cpp
i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"scorched3d\" -DVERSION=\"39\" -DHAVE_MYSQL=1  -I. -I. -I../porting
-I..   -I/usr/X11R6/include -I/usr/X11R6 -I/usr/local/include
-I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -march=athlon-xp -O2 -pipe
-frename-registers -fomit-frame-pointer  -I/usr/include/SDL -D_REENTRANT  
-I/usr/include/freetype2 -DS3D_DOCDIR=\"/usr/share/doc/scorched3d-39\"
-DS3D_DATADIR=\"/usr/share/games/scorched3d\" -DS3D_BINDIR=\"/usr/games/bin\"
-DdDOUBLE -c -o VectorLib.o `test -f '../common/VectorLib.cpp' || echo
'./'`../common/VectorLib.cpp
i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"scorched3d\" -DVERSION=\"39\" -DHAVE_MYSQL=1  -I. -I. -I../porting
-I..   -I/usr/X11R6/include -I/usr/X11R6 -I/usr/local/include
-I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -march=athlon-xp -O2 -pipe
-frename-registers -fomit-frame-pointer  -I/usr/include/SDL -D_REENTRANT  
-I/usr/include/freetype2 -DS3D_DOCDIR=\"/usr/share/doc/scorched3d-39\"
-DS3D_DATADIR=\"/usr/share/games/scorched3d\" -DS3D_BINDIR=\"/usr/games/bin\"
-DdDOUBLE -c -o ASEModelFactory.o `test -f '../3dsparse/ASEModelFactory.cpp' ||
echo './'`../3dsparse/ASEModelFactory.cpp
../common/StatsLoggerMySQL.cpp: In member function `virtual char*
StatsLoggerMySQL::allocateId()':
../common/StatsLoggerMySQL.cpp:631: error: ISO C++ forbids declaration of
`possibleChars' with no type
make[2]: *** [StatsLoggerMySQL.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/scorched3d-39/work/scorched/src/scorched'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/scorched3d-39/work/scorched/src'
make: *** [all-recursive] Error 1
Comment 3 Daniel Pierce 2005-08-09 19:40:59 UTC
The author of scorched3d responded to this problem and posted the fix on the
game's forums.  The fix is to change line 631 of StatsLoggerMySQL.cpp from

const possibleChars [] = {

to

const char possibleChars [] = {
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2005-08-09 20:37:18 UTC
or set USE=-mysql

Patch is in CVS.  Reopen if you still have a problem compiling.

Thanks for the bug report and for passing along to patch.