Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538972 - x11-drivers/ati-drivers-14.12-r3 - fglrx_drv.so - Undefined Symbol: GlxInitVisuals2D
Summary: x11-drivers/ati-drivers-14.12-r3 - fglrx_drv.so - Undefined Symbol: GlxInitVi...
Status: RESOLVED DUPLICATE of bug 534128
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-05 20:25 UTC by Adam Coyne
Modified: 2015-02-06 23:47 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info,5.31 KB, text/plain)
2015-02-05 20:25 UTC, Adam Coyne
Details
/etc/make.conf (make.conf,1.55 KB, text/plain)
2015-02-05 20:26 UTC, Adam Coyne
Details
/etc/X11/xorg.conf (xorg.conf,2.01 KB, text/plain)
2015-02-05 20:26 UTC, Adam Coyne
Details
/var/log/Xorg.0.log (Xorg.0.log,21.40 KB, text/x-log)
2015-02-05 20:27 UTC, Adam Coyne
Details
strace X > X.strace.out 2>&1 (X.strace.out,234.78 KB, text/plain)
2015-02-05 20:42 UTC, Adam Coyne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Coyne 2015-02-05 20:25:37 UTC
Created attachment 395638 [details]
emerge --info

Upgraded to the latest ati-drivers-14.12-r3, eselect-opengl-1.3.1, libva-1.5.0, xorg-server-1.16.3-r1

X will no longer load completely and I am left at a blank screen which I cannot Ctrl+Alt+f# away from. Only solution is to login remotely and restart, or hard reboot.

Starting X from a remote login via ssh, I get the following error:
/usr/bin/X: symbol lookup error: /usr/lib64/xorg/modules/drivers/fglrx_drv.so: undefined symbol: GlxInitVisuals2D

This error is only visible in the console, not recorded in Xorg.0.log

I have verified eselect-opengl is on the ati profile
Comment 1 Adam Coyne 2015-02-05 20:26:17 UTC
Created attachment 395640 [details]
/etc/make.conf
Comment 2 Adam Coyne 2015-02-05 20:26:46 UTC
Created attachment 395642 [details]
/etc/X11/xorg.conf
Comment 3 Adam Coyne 2015-02-05 20:27:11 UTC
Created attachment 395644 [details]
/var/log/Xorg.0.log
Comment 4 Adam Coyne 2015-02-05 20:42:56 UTC
Created attachment 395646 [details]
strace X > X.strace.out 2>&1
Comment 5 Adam Coyne 2015-02-06 23:47:43 UTC
This appears to be a duplicate of https://bugs.gentoo.org/show_bug.cgi?id=534128 and not related to the latest ati-drivers (x11-drivers/ati-drivers-14.12-r3).

The newest eselect-opengl (app-admin/eselect-opengl-1.3.1-r2) seems to be causing the issue by not properly signaling to X which libglx.so file to load.

Running 'eselect opengl set ati' no longer symlinks /usr/lib64/opengl/ati/extensions/libglx.so to /usr/lib64/xorg/modules/extensions/libglx.so 
Instead, it creates /etc/X11/xorg.conf.d/20opengl.conf with the following contents:

Section "Files"
        ModulePath "/usr/lib32/xorg/modules"
        ModulePath "/usr/lib64/opengl/ati" # << this line is added
        ModulePath "/usr/lib64/xorg/modules"
EndSection


The only change to the file from eselect opengl set xorg-x11 is the middle line with the path to the ati folder. X11 is still trying to load the libglx.so from /usr/lib64/xorg/modules/extensions/libglx.so instead of the one from the ati folder. Removing 'ModulePath "/usr/lib64/xorg/modules"' causes fglrx_drv.so to not load since it resides in that folder.



The following completely resolves my issue and X runs normally. However, it is not a long-term fix and I believe the behavior of eselect-opengl, xorg-server, or both need to be investigated further to correct how the proper libglx.so is loaded depending on the selected profile.

FIX:
cd /usr/lib64/xorg/modules/extensions
mv libglx.so libglx.so.bak
ln -s /usr/lib64/opengl/ati/extensions/libglx.so ./libglx.so

After replacing the xorg libglx.so file with a symlink to the ati version, everything loads and performs as expected.

*** This bug has been marked as a duplicate of bug 534128 ***