Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294524 - media-libs/mesa link dependency problem.
Summary: media-libs/mesa link dependency problem.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-25 05:19 UTC by Simon Matthews
Modified: 2010-03-23 23:23 UTC (History)
1 user (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 Simon Matthews 2009-11-25 05:19:40 UTC
VNCserver won't start gdm because of this message:

(EE) AIGLX error: dlopen of /usr/lib64/dri/swrast_dri.so failed (/usr/lib64/dri/swrast_dri.so: undefined symbol: _glapi_tls_Context)
(EE) GLX: could not load software renderer

This can be verified with ldd:
ldd -d /usr/lib64/dri/swrast_dri.so
undefined symbol: _glapi_tls_Context	(/usr/lib64/dri/swrast_dri.so)
undefined symbol: _glapi_tls_Dispatch	(/usr/lib64/dri/swrast_dri.so)
	linux-vdso.so.1 =>  (0x00007fffe8dfd000)
	libdrm.so.2 => /usr/lib/libdrm.so.2 (0x00007fdbe0611000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007fdbe03e4000)
	libm.so.6 => /lib/libm.so.6 (0x00007fdbe0160000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00007fdbdff44000)
	libdl.so.2 => /lib/libdl.so.2 (0x00007fdbdfd40000)
	libc.so.6 => /lib/libc.so.6 (0x00007fdbdf9ea000)
	librt.so.1 => /lib/librt.so.1 (0x00007fdbdf7e1000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fdbe0cca000)
/usr/lib64/dri/swrast_dri.so belongs to mesa:
equery belongs /usr/lib64/dri/swrast_dri.so
[ Searching for file(s) /usr/lib64/dri/swrast_dri.so in *... ]
media-libs/mesa-7.5.1 (/usr/lib64/dri/swrast_dri.so)

I have re-emerged mesa and I still see the same problem. 


Reproducible: Always

Steps to Reproduce:
1. Start vncserver
2. see logfile
3.

Actual Results:  
vnc session starts with twm instead of gdm

Expected Results:  
vnc should start gdm 

This follows a big update to my system.
Comment 1 Simon Matthews 2009-11-25 05:21:23 UTC
emerge --info:
# emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-1.12.13
Timestamp of tree: Sun, 22 Nov 2009 23:30:01 +0000
distcc[32352] (dcc_trace_version) distcc 3.1 x86_64-pc-linux-gnu; built Aug 26 2009 13:17:57 [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.9-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 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:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=x86-64 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j2"
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/xeffects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 amr apm berkdb bluetooth branding bzip2 cairo cdr clearpasswd cli consolekit cracklib cups dbus dri dts dv dvd dvdr dvdread eds emboss encode evo fam ffmpeg firefox flac foomaticdb fortran gdbm gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 hal hvm iconv id3tag imap ipod jpeg libnotify lm_sensors logrotate mad mbox mikmod mjpeg mmx modules mp3 mp4 mpeg mudflap multilib musicbrainz ncurses nforce2 nls nptl nptlonly nsplugin objc ogg opengl openmp pam pcre pdf perl pmu png ppds pppd python qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl startup-notification svg swat sysfs taglib tcpd thunar tiff truetype unicode usb v4l2 vcd video vim-syntax vorbis wmf x264 xen xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" 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" USERLAND="GNU" VIDEO_CARDS="radeon   vesa nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2009-11-27 16:26:19 UTC
This is an issue with your VNC server, whichever it is (you should specify it btw).

Nothing for the X Team to do.

Thanks
Comment 3 Simon Matthews 2009-11-28 06:08:39 UTC
The link problems in mesa (/usr/lib64/dri/swrast_dri.so) don't matter? 

undefined symbol: _glapi_tls_Context	(/usr/lib64/dri/swrast_dri.so)
undefined symbol: _glapi_tls_Dispatch	(/usr/lib64/dri/swrast_dri.so)
undefined symbol: _glapi_get_dispatch_table_size	(/usr/lib64/dri/swrast_dri.so)
undefined symbol: _glapi_get_context	(/usr/lib64/dri/swrast_dri.so)
undefined symbol: _glapi_add_dispatch	(/usr/lib64/dri/swrast_dri.so)
undefined symbol: _glapi_set_warning_func	(/usr/lib64/dri/swrast_dri.so)
undefined symbol: _glapi_check_multithread	(/usr/lib64/dri/swrast_dri.so)
undefined symbol: _glapi_set_context	(/usr/lib64/dri/swrast_dri.so)
undefined symbol: _glapi_noop_enable_warnings	(/usr/lib64/dri/swrast_dri.so)
undefined symbol: _glapi_set_dispatch	(/usr/lib64/dri/swrast_dri.so)
Comment 4 Wormo (RETIRED) gentoo-dev 2009-11-29 07:24:49 UTC
Do you have xorg server installed as well on this machine? Or is it headless vnc box, so you don't know if xorg server would work with your mesa?
Comment 5 Simon Matthews 2009-11-29 18:32:27 UTC
I see the same issue on my normal desktop which has a full set of gnome/xorg-x11/xorg-server packages installed and a working desktop (but also issues with VNC). 
Comment 6 Wormo (RETIRED) gentoo-dev 2009-11-30 02:54:57 UTC
In that case, how about attaching a whole Xorg.0.log?
Comment 7 Simon Matthews 2009-12-07 02:53:30 UTC
(In reply to comment #6)
> In that case, how about attaching a whole Xorg.0.log?
> 

Correction, I don't see this issue when starting a normal desktop. It only seems to be there in a VNC session. 
Comment 8 Wormo (RETIRED) gentoo-dev 2009-12-14 07:35:04 UTC
I suspect you're not using software rendering for your normal X session, but are using either the radeon or nv DRI instead (you have both enabled in USE). 

How about moving aside the other *_dri.so temporarily to force your normal X to fall back to the software rendering? Then if you get the same complaint in the Xorg.0.log, we'll know it's a mesa issue rather than VNC and this bug can be assigned accordingly.
Comment 9 Sebastiaan 2010-03-08 14:08:44 UTC
I had this problem is well, and solved it (thanks to this bug). In VNC (in my case tigervnc), the xserver should be build with nptl.

See bug 308465.
Comment 10 Simon Matthews 2010-03-09 05:58:10 UTC
(In reply to comment #8)
> I suspect you're not using software rendering for your normal X session, but
> are using either the radeon or nv DRI instead (you have both enabled in USE). 
> 
> How about moving aside the other *_dri.so temporarily to force your normal X to
> fall back to the software rendering? Then if you get the same complaint in the
> Xorg.0.log, we'll know it's a mesa issue rather than VNC and this bug can be
> assigned accordingly.
> 


I tried this and the error message is not present in /var/log/Xorg
(II) AIGLX: Loaded and initialized /usr/lib64/dri/swrast_dri.so
(II) GLX: Initialized DRISWRAST GL provider for screen 0




Comment 11 Simon Matthews 2010-03-09 05:58:45 UTC
(In reply to comment #9)
> I had this problem is well, and solved it (thanks to this bug). In VNC (in my
> case tigervnc), the xserver should be build with nptl.
> 
> See bug 308465.
> 

I tried this and it did not solve  the problem for me.
Comment 12 Sebastiaan 2010-03-09 07:59:22 UTC
Strange. Let's get our installed versions right. I have (emerge -pv mesa xorg-server tigervnc):

media-libs/mesa-7.5.2  USE="nptl -debug -motif -pic -xcb" VIDEO_CARDS="none -intel -mach64 -mga -r128 -radeon -radeonhd -s3virge -savage -sis (-sunffb) -tdfx -trident -via"
x11-base/xorg-server-1.7.5  USE="ipv6 nptl xorg -debug -dmx -hal -kdrive -minimal -sdl -tslib"
net-misc/tigervnc-1.0.1_pre20100306-r1  USE="nptl opengl server xorgmodule"

As window manager I use xfce4, but the swrast bug should be issued before the WM starts:
vncserver :1
grep GLX ~/.vnc/${HOSTNAME}\:1.log


emerge --info:
Portage 2.1.7.17 (default/linux/amd64/10.0/server, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6-slab x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-slab-x86_64-Intel-R-_Xeon-R-_CPU_X5570_@_2.93GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 09 Mar 2010 06:20:01 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.3
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB nl en_US en nl"
MAKEOPTS="-j9"
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"
USE="X acl amd64 bash-completion berkdb branding bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 jpeg jpeg2k lapack ldap lock mmx modules mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre perl png pppd python qt4 readline reflection session snmp spl sse sse2 sse3 sse4 sse4a ssl ssse3 startup-notification sysfs tcpd thunar tiff truetype unicode xine xml xorg 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB nl en_US en nl" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="none"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 13 Simon Matthews 2010-03-09 08:07:21 UTC
(In reply to comment #12)
> Strange. Let's get our installed versions right. I have (emerge -pv mesa
> xorg-server tigervnc):
> 
SNIP

> 

$ emerge -pv mesa xorg-server tigervnc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/mesa-7.5.2  USE="nptl -debug -motif -pic -xcb" VIDEO_CARDS="radeon -intel -mach64 -mga -none -r128 -radeonhd -s3virge -savage -sis (-sunffb) -tdfx -trident -via" 0 kB [0]
[ebuild   R   ] x11-base/xorg-server-1.6.5-r1  USE="hal nptl sdl xorg -debug -dmx -ipv6 -kdrive -minimal -tslib" 0 kB [0]
[ebuild   R   ] net-misc/tigervnc-1.0.0-r5  USE="nptl opengl server xorgmodule" 0 kB [?=>1]

Total: 3 packages (3 reinstalls), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage
 [?] indicates that the source repository could not be determined

net-misc/tigervnc-1.0.0-r5 is an ebuild that I created by copying tigervnc-1.0.0-r4 and adding the nptl items as described. 

I see you have x11-base/xorg-server-1.7.5 while I have x11-base/xorg-server-1.6.5-r1
Comment 14 Sebastiaan 2010-03-09 08:32:17 UTC
Strange...

I suggest to move the discussion to bug 308465, it seems more appropriate there.
Comment 15 Rémi Cardona (RETIRED) gentoo-dev 2010-03-23 23:23:04 UTC
Ok so there's nothing for us to fix here, isn't it?

Closing then.

Thanks