Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 75702

Summary: crystalspace-0.98.4 fails to compile
Product: Gentoo Linux Reporter: Tom Wesley <tom>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Compilation log
diff to change typedef to match nvidia's headers
patch against ebuild to use the above

Description Tom Wesley 2004-12-26 07:04:36 UTC
Crystalspace fails to compile with the attached output.

tom CS # emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r12 i686)
=================================================================
System uname: 2.6.9-gentoo-r12 i686 AMD Athlon(tm) MP 2400+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Nov  6 2004, 22:58:27)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r1, 1.9.3, 1.8.5-r2, 1.4_p6, 1.6.3, 1.7.9
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-mp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-mp -O2 -pipe"
DISTDIR="/usr/portage-distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.tiscali.nl/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.mirror.sdv.fr ftp://ftp.tiscali.nl/pub/mirror/gentoo http://mir.zyrianes.net/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage-packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dfx 3dnow X acl alsa apm avi berkdb bitmap-fonts cdr crypt cups dga dvd dvdr eds encode evo fam foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 java jikes jpeg ldap libwww mad mikmod mmx motif mozilla moznocompose moznoirc moznomail mpeg mysql ncurses network nls nntp nptl offensive oggvorbis opengl oss pam pda pdflib perl png python quicktime readline sdl slang smime spell ssl svga tcltk tcpd tetex tiff truetype unicode xine xml2 xv zlib linguas_en_GB"
Comment 1 Tom Wesley 2004-12-26 07:05:05 UTC
Created attachment 46900 [details]
Compilation log
Comment 2 SpanKY gentoo-dev 2004-12-26 14:03:30 UTC
what version of xorg-x11 ?

you're using xorg-x11's opengl instead of nvidia right ?
Comment 3 Tom Wesley 2004-12-26 14:06:55 UTC
Sorry, should've mentioned:  xorg is at 6.8.0-r4 and I'm be using nvidia's glx files.
Comment 4 SpanKY gentoo-dev 2004-12-26 18:34:18 UTC
did you try `opengl-update nvidia` before emerging crystalspace ?

i'm using nvidia 6629 and i'm not having any problems ...
Comment 5 Tom Wesley 2004-12-27 01:52:29 UTC
Just tried that and am getting exactly the same.  Any other ideas?  Was kinda looking forward to wasting some holiday time in planeshift ;)
Comment 6 Tom Wesley 2004-12-27 04:26:44 UTC
Strange that it works for you.  Are you using a gcc version lower than 3.4.3?  It seems there is a typedef that differs from the one in nvidia's headers.  I've created a patch that makes it work for me, but probably breaks it for people not using nvidia...
Comment 7 Tom Wesley 2004-12-27 04:27:23 UTC
Created attachment 46954 [details, diff]
diff to change typedef to match nvidia's headers
Comment 8 Tom Wesley 2004-12-27 04:27:43 UTC
Created attachment 46955 [details, diff]
patch against ebuild to use the above
Comment 9 SpanKY gentoo-dev 2004-12-27 15:14:56 UTC
nope, using gcc-3.4.3-r1
Comment 10 SpanKY gentoo-dev 2004-12-27 15:48:08 UTC
mmm just re-emerged some packages and i can reproduce now ... i'll check out the patches
Comment 11 SpanKY gentoo-dev 2004-12-27 17:51:27 UTC
added a similar patch to cvs ... tested with nvidia and xorg-x11 header files

thanks for the patch