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

Bug 172786

Summary: Xorg fails to start, quoting an undefined symbol: drmSetServerInfo
Product: Gentoo Linux Reporter: Stoma Verbum <stoma.verbum>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: minor CC: esigra
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stoma Verbum 2007-03-30 13:10:17 UTC
After upgrading Xorg, it fails to start, citing:

/usr/bin/X: symbol lookup error: /usr/lib/xorg/modules/extensions//libdri.so: 
undefined symbol: drmSetServerInfo

The source of the problem appears to be the fact that there are two different copies of libdri - one in /lib (v.2.0.0) and one in /usr/lib(v.2.3.0).

$ ls -l /lib/libdr*
-rw-r--r-- 1 root root 76820 Jan 13  2006 libdrm.a
-rwxr-xr-x 1 root root   776 Jan 13  2006 libdrm.la
lrwxrwxrwx 1 root root    15 Jan 13  2006 libdrm.so -> libdrm.so.2.0.0
lrwxrwxrwx 1 root root    15 Jan 13  2006 libdrm.so.2 -> libdrm.so.2.0.0
-rwxr-xr-x 1 root root 66655 Jan 13  2006 libdrm.so.2.0.0

The other in /usr/lib (v.2.3.0) is the correct one. But Xorg uses the left-over in /lib:

$ ldd /usr/lib/xorg/modules/extensions//libdri.so | grep libdrm
       libdrm.so.2 => /lib/libdrm.so.2 (0xb7fb1000)

Solution:
Remove the old version of libdrm from /lib.

Reproducible: Always

Steps to Reproduce:
1. Have DRI/DRM enabled in xorg.conf
2. startx
3.

Actual Results:  
Xorg fails with:

/usr/bin/X: symbol lookup error: /usr/lib/xorg/modules/extensions//libdri.so: 
undefined symbol: drmSetServerInfo


Workaround: remove the old libdrm.so links from /lib.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-30 14:19:17 UTC

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