Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia and glx problem(failed to load GLX)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
HEPP
n00b
n00b


Joined: 16 Aug 2004
Posts: 25
Location: Norway

PostPosted: Wed Sep 21, 2005 5:57 pm    Post subject: Nvidia and glx problem(failed to load GLX) Reply with quote

I cant run glx.

When i test my vidioe card with, glxinfo | grep direct. I get this error.

Code:
glxinfo: error while loading shared libraries: libnvidia-tls.so.1: cannot TLS data


And when i test the FPS with, glxgears. I get this error.

Code:
glxinfo: error while loading shared libraries: libnvidia-tls.so.1: cannot TLS data


This is my output errors, in the X server log.

Code:

dlopen: libnvidia-tls.so.1: cannot handle TLS data
(EE) Failed to load /usr/lib/modules/extensions/libglx.so
(EE) Failed to load module "glx" (loader failed, 7)
(EE) NVIDIA(0): Failed to load GLX


Any idea to fix this?
_________________
What is locked, can be opened. What is hidden, can be found, What is yours, can be mine.
Back to top
View user's profile Send private message
xaos5
Apprentice
Apprentice


Joined: 19 Apr 2005
Posts: 255
Location: Michigan

PostPosted: Wed Sep 21, 2005 9:14 pm    Post subject: Reply with quote

try opengl-update nvidia?
could be conflicting with something else, don't know what it would be though, try reading the nvidia readme for xorg setup.


try something here http://www.google.com/search?q=%28EE%29+NVIDIA%280%29%3A+Failed+to+load+GLX+&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox&rls=org.mozilla:en-US:unofficial
Back to top
View user's profile Send private message
alistair
Retired Dev
Retired Dev


Joined: 15 Jul 2005
Posts: 869

PostPosted: Wed Sep 21, 2005 10:07 pm    Post subject: Reply with quote

also make sure you dont have this in your xorg.conf

Code:
Section "Extensions"
   Option "Composite" "Enable"
EndSection


If you do and you want it then read the NVIDIA readme for the option to still have glx[/quote]
Back to top
View user's profile Send private message
garion911
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2002
Posts: 88

PostPosted: Wed Oct 26, 2005 2:52 am    Post subject: Reply with quote

I know this thread is a couple weeks old, but I just solved this problem on my machine..

It seems that the nvidia-glx ebuild tries to detect which version of glibc you have installed.. It has to do this, to figure out if it uses TLS or not... In my case, I had glibc 2.2.5 and 2.3.5....... And 2.2.5 doesn't support TLS (or is it nptl? I dont know, I'm confused), so when the "has_version" line in the nvidia-glx ebuild came back, it showed 2.2.5, and installed the non-TLS version. Which confilcts with my glibc-2.3.5........

So I unmerged glibc-2.2.5, re-emerged nvidia-glx, and now everything works...... Maybe we want to file a bug report?
Back to top
View user's profile Send private message
blackwhite
Apprentice
Apprentice


Joined: 24 Jun 2004
Posts: 250

PostPosted: Tue Nov 08, 2005 3:29 pm    Post subject: Reply with quote

I have such a problem. This is caused by glibc's nptl problem, I do not how to fix it. You excute /lib/tls/libc.so.6 to verify it.
Back to top
View user's profile Send private message
vk036968
n00b
n00b


Joined: 23 Mar 2006
Posts: 1

PostPosted: Thu Mar 23, 2006 7:26 am    Post subject: Re: Nvidia and glx problem(failed to load GLX) Reply with quote

HEPP wrote:
I cant run glx.

When i test my vidioe card with, glxinfo | grep direct. I get this error.

Code:
glxinfo: error while loading shared libraries: libnvidia-tls.so.1: cannot TLS data


And when i test the FPS with, glxgears. I get this error.

Code:
glxinfo: error while loading shared libraries: libnvidia-tls.so.1: cannot TLS data


This is my output errors, in the X server log.

Code:

dlopen: libnvidia-tls.so.1: cannot handle TLS data
(EE) Failed to load /usr/lib/modules/extensions/libglx.so
(EE) Failed to load module "glx" (loader failed, 7)
(EE) NVIDIA(0): Failed to load GLX


