Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 79552

Summary: nvidia-glx breaks all things requiring glx
Product: Gentoo Linux Reporter: Susie Edgeworth <mistatengwar>
Component: [OLD] LibraryAssignee: Jeremy Huddleston (RETIRED) <eradicator>
Status: RESOLVED FIXED    
Severity: normal CC: nukem996, Rainmaker526, rolosworld, swift, waebbl, x11
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Susie Edgeworth 2005-01-26 01:57:09 UTC
I was hoping a new build would come out and fix whatever has gone wrong.  I do see there are other issues with GLX though people are citing specific programs.  In my case I've had programs like crack-attack refuse to load or be very slow in loading.  

Running crack-attack from terminal after last nvidia driver & glx update gets me the following:

$ crack-attack
GLUT: Fatal Error in crack-attack: OpenGL GLX extension not supported by display: :0

Inital window loads it's when I hit start I get that error.  Running glxinfo get's me the following:

$ glxinfo
name of display: :0.0
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual

I'll spare posting you the rest of the output but it was pretty much continuous "GLX" missing on display errors.  The programs this affects worked find prior the the two recient nvidia updates.  Which is why I'm guessing they are the cause of this.  I did try to add the DRI section to my xorg.conf but that didn't seem to have any effect so I commented it back out.  My xorg.conf was otherwise unchanged meaning it still had glx loading in modules.

*  media-video/nvidia-kernel
      Latest version available: 1.0.6629-r1
      Latest version installed: 1.0.6629-r1
      Size of downloaded files: 16,116 kB
      Homepage:    http://www.nvidia.com/
      Description: Linux kernel module for the NVIDIA X11 driver
      License:     NVIDIA

*  media-video/nvidia-settings
      Latest version available: 1.0.6629
      Latest version installed: 1.0.6629
      Size of downloaded files: 798 kB
      Homepage:    http://www.nvidia.com/
      Description: NVIDIA Linux X11 Settings Utility
      License:     GPL-2

*  media-video/nvidia-glx
      Latest version available: 1.0.6629-r1
      Latest version installed: 1.0.6629-r1
      Size of downloaded files: 16,116 kB
      Homepage:    http://www.nvidia.com/
      Description: NVIDIA X11 driver and GLX libraries
      License:     NVIDIA

*  x11-base/xorg-x11
      Latest version available: 6.8.0-r4
      Latest version installed: 6.8.0-r4
      Size of downloaded files: 72,271 kB
      Homepage:    http://xorg.freedesktop.org/
      Description: An X11 implementation maintained by the X.Org Foundation
      License:     Adobe-X CID DEC DEC-2 IBM-X NVIDIA-X NetBSD SGI UCB-LBL XC-2 bigelow-holmes-urw-gmbh-luxi christopher-g-demetriou national-semiconductor nokia tektronix the-open-group todd-c-miller x-truetype xfree86-1.0 MIT SGI-B BSD || ( FTL GPL-2 )

System info that might be relevant:

CPU: AMD Athlon 2000+ XP 
Video: GeForce Fx5200 128MB

Locate glx has the following things in the results:

/usr/lib/modules/extensions/libglx.so
/usr/lib/opengl/xorg-x11/extensions/libglx.a
/usr/lib/opengl/xorg-x11/include/glxtokens.h
/usr/lib/opengl/xorg-x11/include/glx.h
/usr/lib/opengl/nvidia/extensions/libglx.so
/usr/lib/opengl/nvidia/include/glxtokens.h
/usr/lib/opengl/nvidia/include/glx.h
/usr/X11R6/bin/glxgears
/usr/X11R6/bin/glxinfo
/usr/X11R6/include/GL/glxtokens.h
/usr/X11R6/include/GL/glx.h
/usr/X11R6/include/GL/glxproto.h
/usr/X11R6/include/GL/glxext.h
/usr/X11R6/include/GL/glxint.h
/usr/X11R6/include/GL/glxmd.h


Reproducible: Always
Steps to Reproduce:
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-26 11:33:00 UTC
Nvidia doesn't use DRI, it has an alternate implementation for direct rendering, so that's why that did nothing. Which version of opengl-update do you have installed?
Comment 2 Susie Edgeworth 2005-01-26 15:47:03 UTC
That is what I figured re DRI.  However someone mentioned trying it in another bug on glx type problems so I figured it was worth a try.

*  x11-base/opengl-update
      Latest version available: 2.0_pre4-r1
      Latest version installed: 2.0_pre4-r1
      Size of downloaded files: 30 kB
      Homepage:    http://www.gentoo.org/
      Description: Utility to change the OpenGL interface being used
      License:     GPL-2

Using 'emerge -pC opengl-update" simply shows that same version so it's the only one installed.
Comment 3 Bernd Waibel 2005-02-09 13:00:37 UTC
I encountered the same problem today, after updating nvidia-glx from 1.0.6629-r4 to r5. Even worse, the ebuild for r4 has been deleted from portage tree, so I tried getting back to r1, but this also fails. glxinfo terminates with a segmentation fault, also other apps, that use glx. I tried the eternal-lands client, that worked yesterday and dont work now, because of missing glx.

These are the release I have installed:

[I--] [  ] media-video/nvidia-kernel-1.0.6629-r3 (0)
[I--] [  ] media-video/nvidia-glx-1.0.6629-r1 (0) (also tried r5)
[I--] [  ] x11-base/xorg-x11-6.8.0-r4 (0)
[I--] [  ] media-video/nvidia-settings-1.0.6629 (0)
[I--] [  ] x11-base/opengl-update-2.1.0-r1 (0)

