Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146532 - Modular Xorg 7.0 won't start
Summary: Modular Xorg 7.0 won't start
Status: RESOLVED DUPLICATE of bug 116698
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 146533 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-06 03:49 UTC by Simon de Hartog
Modified: 2006-09-06 10:06 UTC (History)
1 user (show)

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


Attachments
Xorg configuration (xorg.conf,1.98 KB, text/plain)
2006-09-06 03:59 UTC, Simon de Hartog
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon de Hartog 2006-09-06 03:49:17 UTC
Gentoo Base System version 1.12.4
Portage 2.1-r2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-hardened-r11 i686)
=================================================================
System uname: 2.6.16-hardened-r11 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/fax /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf
/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fomit-frame-pointer"
DISTDIR="/share/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS=" ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp
.heanet.ie/pub/gentoo ftp://mirror.switch.ch/mirror/gentoo http://mirror.uni-c.dk/pub/gentoo ftp://ftp6.uni-erlangen.de/pub/mirrors/g
entoo "
MAKEOPTS="-j2"
PKGDIR="/share/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=300"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats 
--timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/share/portage"
PORTDIR_OVERLAY="/share/portage-overlay/pet /share/portage-overlay/erazor"
SYNC="rsync://ftp.snt.utwente.nl/gentoo-portage"
USE="x86 7zip S3TC X X509 a52 aac acpi alsa amr apache2 asm asterisk async audiofile bash-completion berkdb bittorrent bl bluetooth b
zip2 c++ cairo cardbus cddb cdparanoia cdr cdrom cgi corba crypt cscope css ctype cups curl curlwrappers devmap dga dlloader dmi dri 
dts dv dvd dvdread encode esd exif fax festival flac flatfile fmod foomaticdb ftp gatos gd gdbm gif glibc-omitfp gs gsm gtk gtk2 h323
 hal hardened hardenedphp high-ints httpd iconv idea ieee1394 image imap imlib imlib2 innodb insecure-drivers iproute2 ipsec ipv6 jav
ascript jpeg jpeg2k kerberos latex ldap libwww lirc live lm_sensors ltsp mad maildir milter mime mjpeg mmap mmx motif mozsvg mp3 mpla
yer mpm-prefork msdav multiprocess multislot mythtv ncurses network nl nl_wolf nls no-old-linux nocd nozaptel nptl nptlonly nsplugin 
ntlm ogg openal opengl overlays pam pcmcia pcntl pcre pda pdf pg-vacuumdelay php pic plotutils png posix postgres ppds pri print pwdb
 qt4 quicktime rar readline real rrdtool rss rtc samba sasl sdl server session sharedext sharedmem simplexml skey slang slp smartcard
 smime sms soap sockets softfax sox speex sse sse2 ssl stream subversion svgz sysfs syslog sysvipc t1lib tga theora threads tiff toke
nizer transcode truetype type1 udev unicode usb userlocales v4l v4l2 vcd vcdimager videos vidix vim vim-pager vim-with-x vlm vorbis w
ddx wifi win32codecs wxwindows xanim xext xine xml xml2 xmlrpc xmms xorg xpm xprint xsl xslt xv xvid yv12 zaptel zlib zvbi elibc_glibc
input_devices_keyboard input_devices_mouse kernel_linux lirc_devices_hauppauge userland_GNU video_cards_sis"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS

I have xorg-server-1.0.2-r7 with SIS driver from xf86-video-sis-0.8.1.3 and DRI enabled. I have DRI in my kernel. I get the following problems when starting X:
root@pluk~> X

