32 bit dri drivers cannot find libdricore and libglsl

Bug #755720 reported by Albert Damen
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ia32-libs (Ubuntu)
Fix Released
High
Unassigned
mesa (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: ia32-libs

Running googleearth on amd64 uses software 3D. The 32 bit dri drivers in ia32-libs cannot be used because they cannot find libdricore and libglsl.
For example ldd /usr/lib32/dri/i965_dri.so shows:
 libdricore.so => not found
 libglsl.so => not found
The 64 bit drivers seem to find libdricore and libglsl using the RPATH in the dri driver: objdump -p shows RPATH /usr/lib/dri
For the 32 bit dri drivers the RPATH also points to /usr/lib/dri. However, 32 bit libdricore and libglsl are in /usr/lib32/dri

It seems to me either the RPATH must be updated in ia32-libs or /usr/lib32/dri must be added in a file under /etc/ld.so.conf.d
i.e. manually adding /usr/lib32/dri in /etc/ld.so.conf.d/GL.conf makes googleearth use hardware accelerated 3D.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: ia32-libs 20090808ubuntu11
ProcVersionSignature: Ubuntu 2.6.38-8.41-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
Date: Sat Apr 9 20:29:00 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ia32-libs
UpgradeStatus: Upgraded to natty on 2010-11-25 (134 days ago)

Revision history for this message
Albert Damen (albrt) wrote :
Changed in mesa (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Changed in ia32-libs (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Changed in mesa (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mesa - 7.10.2-0ubuntu1

---------------
mesa (7.10.2-0ubuntu1) natty; urgency=low

  [ Steve Langasek ]
  * Fix alternatives removal on removal of libgl1-mesa-{swx11,glx}: the
    files are in /usr/lib/mesa, not /usr/lib/GL.
  * The architecture we're building for is DEB_HOST_ARCH, not
    DEB_BUILD_ARCH.

  [ Christopher James Halse Rogers ]
  * New upstream bugfix release.
    - Contains fix for KWin crash when enabling effects on r600 (LP: #738687)
  * debian/patches/105_use_shared_libdricore.patch: Fix rpath for i386
    libraries installed on amd64 via ia32-libs. (LP: #755720)
 -- Christopher James Halse Rogers <email address hidden> Mon, 11 Apr 2011 10:10:35 +1000

Changed in mesa (Ubuntu):
status: Triaged → Fix Released
Robert Hooker (sarvatt)
Changed in ia32-libs (Ubuntu):
milestone: none → ubuntu-11.04
Revision history for this message
Robert Hooker (sarvatt) wrote :

ia32-libs will still need an update to pick up the newer mesa upload to fix this problem, or else there will be no hardware 3D support for 32 bit apps on amd64 (as used by adobe flash and wine) using open source drivers.

Changed in ia32-libs (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Craig (candrews-integralblue) wrote :

candrews@complex:~$ ldd /usr/lib32/dri/i965_dri.so
 linux-gate.so.1 => (0xf76f2000)
 libdricore.so => not found
 libglsl.so => not found
 libdrm.so.2 => /lib32/libdrm.so.2 (0xf7617000)
 libexpat.so.1 => /lib32/libexpat.so.1 (0xf75ed000)
 libpthread.so.0 => /lib32/libpthread.so.0 (0xf75d4000)
 libdl.so.2 => /lib32/libdl.so.2 (0xf75cf000)
 libdrm_intel.so.1 => /lib32/libdrm_intel.so.1 (0xf75c4000)
 libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf74d9000)
 libm.so.6 => /lib32/libm.so.6 (0xf74b3000)
 libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7497000)
 libc.so.6 => /lib32/libc.so.6 (0xf7339000)
 /lib/ld-linux.so.2 (0xf76f3000)
 librt.so.1 => /lib32/librt.so.1 (0xf7330000)

However...
candrews@complex:~$ locate libdricore.so
/usr/lib/dri/libdricore.so
/usr/lib32/dri/libdricore.so
candrews@complex:~$ locate libglsl.so
/usr/lib/dri/libglsl.so
/usr/lib32/dri/libglsl.so

So those libraries do exist. I don't understand why the loader isn't finding them.

Revision history for this message
Craig (candrews-integralblue) wrote :

According to:
strace -f ldd /usr/lib32/dri/i965_dri.so 2>&1 | grep lib
(output here: http://pastebin.ca/2047018 )
the loader is looking for libdricore.so and libglsl.so in /lib32, not in /usr/lib32. So a couple symlinks solves the problem:
$ sudo ln -s /usr/lib32/dri/libdricore.so /lib32/libdricore.so
$ sudo ln -s /usr/lib32/dri/libglsl.so /lib32/libglsl.so
$ ldd /usr/lib32/dri/i965_dri.so
 linux-gate.so.1 => (0xf77a0000)
 libdricore.so => /lib32/libdricore.so (0xf74dc000)
 libglsl.so => /lib32/libglsl.so (0xf73eb000)
 libdrm.so.2 => /lib32/libdrm.so.2 (0xf73e1000)
 libexpat.so.1 => /lib32/libexpat.so.1 (0xf73b7000)
 libpthread.so.0 => /lib32/libpthread.so.0 (0xf739e000)
 libdl.so.2 => /lib32/libdl.so.2 (0xf739a000)
 libdrm_intel.so.1 => /lib32/libdrm_intel.so.1 (0xf738e000)
 libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf72a3000)
 libm.so.6 => /lib32/libm.so.6 (0xf727d000)
 libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7261000)
 libc.so.6 => /lib32/libc.so.6 (0xf7104000)
 /lib/ld-linux.so.2 (0xf77a1000)
 librt.so.1 => /lib32/librt.so.1 (0xf70fa000)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ia32-libs - 20090808ubuntu13

---------------
ia32-libs (20090808ubuntu13) natty; urgency=low

  * Freshen packages (LP: #755720)
  * Remove dummy package libglu1-xorg (libglu1-mesa remains)
 -- Scott Ritchie <email address hidden> Wed, 20 Apr 2011 23:28:04 -0700

Changed in ia32-libs (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Gianvito Cavasoli (janvitus) wrote :

The addition of these libraries has made extremely slow and unplayable ​​the videogames with a native client for GNU/Linux, example Neverwinter Nights, on a nVidia card with the Nouveau driver.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.