Last update of nvidia-kernel was at
     Wed Jan 26 10:45:11 2005 >>> media-video/nvidia-kernel-1.0.6629-r3
about 2 weeks ago.

But there were a lots of opengl-update updates during the last few days:
     Mon Feb  7 19:27:12 2005 >>> x11-base/opengl-update-2.1_pre6
     Wed Feb  9 02:47:31 2005 >>> x11-base/opengl-update-2.1_pre7
     Wed Feb  9 15:11:53 2005 >>> x11-base/opengl-update-2.1.0-r1


Output of emerge info:
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-ck5-udev-ipv6m i686)
=================================================================
System uname: 2.6.10-ck5-udev-ipv6m i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 19:22:55)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -fforce-addr -mfpmath=sse -mmmx -msse -msse2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -fforce-addr -mfpmath=sse -mmmx -msse -msse2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildsyspkg candy ccache collision-protect distlocks fixpackages nostrip sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-de"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aalib accessibility acl acpi aim alsa apache2 arts avi bash-completion berkdb bitmap-fonts crypt cscope cups dedicated doc dvd encode esd exif fam flac font-server foomaticdb fortran freetds gdbm ggi gif gnome gpm gstreamer gtk2 hal icq jabber jack java joystick jpeg junit libwww linguas_de mad maildir mikmod mmx mmx2 motif mpeg mpi msn ncurses nls nptl odbc offensive oggvorbis openal opengl oscar oss pam pic pie png ppds pwdb python qt quicktime readline samba sdl shared slang spell sqlite sse ssl svg svga sysvipc tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb videos xml xml2 xmms xprint yahoo zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 4 Bernd Waibel 2005-02-09 13:55:50 UTC
I found an nvidia-glx-1.0.6629-r4 ebuild on another machine, that syncs only once a week. After downgrading to r4 and opengl-update downgrading to 2.0_pre5, glx works again.
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-09 16:23:30 UTC
_pre6 was a big rewrite.  _pre7 and 2.1.0 were just bugfixes to it.

Does this file exist for you:
/usr/lib/modules/extensions/libglx.so

Is it a symlink to
/usr/lib/opengl/nvidia/extensions/libglx.so

Is /usr/X11R6 a symlink to ../usr? or is /usr/X11R6/lib a symlink to ../lib?
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-09 16:24:39 UTC
*** Bug 81380 has been marked as a duplicate of this bug. ***
Comment 7 Harm Geerts 2005-02-09 16:35:50 UTC
manuel ~ # ll /usr/lib/modules/extensions/libglx.so
ls: /usr/lib/modules/extensions/libglx.so: No such file or directory
manuel ~ # find /usr/ -name libglx.so
/usr/lib/opengl/nvidia/extensions/libglx.so


Not sure why it's not there anymore but creating a new link solves it
manuel ~ # ln -s /usr/lib/opengl/nvidia/extensions/libglx.so /usr/lib/modules/extensions/

Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-09 17:39:59 UTC
Ok, this is fixed in 2.1.1 (or will be once the ebuild is made).  Please just test it for me by:

cp /usr/portage/x11-base/opengl-update/files/opengl-update-2.1.1 /usr/sbin/opengl-update
opengl-update nvidia

Make sure the $Header shows atleast this version:

# $Header: /var/cvsroot/gentoo-x86/x11-base/opengl-update/files/opengl-update-2.1.1,v 1.2 2005/02/10 01:37:59 eradicator Exp $

If you have any further problems with it, please reopen.
Comment 9 Bernd Waibel 2005-02-09 18:09:20 UTC
lancelot@gwenhwyfar elc $ file /usr/lib/modules/extensions/libglx.so
/usr/lib/modules/extensions/libglx.so: symbolic link to `/usr/lib/opengl/nvidia/extensions/libglx.so'
lancelot@gwenhwyfar elc $ file /usr/X11R6
/usr/X11R6: directory
lancelot@gwenhwyfar elc $ file /usr/X11R6/lib
/usr/X11R6/lib: symbolic link to `../lib'

I don't have the file /usr/portage/x11-base/opengl-update/files/opengl-update-2.1.1.

I look again, after I synced tomorrow, it's already 3 am here :)
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-09 23:04:31 UTC
*** Bug 81435 has been marked as a duplicate of this bug. ***
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-09 23:05:14 UTC
*** Bug 81456 has been marked as a duplicate of this bug. ***
Comment 12 Susie Edgeworth 2005-02-10 00:04:19 UTC
Yes /usr/lib/modules/extensions/libglx.so symlinks to /usr/lib/opengl/nvidia/extensions/libglx.so
Comment 13 Susie Edgeworth 2005-02-10 00:10:15 UTC
ok never mind me I'm catching up on email(I'm in the process of moving offline) and just realized this has been resolved. 
Comment 14 Susie Edgeworth 2005-02-10 00:56:18 UTC
I just tried the:
 
# cp /usr/portage/x11-base/opengl-update/files/opengl-update-2.1.1 /usr/sbin/opengl-update && opengl-update nvidia

That seemed to of went ok until I ran glxinfo.  I'm still getting the same error:

name of display: :0.0
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual

Then the long list of errors follow that
Comment 15 Bernd Waibel 2005-02-10 04:18:37 UTC
I've synced and updated my system to use opengl-update-2.1.1 and again nvidia-glx-1.0.6629-r5 and it works again. So this seems to be solved, on my site at least.
Comment 16 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-10 16:34:59 UTC
*** Bug 81492 has been marked as a duplicate of this bug. ***