Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292342 - app-admin/eselect-opengl-{1.1.0, 1.1.1}: `eselect opengl set nvidia` is broken
Summary: app-admin/eselect-opengl-{1.1.0, 1.1.1}: `eselect opengl set nvidia` is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 292482 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-08 07:33 UTC by Chris Coleman
Modified: 2009-11-09 14:19 UTC (History)
12 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 Chris Coleman 2009-11-08 07:33:16 UTC
The command `eselect opengl set nvidia` now creates a symlink named "libglx.so.190.42" instead of "libglx.so" in /usr/$(libdir)/xorg/modules/extensions/. The result is that Xorg cannot load the GLX extension because it can't find it (it expects "libglx.so").

Reproducible: Always

Steps to Reproduce:
1. emerge =app-admin/eselect-opengl
2. eselect opengl set nvidia
3. Xorg

Actual Results:  
(II) LoadModule: "glx"
(WW) Warning, couldn't open module glx

Expected Results:  
(II) LoadModule: "glx"
(II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.0
        Module class: X.Org Server Extension
(II) NVIDIA GLX Module  190.42  Tue Oct 20 21:19:30 PDT 2009
(II) Loading extension GLX
Comment 1 Chris Coleman 2009-11-08 07:36:13 UTC
Portage 2.1.7.4 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r0, 2.6.31-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 08 Nov 2009 03:25:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://mirror.bytemark.co.uk/gentoo/ http://distfiles.gentoo.org "
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j4 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/lost+found/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 java jpeg ldap libnotify mad mikmod mmx modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp openssl pam pcre pdf perl png policykit ppds pppd pulseaudio python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 2 tobias schild 2009-11-08 15:21:25 UTC
same here.

After emerging eselect-opengl-1.1.0 with nvidia-drivers-190.42-r2 the symlink "libglx.so" in /usr/$(libdir)/xorg/modules/extensions/ is missing.

creating a symlink to /usr/$(libdir)/opengl/nvidia/extensions/libglx.so.190.42 solves the problem.

Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.32-rc5-git3 x86_64)

=================================================================
System uname: Linux-2.6.32-rc5-git3-x86_64-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 08 Nov 2009 14:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mfpmath=sse -mmmx -msse -msse2 -msse3 -mssse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/san$
CXXFLAGS="-O2 -pipe -march=native -mfpmath=sse -mmmx -msse -msse2 -msse3 -mssse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch prallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --e$
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/gnome /usr/local/portage/layman/java-overlay /usr/local/portage /usr/src/portag$
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 bash-completion berkdb branding bzip2 cli consolekit cracklib crypt cups custom-cxxflags custom-optimization dbus dri fam fortran gdbm$
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 jon R-B 2009-11-08 21:51:56 UTC
Confirm this
Had to mask eselect-opengl-1.1.0, emerge the prev version, eselect opengl set nvidia and restart X for it to work 


Portage 2.2_rc49 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r0, 2.6.31-zen6 x86_64)
=================================================================
System uname: Linux-2.6.31-zen6-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 08 Nov 2009 05:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.5.4-r3, 2.6.4, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -Wno-format-security -U_FORTIFY_SOURCE "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -Wno-format-security -U_FORTIFY_SOURCE "
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS=" ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://www.mirror.ac.uk/mirror/www.ibiblio.org/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en uk"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/mpd /usr/local/portage/layman/sunrise /usr/local/portage/layman/zen-sources /usr/local/portage"
SYNC="rsync://192.168.0.2/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa amd64 bash-completion berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dri dts dvd dvdr emboss encode evdev evo fam flac fortran gdbm gif glitz gnome gnome-keyring gpm gstreamer gtk gtk2 hal iconv ipv6 java jpeg libnotify mad mikmod mmx modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png ppds pppd pulseaudio python qt3support quicktime readline reflection samba sdl session smbclient spell spl sse sse2 ssl startup-notification svg sysfs tcpd threads thunar tiff truetype type1 unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="cmipci" ALSA_PCM_PLUGINS="adpcm copy dmix dshare dsnoop ioplug plug alaw asym empty extplug file hooks iec958 ladspa lfloat linear meter mulaw multi null rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en uk" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2009-11-08 22:03:33 UTC
Fixed with 1.1.1 which i added to main tree.

