/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `glXBindChannelToWindowSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `glXQueryChannelDeltasSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `glXChannelRectSyncSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `glXChannelRectSGIX'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so:
undefined reference to `glXQueryChannelRectSGIX'
collect2: ld returned 1 exit status
To fix:
Make sure Mesa is installed. Two packages:
XFree86-Mesa-libGL-4.3.0-2
XFree86-Mesa-libGLU-4.3.0-2
Make sure GLUT is installed. Two packages:
glut-3.7-12
glut-devel-3.7-12
At this point I had to bring down the GLUT source RPM and rebuild it
(glut-3.7-12.src.rpm). On install (rpm -i) it will place the
necessary file in /usr/src/redhat/SOURCES. Untar the source. There
is a linux subdirectory in glut-3.7. Follow the instructions there on
how to build a shared library.
Run some of the sample programs to make sure everything is working.
cd /usr/lib/
cp libglut.so.3.7 libglut.so.3.7.orig
cp /usr/src/redhat/SOURCES/glut-3.7/lib/glut/libglut.so.3.7 .
This will fix the problem. Link flags for a very simple application
look like:
-L/usr/X11R6/lib -lXmu -lXi -lGLU -lGL -lglut
Incidentally, this also works with the nVidia hardware driver.
Good luck,
Randy
> From a clean install intel32 / Redhat 9, I noticed that my OpenGL
> (Mesa) / GLUT applications were not linking:
Please report the bug:
http://bugzilla.redhat.com/bugzilla/
so that redhat can have a chance to fix it.
-- Rex