I don't know if this is related to bug 17467 or not, but when I emerge nvidia-glx then startx, then reboot and startx again I get this: (II) LoadModule: "glx" (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so dlopen: /usr/lib/libGLcore.so.1: undefined symbol: __nvsym14492 (EE) Failed to load /usr/X11R6/lib/modules/extensions/libglx.so (II) UnloadModule: "glx" (EE) Failed to load module "glx" (loader failed, 7) remerging nvidia-glx after every reboot fixes it, but is really crappy. Reproducible: Always Steps to Reproduce: 1. emerge nvidia-glx 2. startx 3. reboot 4. startx Actual Results: $ glxinfo Xlib: extension "GLX" missing on display ":0.0". Error: couldn't get an RGB, Double-buffered visual and the x log shown in Details Expected Results: works # emerge info Portage 2.0.47-r10 (default-1.0, gcc-2.95.3, glibc-2.2.5-r8) ================================================================= System uname: 2.4.19-gentoo-r10e i686 AMD Athlon(tm) processor GENTOO_MIRRORS="http://linux.oit.umass.edu/gentoo/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/home/liverbugg/portage" USE="x86 oss 3dnow apm avi crypt cups jpeg libg++ mikmod mmx mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv berkdb bonobo cdr directfb esd gdbm gif gnome gnome-libs gpm gtk gtkhtml guile imlib libwww motif mozilla mysql nls oggvorbis opengl pam perl png python readline sdl slang snmp ssl svga tcltk tcpd tiff X -kde -qt -arts -java dvd encode gtk2" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" FEATURES="sandbox ccache digest" $ emerge -p nvidia-kernel nvidia-glx xfree These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] media-video/nvidia-kernel-1.0.4349-r1 [ebuild R ] media-video/nvidia-glx-1.0.4349 [ebuild U ] x11-base/xfree-4.3.0-r1 [4.3.0]
lsmod watch if the module was loaded
did you run opengl-update nvidia ?
yes the module is loaded, and yes I ran opengl-update nvidia after emerging. glx works right after I emerge nvidia-glx, so something is messing it up on a reboot or X exit.
Matt, At the time it fails could you please check the symlinks. i.e post the output of ls -al /usr/X11R6/lib/modules/extensions/libglx.so ls -al /usr/lib/libGL*.so* ls -al /dev/nvidia*
Ok, I just did some tests... reboot emerge nvidia-glx opengl-update nvidia startx #glx works...exit startx #glx works...exit emerge nmap startx #glx doesn't work..get the same undefined symbol as before heres the symlinks: liverbugg@alumiguin liverbugg $ ls -al /usr/X11R6/lib/modules/extensions/libglx.so lrwxr-xr-x 1 root root 43 Apr 21 21:53 /usr/X11R6/lib/modules/extensions/libglx.so -> /usr/lib/opengl/nvidia/extensions/libglx.so* liverbugg@alumiguin liverbugg $ ls -al /usr/lib/libGL*.so* lrwxr-xr-x 1 root root 44 Apr 21 21:53 /usr/lib/libGL.so -> /usr/lib/opengl/nvidia/lib/libGL.so.1.0.4349* lrwxr-xr-x 1 root root 17 Apr 21 21:58 /usr/lib/libGL.so.1 -> libGL.so.1.0.4191* -rwxr-xr-x 1 root root 298K Dec 11 15:36 /usr/lib/libGL.so.1.0.4191* lrwxrwxrwx 1 root root 13 Feb 28 21:56 /usr/lib/libGLU.so -> libGLU.so.1.3* lrwxrwxrwx 1 root root 13 Feb 28 21:56 /usr/lib/libGLU.so.1 -> libGLU.so.1.3* -rwxr-xr-x 1 root root 601K Feb 28 21:55 /usr/lib/libGLU.so.1.3* lrwxr-xr-x 1 root root 48 Apr 21 21:53 /usr/lib/libGLcore.so -> /usr/lib/opengl/nvidia/lib/libGLcore.so.1.0.4349* lrwxr-xr-x 1 root root 21 Apr 21 21:58 /usr/lib/libGLcore.so.1 -> libGLcore.so.1.0.4191* -rwxr-xr-x 1 root root 4.6M Dec 11 15:36 /usr/lib/libGLcore.so.1.0.4191* liverbugg@alumiguin liverbugg $ ls -al /dev/nvidia* crw-rw-rw- 1 root root 195, 0 Dec 31 1969 /dev/nvidia0 crw-rw-rw- 1 root root 195, 255 Dec 31 1969 /dev/nvidiactl looks like portage is changing /usr/lib/libGL.so.1 and /usr/lib/libGLcore.so.1 for some reason when emergeing something completly nonrelated. I guess this is a dupe of 17467 since portage is doing it instead of a reboot.
Matt, Thanks for the links. It looks like you've got 2 versions of the nvidia drivers on your system (or at least files from 2 different versions) From the error in your initial comment "dlopen: /usr/lib/libGLcore.so.1: undefined symbol: __nvsym14492" /usr/lib/libGLcore.so.1 points to a file that's version 4191 of the nvidia drivers. The links are most likely being added by ldconfig running after you've emerged (as part of env-update). The files libGL.so.1.0.4191 and libGLcore.so.1.0.4191 in /usr/lib itself rather than being symlinked to are the problem. Can you check that you don't have version 4191 merged into your system. If you don't (or if unmerging it doesn't remove those 2 4149 files from /usr/lib) remove them manually and another merge of 4349 and opengl-update nvidia should stick.
well I only have the 4349 version installed, so I dont know why those libs are still laying around, but removing them fixed it. Maybe opengl-update should check for old versions laying around when it makes its symlinks to prevent this kind of problem.
Yep. And for some reason it does not do shell glob expanding ('*' at end ..) -------------------------------------------------------------------------- azarah@nosferatu ut $ ls -al lrwxr-xr-x 1 root root 44 Apr 13 02:32 /usr/lib/libGL.so -> /usr/lib/opengl/nvidia/lib/libGL.so.1.0.4349 lrwxr-xr-x 1 root root 44 Apr 13 02:32 /usr/lib/libGL.so.1 -> /usr/lib/opengl/nvidia/lib/libGL.so.1.0.4349 lrwxrwxrwx 1 root root 13 Apr 13 02:32 /usr/lib/libGLU.so -> libGLU.so.1.3 lrwxrwxrwx 1 root root 13 Apr 13 02:32 /usr/lib/libGLU.so.1 -> libGLU.so.1.3 -rwxr-xr-x 1 root root 580234 Apr 13 02:31 /usr/lib/libGLU.so.1.3 lrwxr-xr-x 1 root root 48 Apr 13 02:32 /usr/lib/libGLcore.so -> /usr/lib/opengl/nvidia/lib/libGLcore.so.1.0.4349 lrwxr-xr-x 1 root root 48 Apr 13 02:32 /usr/lib/libGLcore.so.1 -> /usr/lib/opengl/nvidia/lib/libGLcore.so.1.0.4349 azarah@nosferatu ut $ ------------------------------------------------------------------ Maybe just: # rm -f /usr/lib/libGL*.so* and run: # opengl-update nvidia and then see if it fixes.
*** Bug 20203 has been marked as a duplicate of this bug. ***
And ?
and what? I said in comment 7 that everything is fine now.
Sorry.
*** Bug 17467 has been marked as a duplicate of this bug. ***