Note to self: I should really get some nvidia, aparently they must do everything differently than other implementations.
Comment 5 Chris Coleman 2009-11-08 22:26:20 UTC
(In reply to comment #4)
> Fixed with 1.1.1 which i added to main tree.
> 
> Note to self: I should really get some nvidia, aparently they must do
> everything differently than other implementations.
> 

Thanks, Tomáš.
Comment 6 Sebastian Luther (few) 2009-11-09 10:40:59 UTC
*** Bug 292482 has been marked as a duplicate of this bug. ***
Comment 7 Sebastian Luther (few) 2009-11-09 10:41:58 UTC
According to the duplicate above, 1.1.1 still doesn't work.
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2009-11-09 13:14:15 UTC
That symlink cant be created:

 ~ # eselect opengl set nvidia
Switching to nvidia OpenGL interface...DEBUG: ln -s "opengl/nvidia/lib/libGL.so.190.42" "libGL.so"
DEBUG: ln -s "opengl/nvidia/lib/libGLcore.so.190.42" "libGLcore.so"                               
DEBUG: ln -s "opengl/nvidia/lib/libGL.so.190.42" "libGL.so"                                       
DEBUG: ln -s "opengl/nvidia/lib/libGLcore.so.190.42" "libGLcore.so"                               
DEBUG: ln -s "../../../opengl/nvidia/extensions/libglx.so.190.42" "libglx.so"                     
DEBUG: ln -s "../../lib64/opengl/xorg-x11/include/gl.h" "gl.h"                                    
DEBUG: ln -s "../../lib64/opengl/xorg-x11/include/glx.h" "glx.h"                                  
DEBUG: ln -s "../../lib64/opengl/xorg-x11/include/glxtokens.h" "glxtokens.h"                      
DEBUG: ln -s "../../lib64/opengl/global/include/glext.h" "glext.h"                                
DEBUG: ln -s "../../lib64/opengl/global/include/glxext.h" "glxext.h"                              
DEBUG: ln -s "../../lib64/opengl/xorg-x11/include/glxmd.h" "glxmd.h"                              
DEBUG: ln -s "../../lib64/opengl/xorg-x11/include/glxproto.h" "glxproto.h"                        
 done                                                                                             
 ~ # ls -l /usr/lib/xorg/modules/extensions/
total 136                                         
-rwxr-xr-x 1 root root  18584 2009-10-30 23:18 libdbe.so
-rwxr-xr-x 1 root root 101888 2009-10-30 23:18 libextmod.so
lrwxrwxrwx 1 root root     50 2009-11-09 15:06 libglx.so -> ../../../opengl/nvidia/extensions/libglx.so.190.42
-rwxr-xr-x 1 root root  10312 2009-10-30 23:18 librecord.so   

This is exact debug output from 1.1.1 release.

Try to changing it to xorg-x11 and back to nvidia if you have issues, but it IS fixed.
Comment 9 Tomáš Chvátal (RETIRED) gentoo-dev 2009-11-09 13:16:30 UTC
Also remember to restart your X session after updating that eselect...
Comment 10 Mario Bachmann 2009-11-09 14:19:09 UTC
okay, it works now here: 
1. emerge -v1 app-admin/eselect-opengl-1.1.1
2. eselect opengl set nvidia
3. restart X
4. glxgears works

grep GLX /var/log/Xorg.0.log
(II) NVIDIA GLX Module  190.42  Tue Oct 20 21:19:30 PDT 2009
(II) Loading extension GLX
(**) NVIDIA(0): Option "AllowGLXWithComposite" "true"
(**) NVIDIA(0): Option "AddARGBGLXVisuals" "true"
(II) Nov 09 15:14:26 NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(**) Nov 09 15:14:27 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(II) Loading extension NV-GLX
(II) Initializing extension GLX

question to Comment  #8
so there were different versions of app-admin/eselect-opengl-1.1.1 ???
or why first 1.1.1 did NOT work and after a while it works?!
shouldn't be there a 1.1.1-r1 instead?!