Any idea to fix this?


I came across the exact same problem.
Help.
Back to top
View user's profile Send private message
shadowoperator
n00b
n00b


Joined: 16 Mar 2006
Posts: 36

PostPosted: Sun Mar 26, 2006 10:06 pm    Post subject: Reply with quote

Same here.
After following the instructions in the gentoo nvidia guide (http://www.gentoo.org/doc/en/nvidia-guide.xml),

Everthing seems to work fine, until the final step:

Code:
# glxinfo | grep direct
glxinfo: error while loading shared libraries: libnvidia-tls.so.1: cannot handle TLS data


Just to let anyone with the answer to this prob know that it's worthwhile posting it here :D
Back to top
View user's profile Send private message
trashman
n00b
n00b


Joined: 14 Mar 2006
Posts: 22
Location: Cleveland, OH

PostPosted: Mon Mar 27, 2006 1:55 am    Post subject: Reply with quote

I was hit by this too. Curiously though, `glxinfo | grep Direct` gives me:
Code:
$ glxinfo | grep Direct
Error: couldn't find RGB GLX visual

It says nothing about shared libraries. However, my xorg log also says that it failed to load nvidia-glx.
Back to top
View user's profile Send private message
trashman
n00b
n00b


Joined: 14 Mar 2006
Posts: 22
Location: Cleveland, OH

PostPosted: Mon Mar 27, 2006 2:33 am    Post subject: Reply with quote

Huzzah! I fixed GLX on my system with `emerge nvidia-kernel nvidia-glx`. :D
Back to top
View user's profile Send private message
jaso
n00b
n00b


Joined: 13 Jul 2002
Posts: 30
Location: Germany

PostPosted: Mon Mar 27, 2006 6:54 pm    Post subject: Reply with quote

I've just installed 2006.0 on a new maschine from stage3 and ran into the same problem.
It was solved by
Code:
emerge glibc
(2.3.5-r2)
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Mon Mar 27, 2006 7:28 pm    Post subject: Reply with quote

trashman wrote:
Huzzah! I fixed GLX on my system with `emerge nvidia-kernel nvidia-glx`. :D

You'll have to re-emerge nvidia-kernel and nvidia-glx after every kernel upgrade, don't forget that!
_________________
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Back to top
View user's profile Send private message
brot
Guru
Guru


Joined: 06 Apr 2004
Posts: 322

PostPosted: Mon Mar 27, 2006 9:03 pm    Post subject: Reply with quote

You will only have to update nvidia-kernel, as the glx package is the connection part for X, and nvidia-kernel is the part for the kernel...
Back to top
View user's profile Send private message
jaso
n00b
n00b


Joined: 13 Jul 2002
Posts: 30
Location: Germany

PostPosted: Tue Mar 28, 2006 7:47 am    Post subject: Reply with quote

Sure, I did that before but it didn't fix the problem for me.
But aftrer the reinstallation of glibc it worked.
Back to top
View user's profile Send private message
trashman
n00b
n00b


Joined: 14 Mar 2006
Posts: 22
Location: Cleveland, OH

PostPosted: Tue Mar 28, 2006 8:03 am    Post subject: Reply with quote

I guess I didn't have the same problem after all, but it sure is an odd coincidence. I think this is the first time I upgraded glx since upgrading glibc to 2.4. Somehow I guess that was the source of the problem, but after re-emeging nvidia-kernel, it worked again... mysteriously.
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Tue Mar 28, 2006 8:23 am    Post subject: Reply with quote

I've once had this problem, and re-emerging was not enough. I've had to actually first unmerge nvidia-kernel and nvidia-glx, and reemerge. Things worked afterwards :?
Back to top
View user's profile Send private message
shadowoperator
n00b
n00b


Joined: 16 Mar 2006
Posts: 36

PostPosted: Sun Apr 02, 2006 10:31 pm    Post subject: Reply with quote

jaso wrote:
I've just installed 2006.0 on a new maschine from stage3 and ran into the same problem.
It was solved by
Code:
emerge glibc
(2.3.5-r2)


Emerging the latest glibc (to 2.3.5) seems to have -partially- resolved the problem:

To get there, did the following

Code:
# emerge glibc
# emerge --unmerge nvidia-glx nvidia-kernel
# emerge nvida glx


...then followed the rest of the steps in the gentoo nvidia setup guide (xorg.conf changes; modules-update; opengl-update nvidia)

Now, instead of getting this:
Code:
# glxinfo | grep direct
glxinfo: error while loading shared libraries: libnvidia-tls.so.1: cannot handle TLS data


I get this:

Code:
# glxinfo | grep direct
direct rendering: No
OpenGL renderer string: Mesa GLX Indirect


Not sure to what extent this is a problem, but my guess is that the final goal of getting direct rendering with the nvidia drivers (as opposed to indirect Mesa GLX...what's the difference?) has not been achieved.

Any idea on how I can get direct rendering to be 'yes'?
Back to top
View user's profile Send private message
barfos
n00b
n00b


Joined: 03 Apr 2006
Posts: 7

PostPosted: Sat Apr 08, 2006 1:27 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-345561-highlight-handle+tls+data.html

Haha, read that. The library in question seems to be mistakenly installed in the wrong place. I backed up and replaced it with the tls version, ran eselect opengl set nvidia, and it stopped giving me the "cant handle tls" error! However glxinfo gave some new errors...

So I stopped X, redid eselect opengl set nvidia and BAM... everything works and works great!!!! I should have known not to try that stuff while inside X.

Seems this bug is really old. Someone ought to fix it.

barfos
Back to top
View user's profile Send private message
jentuu
n00b
n00b


Joined: 26 Jan 2006
Posts: 41
Location: Georgia, Tbilisi

PostPosted: Sat Apr 08, 2006 5:07 pm    Post subject: Reply with quote

hello all
I have problem with modprobe nvidia
Quote:

uzurpator / # modprobe nvidia
FATAL: Could not load /lib/modules/2.6.13-15-default/modules.dep: No such file or directory
uzurpator / #


and in the /lib/modules/ dir. is:
Quote:

uzurpator / # ls /lib/modules/
2.6.16-gentoo-r1
uzurpator / # ls /lib/modules/2.6.16-gentoo-r1
build modules.dep modules.ofmap modules.usbmap
kernel modules.ieee1394map modules.pcimap source
modules.alias modules.inputmap modules.seriomap video
modules.ccwmap modules.isapnpmap modules.symbols

how can I fix this error plz?
thnx ;)
_________________
just emerge
Back to top
View user's profile Send private message
Larcen
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 174

PostPosted: Mon May 22, 2006 8:51 pm    Post subject: Reply with quote

Same problem still, remerged glibc and nvidia stable and unmasked by .keywords, still no go. Done eselect updates, done all this from console not in x, not sure what else to try. :/
Back to top
View user's profile Send private message
Larcen
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 174

PostPosted: Tue May 23, 2006 11:01 am    Post subject: Reply with quote

One thing I have noticed is, whether opengl-update is set to nvidia or xorg-x11 it always looks in /usr/lib/modules/extensions/ for libGL.so never in /usr/lib/opengl/nvidia/lib/libGL.so Could that be an issue?

EDIT: Nevermind, it's a simlink anyhow. Piece of shit.


Last edited by Larcen on Tue May 23, 2006 4:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
troymc
Guru
Guru


Joined: 22 Mar 2006
Posts: 553

PostPosted: Tue May 23, 2006 11:25 am    Post subject: Reply with quote

shadowoperator wrote:

Code:
# glxinfo | grep direct
direct rendering: No
OpenGL renderer string: Mesa GLX Indirect


Not sure to what extent this is a problem, but my guess is that the final goal of getting direct rendering with the nvidia drivers (as opposed to indirect Mesa GLX...what's the difference?) has not been achieved.

Any idea on how I can get direct rendering to be 'yes'?


Mesa is the Xorg version of opengl. Try this:

Code:

# eselect opengl nvidia


Then restart X.


troymc
Back to top
View user's profile Send private message
Larcen
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 174

PostPosted: Thu May 25, 2006 12:36 am    Post subject: Reply with quote

I was excited to see new drivers were out for nvidia and nvidia-glx in the ~ section, though same problem persists.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum