Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47366 - ode-0.0.39 fails to compile - drawstuff.cpp error
Summary: ode-0.0.39 fails to compile - drawstuff.cpp error
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-04-09 10:29 UTC by adam stokes
Modified: 2004-04-09 21:02 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 adam stokes 2004-04-09 10:29:10 UTC
trying to emerge scorched3d, it trys to install ode-0.0.39 and emake failes on compile.

Reproducible: Always
Steps to Reproduce:
1. emerge scorched3d
2.
3.




drawstuff/src/drawstuff.cpp: In function `void dsDrawCappedCylinder(const
   float*, const float*, float, float)':
drawstuff/src/drawstuff.cpp:1345: error: `glShadeModel' cannot be used as a
   function
drawstuff/src/drawstuff.cpp:1357: error: `glDepthRange' cannot be used as a
   function
drawstuff/src/drawstuff.cpp: In function `void dsDrawLine(const float*, const
   float*)':
drawstuff/src/drawstuff.cpp:1365: error: `glColor3f' cannot be used as a
   function
drawstuff/src/drawstuff.cpp:1366: error: `glDisable' cannot be used as a
   function
drawstuff/src/drawstuff.cpp:1367: error: `glLineWidth' undeclared (first use
   this function)
drawstuff/src/drawstuff.cpp:1368: error: `glShadeModel' cannot be used as a
   function
drawstuff/src/drawstuff.cpp:1369: error: `GL_LINES' undeclared (first use this
   function)
drawstuff/src/drawstuff.cpp:1369: error: `glBegin' cannot be used as a function
drawstuff/src/drawstuff.cpp:1370: error: `glVertex3f' undeclared (first use
   this function)
drawstuff/src/drawstuff.cpp: In function `void
   __static_initialization_and_destruction_0(int, int)':
drawstuff/src/drawstuff.cpp:1066: warning: statement with no effect
drawstuff/src/drawstuff.cpp: At top level:
drawstuff/src/drawstuff.cpp:283: warning: `int tnum' defined but not used
drawstuff/src/drawstuff.cpp:289: warning: `void setCamera(float, float, float,
   float, float, float)' defined but not used
drawstuff/src/drawstuff.cpp:473: warning: `int index[20][3]' defined but not
   used
drawstuff/src/drawstuff.cpp:850: warning: `void drawSky(float*)' defined but
   not used
drawstuff/src/drawstuff.cpp:1048: warning: `int drawGround()' defined but not
   used
drawstuff/src/drawstuff.cpp:1051: warning: `int drawPyramidGrid()' defined but
   not used
make: *** [drawstuff/src/drawstuff.o] Error 1
 
!!! ERROR: dev-games/ode-0.039 failed.
!!! Function src_compile, Line 25, Exitcode 2
!!! emake failed
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-04-09 11:35:57 UTC
Remember to include the output of emerge --info in your bug reports as requested
on the bug submission page.  Thanks.
Comment 2 adam stokes 2004-04-09 11:40:35 UTC
Portage 2.0.50-r3 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4)
=================================================================
System uname: 2.6.4 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
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/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://212.219.247.16/sites/www.ibiblio.org/gentoo/ http://212.219.247.18/sites/www.ibiblio.org/gentoo/ http://mirror.tucdemonic.org/gentoo/ http://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-04-09 15:58:34 UTC
What opengl are you using.  ode compiles fine with nvidia stuff here.
Comment 4 adam stokes 2004-04-09 18:12:43 UTC
i have installed the latest nvidia drivers from their website
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2004-04-09 18:18:01 UTC
sounds like you installed them by hand.
Comment 6 adam stokes 2004-04-09 18:57:15 UTC
well yea i wanted the latest nvidia drivers and they weren't in portage is this a problem with getting ode to compile correctly?
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2004-04-09 19:03:40 UTC
Well, the errors you posted make me think your opengl setup is screwed up somehow.
Combined with the fact that we have nearly the same setup otherwise, I'm
pretty sure that has something to do with it.  I recommend you uninstall
your hand-installed nvidia stuff and stick with the 4xxx series of the
nvidia drivers which are the stable ones at this time.  Be sure to
run opengl-update nvidia when you're done with that.
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2004-04-09 19:21:42 UTC
Also... the latest ~arch drivers in portage are quite stable.

You could always try an "ACCEPT_KEYWODS=~x86 emerge nvidia-kernel nvidia-glx" to get the newest drivers then try ode again.
Comment 9 adam stokes 2004-04-09 20:49:30 UTC
yea installing the drivers from portage for nvidia fixed the problem, not sure why that is making a difference though :( thanks guys
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2004-04-09 21:02:03 UTC
Great, glad things are working for you.