I am running RedHat WS 4 Linux 64bit with a dual processor. However after a recent update my OpenGL code written in C++ no longer runs. I get the following error:
/usr/X11R6/lib64/libGL.a(glthread.o)(.text+0x17): In function _glthread_InitTSD ': : undefined reference to pthread_key_create’
/usr/X11R6/lib64/libGL.a(glthread.o)(.text+0x55): In function _glthread_GetTSD' : : undefined reference to pthread_getspecific’
/usr/X11R6/lib64/libGL.a(glthread.o)(.text+0x96): In function _glthread_SetTSD' : : undefined reference to pthread_setspecific’
/usr/X11R6/lib64/libGL.a(glxext.o)(.text+0x15): In function __glXGetCurrentCont ext': : undefined reference to pthread_key_create’
/usr/X11R6/lib64/libGL.a(glxext.o)(.text+0x37): In function __glXGetCurrentCont ext': : undefined reference to pthread_getspecific’
/usr/X11R6/lib64/libGL.a(glxext.o)(.text+0x78): In function __glXSetCurrentCont ext': : undefined reference to pthread_key_create’
/usr/X11R6/lib64/libGL.a(glxext.o)(.text+0x68): In function __glXSetCurrentCont ext': : undefined reference to pthread_setspecific’
/usr/X11R6/lib64/libGL.a(glxext.o)(.text+0x8e): In function __glXSetCurrentCont ext': : undefined reference to pthread_setspecific’
collect2: ld returned 1 exit status
make: *** [SS] Error 1
I think the machine has an nvidia card, but am not sure. How can I tell? I have tried also running the Nvidia update but it complains that I am running x-windows.
a) open the casing and take a look inside
b) log in as root, open a shell and type lspci.
if you want to install the nvidia driver, you’ll
have to shutdown x-windows. when the installation
was successful, you can start x again without rebooting.
did you try to see if glx is installed ? also is it listed in you X configuration file ?
also, what does glxinfo tells you ? also check what the x log tells.
login as root, open a shell, type ‘init 3’
this should stop the display manager and take you
to the text console. when you’re there, you’ll
have to log in again (as root), before you can
start the installation.
when you’re done, type ‘init 5’. this should start the display manager again. or, as a last resort,
‘shutdown -r now’. this will reboot the computer.
it could be a good idea to setup your system not to start the display manager after booting.
unfortunately, i don’t know how to do this in redhat. i have suse 10.0, in which you can start
a runlevel editor, which determines in which
runlevel the system is started.