Bug#378058: libgl1-mesa-dri: need to preload /usr/lib/libGL.so because of unknown symbol _glapi_Dispatch

Brice Goglin Brice.Goglin at ens-lyon.org
Wed Jul 12 23:37:44 UTC 2006


Package: libgl1-mesa-dri
Version: 6.5.0.cvs.20060524-1
Severity: normal

Hi,

I have a radeon X300 (pci id 1002:5460) which works pretty fine. Most 3D
applications are happy. But some don't. For instance tremulous, (FPS game
recently uploaded) complains about me not using the hardware acceleration,
which looks strange to me since my hardware acceleration works in other
programs.

LIBGL_DEBUG=verbose gave me the following:
	libGL: XF86DRIGetClientDriverName: 5.0.3 r300 (screen 0)
	libGL: OpenDriver: trying /usr/lib/dri/r300_dri.so
	libGL error: dlopen /usr/lib/dri/r300_dri.so failed
	 (/usr/lib/dri/r300_dri.so: undefined symbol: _glapi_Dispatch)
	libGL error: unable to find driver: r300_dri.so

By googling around, I found some pages like 
http://lists.freedesktop.org/archives/dri-egl/2006-January/000608.html
where it is recommended to preload libGL.so. And it actually works,
passing LD_PRELOAD=/usr/lib/libGL.so makes tremulous happy (and
some other games like nexuiz too).

I am not very familiar with shared libraries. But, since my X driver
(r300_dri.so), and apparently several other ones in /usr/lib/dri/,
needs the symbol _glapi_Dispatch which is defined in /usr/lib/libGL.so,
I would have expected r300_dri.so to depend to libGL.so.
But, ldd does not seem to say it depends on it.

Regards,
Brice


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-rc1=shepherd
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages libgl1-mesa-dri depends on:
ii  libgl1-mesa-glx     6.5.0.cvs.20060524-1 A free implementation of the OpenG

libgl1-mesa-dri recommends no packages.

-- no debconf information




More information about the Pkg-mesa-devel mailing list