PDA

View Full Version : Undefined references in libglut.so


garethclay
03-29-03, 07:51 AM
Hi there,

I wonder if anyone could help me out with this? I first noticed this
problem when trying to compile the kdegraphics 3.1.1 sources. It was
failing due to undefined references in libglut.so.

The compiler output, and running "ld /usr/lib/libglut.so" says:

ld: warning: cannot find entry symbol _start; not setting start address
/usr/lib/libglut.so: undefined reference to `glXBindChannelToWindowSGIX'
/usr/lib/libglut.so: undefined reference to `glXQueryChannelDeltasSGIX'
/usr/lib/libglut.so: undefined reference to `glXChannelRectSyncSGIX'
/usr/lib/libglut.so: undefined reference to `glXChannelRectSGIX'
/usr/lib/libglut.so: undefined reference to `glXQueryChannelRectSGIX'

Can anyone tell me what I can do to resolve this? I'm hoping it's just a
problem with my setup.

If it helps I have:
SourceMage GNU/Linux
Xfree86 4.3.0
nVIDIA drivers 1.0-4191
glut 3.7

Everything on my system is compiled from source.

Thanks in advance for any help you can give,
Gareth

bwkaz
03-29-03, 11:32 AM
Try glut 4.something maybe?

glX* functions are defined in libX11.so, but I'm guessing that -lX11 is already in the compile command. It is possible, therefore, that these glX...SGIX GLX extensions are not defined. Which is probably because your X wasn't compiled for SGI. ;)

So it could also be a misconfiguration of glut. If glut thinks it's running on an SGI, then it'll use those symbols. What I don't know is whether getting the newer version will fix that, or how to force it to not use those, or what. But it's worth a shot.

garethclay
03-29-03, 12:22 PM
Thanks for the reply :)

I didn't know there was a newer version than 3.7 out. I can't find it anywhere - it's not on the official glut homepage. Can you tell me where I can download it please?

bwkaz
03-29-03, 01:21 PM
Hmm, it seems I may have confused myself. I was thinking you were installing the glut part of Mesa 3.7, and I was thinking you should update to some other version of Mesa (apparently 5.0 is the latest, see http://mesa3d.sourceforge.net). The installation guide on that site says something about glut being in the MesaDemos package, so I'd forget Mesa entirely (you already have libGL, from nVidia, and libGLU, from X, so you shouldn't need it) and just build MesaDemos and its glut.