nV News Forums


nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   RedHat 9 and v. 4363 libGL: cannot handle TLS data (http://www.nvnews.net/vbulletin/showthread.php?t=10968)

beetles 04-29-03 06:51 AM

RedHat 9 and v. 4363 libGL: cannot handle TLS data
Applications using OpenGL now exit with such error:
libGL.so.1: cannot handle TLS data

I've installed latest driver NVIDIA-Linux-x86-1.0-4363.run.

What to do to make OpenGL work?

---- linux
Linux localhost 2.4.20-9 #1 Wed Apr 2 13:24:44 EST 2003 i686 athlon i386 GNU/Linux

---- glibc
GNU C Library stable release version 2.3.2, by Roland McGrath et al.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
Compiled by GNU CC version 3.2.2 20030222 (Red Hat Linux 3.2.2-5).
Compiled on a Linux 2.4.20 system on 2003-04-07.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
linuxthreads-0.10 by Xavier Leroy
The C stubs add-on version 2.1.2.
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Glibc-2.0 compatibility add-on by Cristian Gafton
libthread_db work sponsored by Alpha Processor Inc
Thread-local storage support included.

bwkaz 04-29-03 09:52 AM

Have you updated glibc at all? The version included in the U.S. boxed sets of RedHat 9 is buggy; RedHat has an update available.

beetles 04-29-03 11:45 PM

Yes, sure.
Original was glibc-2.3.2-11, latest is glibc-2.3.2-27 and it is installed.

valdis 04-30-03 02:25 PM

You might want to double-check /etc/ld.so.conf and make sure that /lib/tls and /usr/lib/tls are listed, and then re-run ldconfig.

This bit me but good, X wouldn't start if I had 'load GLX' in the XF86config file until I fixed this....

Andy Mecham 04-30-03 05:11 PM

You might also want to reinstall 1.0-4363 - it could be that the tls_test in the installer failed because of the buggy glibc, and you didn't get the tls GL libs.


beetles 05-01-03 03:23 AM

Today I have reinstalled 4363 driver.

./NVIDIA-Linux-x86-1.0-4363.run -f
installed successfully
result is: libGL.so.1: cannot handle TLS data

./NVIDIA-Linux-x86-1.0-4363.run -f --force-tls=new
installed successfully
result is: libGL.so.1: cannot handle TLS data

bwkaz 05-01-03 08:14 AM

Which GL lib is whatever program you're trying linking against? I'm not sure how the runtime linker works with TLS, but on a standard (i.e. non-TLS) Linux, the first library that it finds in its cache file will be the one it links against.

Run ldd on the program you're trying to use, and see if it's getting /usr/lib/tls/libGL.so.1 or if it's getting /usr/lib/libGL.so.1 instead.

If it's getting the latter, try adding /usr/lib/tls to the beginning of your /etc/ld.so.conf file (and run /sbin/ldconfig as root), or just delete /usr/lib/libGL.so.* (make sure you put that .so.* in there -- if you just use libGL*, you can delete GLU, which is a bad thing), and run ln -s /usr/lib/tls/libGL.so.* from the /usr/lib directory. Then run /sbin/ldconfig as root (again), and see if that helps at all.

If this isn't a good solution, then someone else say so before he screws something up... please! :)

beetles 05-03-03 06:23 AM

The error is: "Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.2/jre/lib/i386/libJ3D.so: libGL.so.1: cannot handle TLS data"

[root@java RedHat-9]# ldd /usr/java/j2sdk1.4.2/jre/lib/i386/libJ3D.so
libdl.so.2 => /lib/libdl.so.2 (0x40035000)
libGL.so.1 => /usr/lib/tls/libGL.so.1 (0x40039000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x400a2000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x400b1000)
libm.so.6 => /lib/tls/libm.so.6 (0x40190000)
libnsl.so.1 => /lib/libnsl.so.1 (0x401b2000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x401c7000)
libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
libjawt.so => not found
libjvm.so => not found
libGLcore.so.1 => /usr/lib/tls/libGLcore.so.1 (0x401d6000)

bwkaz 05-03-03 07:29 AM

Is this happening only with either Java3D or Java stuff? If so, it could be Java-related rather than driver related (I know it's taken Sun forever to get their rear ends in gear with regard to gcc 3.2 -- and I'm still not sure whether they've done it or not -- so maybe they need to do something similar with TLS?).

Is /usr/lib/tls in your ld.so.conf file (whether you put it there or not)?

beetles 05-03-03 07:43 AM

Yes, I've put it there and have run ldconfig as root.

[root@java RedHat-9]# cat /etc/ld.so.conf

bwkaz 05-03-03 11:36 AM

OK, so the dynamic linker isn't doing it.

Does it happen with any non-Java programs?

All times are GMT -5. The time now is 07:02 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.