Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461696 - media-libs/mesa-9.1: AIGLX error: dlopen of /usr/lib64/dri/i915_dri.so failed (/usr/lib64/dri/i915_dri.so: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE
Summary: media-libs/mesa-9.1: AIGLX error: dlopen of /usr/lib64/dri/i915_dri.so failed...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-14 07:23 UTC by Oschtan
Modified: 2013-05-16 14:55 UTC (History)
3 users (show)

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


Attachments
Xorg.log (Xorg.0.log,31.61 KB, text/plain)
2013-03-14 07:24 UTC, Oschtan
Details
mesa-9.1-i915g-c++-linker.patch (mesa-9.1-i915g-c++-linker.patch,988 bytes, patch)
2013-05-04 22:33 UTC, Chí-Thanh Christopher Nguyễn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oschtan 2013-03-14 07:23:20 UTC
media-libs/mesa-9.1 (xorg-server-1.14.0, x11-drivers/xf86-video-intel-2.21.4)
====Xorg.0.log====
(EE) AIGLX error: dlopen of /usr/lib64/dri/i915_dri.so failed (/usr/lib64/dri/i915_dri.so: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE)
(EE) AIGLX: reverting to software rendering
(II) AIGLX: Screen 0 is not DRI capable
(II) AIGLX: Loaded and initialized swrast
(II) GLX: Initialized DRISWRAST GL provider for screen 0
======glxinfo=======
glxinfo
name of display: :0.0
libGL error: failed to load driver: i915
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI

Reproducible: Always

Steps to Reproduce:
Downgrade to <media-libs/mesa-9.1



## emerge --info
Portage 2.2.0_alpha166 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.2, glibc-2.16.0, 3.8.2-gentoo x86_64)
=================================================================
System uname: Linux-3.8.2-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-2.2
KiB Mem:     1529572 total,    493616 free
KiB Swap:    2008120 total,   2008120 free
Timestamp of tree: Thu, 14 Mar 2013 06:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.4, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo overlays-oschtan
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL googleearth Oracle-BCLA-JavaSE google-chrome Google-TOS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo noman parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ash.catalysis.ru/gentoo http://trumpetti.atm.tut.fi/gentoo http://oschtan.academ.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://trumpetti.atm.tut.fi/gentoo-portage"
USE="7zip X a52 aac acpi additions alsa amd64 amr ao apm applet artworkextra audiofile bdf berkdb branding bzip2 cairo cdda cdr cjk cli colord consolekit cracklib crypt cups cxx dbus demos divx djvu dri drm dts dvd dvdr dvdread eds emboss enca encode evo exif faac fam fat fbcondecor ffmpeg flac foomaticdb fortran ftp fuse gallium gd gdu gecko gles glitz gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gudev hpijs hwdb icons iconv icq imlib intel introspection java javascript jbig jpeg jpeg2k lame lcms libkms libnotify lzma mad mime mjpeg mmx modules motif mp2 mp3 mp4 mpeg mplayer mudflap multilib multitarget natspec nautilus ncurses nls npp nptl nptlonly nsplugin oav objc objc++ objc-gc ogg openexr opengl openmp oscar pam pango pcre pdf png policykit postscript ppds pulseaudio qt3support rar readline reiserfs resolvconf rtc samba sdl session sndfile socialweb sound source spell spl sqlite sqlite3 srt sse sse2 ssl ssse3 startup-notification suid svg symlink syslog tcpd theora tiff truetype udev udisks unicode upower usb userlocales vaapi vcd vorbis vpx wma wmf wmp wxwidgets x264 x264-svn-encoder xattr xcb xml xmp xorg xpm xscreensaver xv xvid zip zlib" ABI_X86="64" ALSA_CARDS="intel-hda" 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="intel i965 i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Oschtan 2013-03-14 07:24:22 UTC
Created attachment 341984 [details]
Xorg.log
Comment 2 Oschtan 2013-03-14 09:58:08 UTC
[ebuild     U  ] media-libs/mesa-9.1 [9.0.3] USE="classic egl gallium nptl shared-glapi xorg -bindist -debug -gbm -gles1 -gles2 -llvm -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux) -vdpau -wayland -xa -xvmc (-g3dvl%)" PYTHON_SINGLE_TARGET="python2_7%* -python2_6%" PYTHON_TARGETS="python2_7%* -python2_6%" VIDEO_CARDS="i915 i965 intel -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware"
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-03-14 15:37:57 UTC
This might be addressed by this upstream commit: http://cgit.freedesktop.org/mesa/mesa/commit/?h=9.1&id=ed29a987fd9e76ee9b80a4f9cc0079ec22b1124b
Comment 4 Oschtan 2013-03-14 15:50:46 UTC
Error only with gallium.
Comment 5 Wyatt Epp 2013-03-19 06:33:21 UTC
I'm seeing this too with mesa-9999 and gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo x86_64.  

- I've tried a couple different EGIT_COMMIT values, though not the parent of the one chithanh mentioned yet.
- I wasn't seeing a couple days ago, though; then I updated a couple-hundred packages and I'm not sure what part of that mucked things up.
- I ran revdep-rebuild and nothing related to X was listed.
- I'm seeing it with r600g, intel, AND swrast.
Comment 6 Wyatt Epp 2013-03-31 04:26:51 UTC
Got some help from a friend of mine, and he helpfully pointed out that it had a C++ symbol but wasn't linking stdc++.  So the idea is to explicitly tell it to link.  This is a terrible hack solution, but it at least worked for me:
mkdir -p /etc/portage/env/media-libs
echo 'CFLAGS="-lstdc++"' >> /etc/portage/env/media-libs/mesa
emerge -1 mesa
Comment 7 Oschtan 2013-04-11 05:05:20 UTC
media-libs/mesa-9.1.1 - a similar problem
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-05-04 21:57:24 UTC
This should be fixed since mesa-9.2_pre20130404, please reopen if it is not.
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-05-04 22:33:01 UTC
On second thought, it was not solved for i915g, only for r600 and swrast. See if the attached patch helps.
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-05-04 22:33:18 UTC
Created attachment 347390 [details, diff]
mesa-9.1-i915g-c++-linker.patch
Comment 11 Matt Turner gentoo-dev 2013-05-06 17:32:43 UTC
I think thi sneeds a port of 89559c50e7ea9f6571eb02477d7b466f3354ae2f(In reply to comment #10)
> Created attachment 347390 [details, diff] [details, diff]
> mesa-9.1-i915g-c++-linker.patch

I'm not sure why it's needed, strictly speaking, but I think this is correct and is what we should do. If you want to send it to mesa-dev@lists.freedesktop.org I'll commit it.
Comment 12 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-05-06 18:31:43 UTC
Patch sent: http://lists.freedesktop.org/archives/mesa-dev/2013-May/039084.html
Comment 13 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-05-09 20:27:24 UTC
The patch was ack'ed on upstream mailing list.
Added to 9.1.2-r1 and 9.2_pre20130509.
Comment 14 Matt Turner gentoo-dev 2013-05-10 00:05:19 UTC
Thanks. I pushed it upstream.