Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272330 - xorg-server-1.5.3-r6 loads glx and dri in wrong order when not specified in xorg.conf
Summary: xorg-server-1.5.3-r6 loads glx and dri in wrong order when not specified in x...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-03 00:04 UTC by the_mgt
Modified: 2009-06-05 09:55 UTC (History)
0 users

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


Attachments
Xorg.0.log of the glx problem (Xorg.log.glx,17.25 KB, text/plain)
2009-06-03 00:09 UTC, the_mgt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description the_mgt 2009-06-03 00:04:37 UTC
After switching to Xorg 7.2, I removed all parts from my xorg.conf which were automatically loaded by the server. This was some month ago and I thought all went fine.
Yesterday I looked into the Xorg.0.log and found that the glx module was not loaded with the following error:
(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
dlopen: /usr/lib/xorg/modules/extensions//libglx.so: undefined symbol: DRIGetDrawableInfo
(EE) Failed to load /usr/lib/xorg/modules/extensions//libglx.so

I did not find any clue on the web, bugzilla, the forums or on the channels. Finally a really helpful person on #intel-gfx advised me to put the "Module" Section back into my xorg.conf with the proper order: first dri, second glx. And now glx loads fine.
Since the person on #intel-gfx told me on his ~arch system the modules load fine and in the right order without being written into the xorg.conf, I thought I'd file a bug.

Involved versions:
x11-base/xorg-x11 (7.2@25.04.2009)
x11-base/xorg-server (1.5.3-r6@02.06.2009)
x11-libs/libdrm (2.4.5@02.06.2009)
media-libs/mesa (7.3-r1@02.06.2009)
x11-drivers/xf86-video-intel (2.5.1-r1@02.06.2009)

All but xf86-video-intel are recent x86 stable, I had small performance issues with 2.6.x versions of the intel driver, so I went back to the 2.5 version. The rest of the system is x86. Attached to the bug is the Xorg.0.log of the problem.

Reproducible: Always

Steps to Reproduce:
1. Strip Module Section from xorg.conf
2. startx
3. glx isn't loaded

Actual Results:  
DRI doesnt work, due to glx not being loaded.

Expected Results:  
Working DRI and loaded glx module even without Module section in xorg.conf! Since it should be possible to run X without any conf, the proper order is quiet important.

lspci|grep VGA
00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)

dmesg|grep drm
[drm] Initialized drm 1.1.0 20060810
[drm] Initialized i915 1.6.0 20080730 on minor 0

cat /etc/X11/xorg.conf
Section "Files"
	FontPath	"/usr/share/fonts/CID/"
	FontPath	"/usr/share/fonts/local/"
EndSection

Section "Screen"
	Identifier "Display"
#	Subsection "Display"
#		Virtual 2048 1536
#	EndSubsection
EndSection

Section "ServerLayout"
	Identifier "Laptop"
	Screen "Display"
EndSection

Section "DRI"
	Mode 0666
EndSection


Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-i686-Intel-R-_Pentium-R-_M_processor_1400MHz-with-glibc2.0
Timestamp of tree: Tue, 02 Jun 2009 12:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -Os -pipe -fomit-frame-pointer -ftracer -fweb -mfpmath=sse,387"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/citadel"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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=native -mtune=native -Os -pipe -fomit-frame-pointer -ftracer -fweb -mfpmath=sse,387 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=both"
LINGUAS="de en"
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/portage/local/layman/enlightenment /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aalib accessibility acl acpi alsa avahi bash-completion bluetooth bonjour bzip2 cjk clamav cli cracklib crypt cups custom-cflags custom-cxxflags dbus dga divx4linux dri encode esd ethereal evdev fortran gdbm gif gpm gtk gtk2 hal http i8x0 icc iconv icq imap imlib ipv6 isdnlog java javascript jpeg laptop latex libcaca libcaca2 midi mmx mng mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ogg oggvorbis opengl openmp pam pcmcia pcre pic png pppd qt3support qt4 quicktime readline reflection samba sdl session slang spell spl sse sse2 ssl sysfs tcpd tiff truetype trusted unicode usb utf8 v4l vorbis win32codecs wmf x86 xine xml xorg xpm xv xvid xvmc zeroconf zlib" ALSA_CARDS="i8x0" 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 keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="intel i915 v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 the_mgt 2009-06-03 00:09:27 UTC
Created attachment 193344 [details]
Xorg.0.log of the glx problem
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2009-06-03 19:42:35 UTC
Could you try rebuilding xorg-server with _just_ :

CFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-01"

Thanks
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2009-06-05 08:32:31 UTC
Closing as the_mgt told me on irc that toned-down CFLAGS fix the issue.
Comment 4 the_mgt 2009-06-05 09:55:40 UTC
Yes, that fix the problem.  Later I tried successively adding the more unsafe cflags until I reached my standard config again, and it worked with every combination I tried:
plain cflags(-O2 -pipe) + ldflags(-O1): good
plain cflags + as-needed: good
plain cflags + heavy ldflags(O1, as-needed, sort-common, hash-style=both): good
same as above + web: good
same as above + tracer: good
same as above + fpmath: good
same as above + march/mtune=native:  good
same as above but with -Os instead of -O2: good
same as above + visibility-inlines-hidden + fomit-frame-pointer: good

Should have switched off ccache... if the problem raises again, I'll test more.

Sorry for the inconvenience!