Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-29-03, 06:51 AM   #1
beetles
Registered User
 
Join Date: Apr 2003
Posts: 7
Question 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
PARTICULAR PURPOSE.
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.
BIND-8.2.3-T5B
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.
beetles is offline   Reply With Quote
Old 04-29-03, 09:52 AM   #2
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

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.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 04-29-03, 11:45 PM   #3
beetles
Registered User
 
Join Date: Apr 2003
Posts: 7
Default

Yes, sure.
Original was glibc-2.3.2-11, latest is glibc-2.3.2-27 and it is installed.
beetles is offline   Reply With Quote
Old 04-30-03, 02:25 PM   #4
valdis
Registered User
 
Join Date: Apr 2003
Posts: 48
Default

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....
valdis is offline   Reply With Quote
Old 04-30-03, 05:11 PM   #5
Andy Mecham
l33t master
 
Join Date: Jul 2002
Location: Santa Clara, CA
Posts: 1,163
Default

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.

--andy
__________________
Andy Mecham
NVIDIA Corporation
Andy Mecham is offline   Reply With Quote
Old 05-01-03, 03:23 AM   #6
beetles
Registered User
 
Join Date: Apr 2003
Posts: 7
Post

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
beetles is offline   Reply With Quote
Old 05-01-03, 08:14 AM   #7
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

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!
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 05-03-03, 06:23 AM   #8
beetles
Registered User
 
Join Date: Apr 2003
Posts: 7
Default

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)
beetles is offline   Reply With Quote

Old 05-03-03, 07:29 AM   #9
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

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)?
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 05-03-03, 07:43 AM   #10
beetles
Registered User
 
Join Date: Apr 2003
Posts: 7
Default

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

====
[root@java RedHat-9]# cat /etc/ld.so.conf
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-3.0.5/lib
/usr/local/lib
/usr/lib/sane
/usr/lib/qt-3.1/lib
/usr/lib/qt2/lib
/lib/tls
/usr/lib/tls
====
beetles is offline   Reply With Quote
Old 05-03-03, 11:36 AM   #11
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

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

Does it happen with any non-Java programs?
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maintain Your Privacy by Manually Accepting and Rejecting "Cookies" (nV News) MikeC Open Forum 2 02-02-13 07:15 PM
New Paper: MPI-ACC ' An Integrated Approach to Data Movement in Accelerators News Archived News Items 0 06-02-12 03:00 AM

All times are GMT -5. The time now is 09:50 AM.


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