X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.6.16-hardened-r11 i686
Current Operating System: Linux pluk 2.6.16-hardened-r11 #2 SMP PREEMPT Mon Aug 28 00:02:42 CEST 2006 i686
Build Date: 06 September 2006
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Sep  6 12:44:17 2006
(==) Using config file: "/etc/X11/xorg.conf"
dlopen: /usr/lib/xorg/modules/extensions/libglx.so: undefined symbol: glTexSubImage3D
(EE) Failed to load /usr/lib/xorg/modules/extensions/libglx.so
(EE) Failed to load module "glx" (loader failed, 7)
dlopen: /usr/lib/xorg/modules/extensions/libGLcore.so: undefined symbol: __glXLastContext
(EE) Failed to load /usr/lib/xorg/modules/extensions/libGLcore.so
(EE) Failed to load module "GLcore" (loader failed, 7)
dlopen: /usr/lib/xorg/modules/extensions/libdri.so: undefined symbol: __glXgetActiveScreen
(EE) Failed to load /usr/lib/xorg/modules/extensions/libdri.so
(EE) Failed to load module "dri" (loader failed, 7)
dlopen: /usr/lib/xorg/modules/drivers/sis_drv.so: undefined symbol: DRICloseScreen
(EE) Failed to load /usr/lib/xorg/modules/drivers/sis_drv.so
(EE) Failed to load module "sis" (loader failed, 7)
(EE) No drivers available.

Fatal server error:
no screens found

After doing a lot of tracing of symbols with scanelf -R -qs <symbol> /usr/lib I found that libglx needs glTexSubImage3D which is in libGLcore.so. But libGLcore.so in turn needs __glXLastContext, which is in libglx.so.

Here comes my somewhat wild guess: because of early binding of symbols in hardened gentoo, these dependencies can not be resolved.
Comment 1 Simon de Hartog 2006-09-06 03:58:06 UTC
*** Bug 146533 has been marked as a duplicate of this bug. ***
Comment 2 Simon de Hartog 2006-09-06 03:59:32 UTC
Created attachment 96159 [details]
Xorg configuration
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-06 04:43:59 UTC
> Load	"GLcore"

^^^ remove it. Also I fail to see why is this hardened issue, re-assigning.

Comment 4 Simon de Hartog 2006-09-06 09:02:48 UTC
It should be noted that this bug should not have happened because of x-modular_specs_check in /usr/portage/eclass/x-modular.eclass, but for some mysterious reason the conditions that should have been met to fix this were not met.

*** This bug has been marked as a duplicate of 116698 ***
Comment 5 Simon de Hartog 2006-09-06 09:25:09 UTC
More progress: I verified that during emerge xf86-video-sis, the -Wl,lazy flags are indeed present. However, after the emerge, scanelf still says BIND=NOW on sis_drv.so...
Comment 6 Simon de Hartog 2006-09-06 09:40:03 UTC
After manually running ebuild xf86-video-sis-0.8.1.3.ebuild clean                unpack compile install, manually adding -Wl,z,lazy to the "LDFLAGS = " line in the main Makefile, running "make clean && make", the "scanelf -b .libs/sis_drv.so" finally shows that binding is actually LAZY.
Comment 7 Kevin F. Quinn (RETIRED) gentoo-dev 2006-09-06 09:59:56 UTC
Note if you want -Wl,-z,lazy to work, you must have binutils-2.16.1 or higher configured (see binutils-config).

If you want to play with a fully BIND_NOW Xorg, see http://overlays.gentoo.org/dev/kevquinn - obviously if you do try it, assign any bugs you raise against it to me, not x11@gentoo.org.
Comment 8 Duncan 2006-09-06 10:06:05 UTC
You appear to be running hardened, with the flag in specs not in make.conf's LDFLAGS (it's not listed in your emerge --info, which lists LDFLAGS as unset), so this should be a dup of bug #110506, not #116698.  The latter was marked a dup of the former, but later reopened as the case where -Wl,-z,now was set in make.conf or general LDFLAGS as opposed to being set in the hardened profile or via specs, and has been resolved/fixed at least for my case, but the former hardened bug is still open, and appears to be what you are running into.

I'm still interested and now on the CC, in any case.

Duncan (#116698 filer)