Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81567 - opengl-update 2.1.1 not loading GLX extensions
Summary: opengl-update 2.1.1 not loading GLX extensions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-10 19:38 UTC by Adam Coyne
Modified: 2005-02-15 23:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Coyne 2005-02-10 19:38:58 UTC
If you are using the nvidia proprietary drivers and the latest opengl-update (2.1.1), Xorg doesn't load GLX extentsions. Downgrading to opengl-update 2.0_pre5 fixes this problem. The version of nvidia-glx doesn't seem to matter.

Reproducible: Always
Steps to Reproduce:
1.use nvidia's proprietary drivers and the Xorg
2.run 'opengl-update nvidia'
3.startx

Actual Results:  
(EE) Failed to load module "glx" (module does not exist, 0)

Expected Results:  
GLX should have loaded

Downgrade to opengl-update-2.0_pre5 and run 'opengl-update nvidia' and the
problem goes away.
Comment 1 Nuno Alexandre 2005-02-11 09:27:25 UTC
the glx symlink is missing:
 /usr/lib64/modules/extensions

just add it and it and glx will work again.
Comment 2 Nuno Alexandre 2005-02-11 09:40:12 UTC
that is,
in this dir:  /usr/lib64/modules/extensions
you should do as root:

ln -s /usr/lib/opengl/xorg-x11/extensions/libglx.a libglx.a
 

like so:
[/usr/lib64/modules/extensions] l
total 3.6M
-r--r--r--  1 root root  24K Feb 11 15:19 libdbe.a
-r--r--r--  1 root root  44K Feb 11 15:19 libdri.a
-r--r--r--  1 root root 220K Feb 11 15:19 libextmod.a
-r--r--r--  1 root root 3.2M Feb 11 15:19 libGLcore.a
lrwxrwxrwx  1 root root   44 Feb 11 18:22 libglx.a -> /usr/lib/opengl/xorg-x11/extensions/libglx.a
-r--r--r--  1 root root  35K Feb 11 15:19 librecord.a
-r--r--r--  1 root root  59K Feb 11 15:19 libxtrap.a
[/usr/lib64/modules/extensions] 
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-13 13:01:44 UTC
It works for me.  What version of xorg-x11 do you have?  Did youu run 'opengl-update nvidia' after updating opengl-update?  This was a problem in 2.1.0 that was fixed in 2.1.1.
Comment 4 Adam Coyne 2005-02-13 16:59:13 UTC
yes, i ran opengl-update nvidia after the upgrade, and i'm using the latest xorg-x11.

i've found some people that it works fine for and others that it doesn't...
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-13 18:45:39 UTC
ok, do you have this file on your system:
/usr/lib64/opengl/nvidia/extensions/libglx.so

What version of nvidia-glx do you have?
Comment 6 Kevin Vance 2005-02-14 10:34:35 UTC
I was able to get around it by adding this line to the Files section of xorg.conf:

ModulePath "/usr/lib/opengl/nvidia/extensions"

but that is hardly a permanent solution.
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-14 18:13:33 UTC
Kev, what profile do you have?  What version of xorg-x11?  Do you have this file: /usr/lib64/opengl/nvidia/extensions/libglx.so

I can't reproduce this with 2.1.1, so I need someone to provide me with info otherwise it won't be fixed.

Please provide this info:
emerge --info
file /usr/lib
file /usr/lib64
file /usr/X11R6
file /usr/X11R6/lib
file /usr/X11R6/lib64
file /usr/lib64/opengl/nvidia/extensions/libglx.so
file /usr/lib/opengl/nvidia/extensions/libglx.so
ls -l /usr/lib64/modules/extensions
ls -l /usr/lib/modules/extensions

Thanks
Comment 8 Kevin Vance 2005-02-14 22:12:52 UTC
I am running xorg-x11 6.8.0-r4 on profile 2004.3.  The file /usr/lib64/opengl/nvidia/extensions/libglx.so does not exist, and I have no /usr/lib64 directory at all.  (Should I?  I have 32-bit CPUs.)

Here's the output of emerge --info:
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.2.5-r2,glibc-2.3.4.20040808-r1, 2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 AMD Athlon(tm) MP 1900+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  9 2005, 13:25:45)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.2.3-r5, 2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.4, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3, 1.5
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=athlon-mp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-mp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://mirrors.tds.net/gentoo ftp://ibiblio.org/pub/Linux/distributions/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib apm arts avi berkdb bitmap-fonts bonobo cdr crypt cscope cups curl directfb dvd encode esd f77 fam flac font-server foomaticdb fortran gdbm ggi gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java jpeg junit kde libcaca libg++ libwww lm_sensors mad mikmod mmx motif mozdevelop mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts xml xml2 xmms xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS


And the file commands:
/usr/lib: directory
/usr/lib64: cannot open `/usr/lib64' (No such file or directory)
/usr/X11R6: directory
/usr/X11R6/lib: symbolic link to `../lib'
/usr/X11R6/lib64: cannot open `/usr/X11R6/lib64' (No such file or directory)
/usr/lib64/opengl/nvidia/extensions/libglx.so: cannot open `/usr/lib64/opengl/nvidia/extensions/libglx.so' (No such file or directory)
/usr/lib/opengl/nvidia/extensions/libglx.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped
ls: /usr/lib64/modules/extensions: No such file or directory
total 2860
-r--r--r--  1 root root 2640022 Jan 26 04:07 libGLcore.a
-r--r--r--  1 root root   16452 Jan 26 04:07 libdbe.a
-r--r--r--  1 root root   31282 Jan 26 04:07 libdri.a
-r--r--r--  1 root root  162020 Jan 26 04:07 libextmod.a
-r--r--r--  1 root root   26328 Jan 26 04:07 librecord.a
-r--r--r--  1 root root   39474 Jan 26 04:07 libxtrap.a
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-15 01:06:52 UTC
works for me on 2004.3 x86.  Kev, please provide the output of (and show the commands rather than just copying the concatenated output)

# ls /usr/lib/opengl/*/extensions
# opengl-update xorg-x11
# ls -l /usr/lib/modules/extensions/*glx*
# opengl-update nvidia
# ls -l /usr/lib/modules/extensions/*glx*
Comment 10 Kevin Vance 2005-02-15 18:37:43 UTC
Running it for xorg-x11 and then nvidia seems to have fixed the problem.  libglx.so is now where it should be, and I can start X without the additional ModulePath.  Thanks!

Here is the input and output of those commands:

[pts/0](atlas:~)# ls /usr/lib/opengl/*/extensions
/usr/lib/opengl/nvidia/extensions:
libglx.so

/usr/lib/opengl/xorg-x11/extensions:
libglx.a
[pts/0](atlas:~)# opengl-update xorg-x11
 * Switching to xorg-x11 OpenGL interface...
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                        [ ok ]
[pts/0](atlas:~)# ls -l /usr/lib/modules/extensions/*glx*
lrwxrwxrwx  1 root root 44 Feb 15 21:33 /usr/lib/modules/extensions/libglx.a -> /usr/lib/opengl/xorg-x11/extensions/libglx.a
[pts/0](atlas:~)# opengl-update nvidia
 * Switching to nvidia OpenGL interface...
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                        [ ok ]
[pts/0](atlas:~)# ls -l /usr/lib/modules/extensions/*glx*
lrwxrwxrwx  1 root root 43 Feb 15 21:34 /usr/lib/modules/extensions/libglx.so -> /usr/lib/opengl/nvidia/extensions/libglx.so
[pts/0](atlas:~)# 
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-15 23:58:22 UTC
ok... closing...