Bug 30108

Summary: [bisected] unable to load driver: r300_dri.so, undefined symbol: _glapi_logging_available
Product: Mesa Reporter: Pavel Ondračka <pavel.ondracka>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: krh
Version: gitKeywords: regression
Hardware: Other   
OS: All   
i915 platform: i915 features:

Description Pavel Ondračka 2010-09-09 13:55:08 UTC
After this commit, I lost direct rendering

commit b9abc6139a310677a37754ea7172d976dbf56979
Author: Kristian Høgsberg <krh@bitplanet.net>
Date:   Thu Sep 9 12:59:14 2010 -0400

    glapi: Implement optional dispatch logging
    There's a useful feature buried in glapi to log all API calls to stderr.
    Unfortunately it requires editing the code and then it's enabled
    unconditionally for that build.  This patch builds in API logging for
    debug builds and makes it run-time switchable by setting MESA_DEBUG=dispatch

From terminal output:
libGL: OpenDriver: trying /home/Paulie/mesa/lib/gallium/r300_dri.so
libGL error: dlopen /home/Paulie/mesa/lib/gallium/r300_dri.so failed (/home/Paulie/mesa/lib/gallium/r300_dri.so: undefined symbol: _glapi_logging_available)
libGL error: unable to load driver: r300_dri.so
libGL error: driver pointer missing
Comment 1 Kristian Høgsberg 2010-09-09 14:02:58 UTC
I think Jakob fixed this one with commit 7aae70406bb1c4c9d1e3d026847249684b5e5d0e.
Comment 2 Pavel Ondračka 2010-09-09 14:16:02 UTC
What about debug builds?
Comment 3 Kristian Høgsberg 2010-09-09 14:25:25 UTC
(In reply to comment #2)
> What about debug builds?

Do they not work for you?
Comment 4 Pavel Ondračka 2010-09-09 14:39:29 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > What about debug builds?
> Do they not work for you?

No, I still have this problem when --enable-debug is set. You can't reproduce this? Here it isn't only the r300g driver, also swrastg have this issue (I didn't tried others).
Comment 5 Jakob Bornecrantz 2010-09-09 15:02:05 UTC
Can you try:
export LD_LIBRARY_PATH=/home/Paulie/mesa/lib

I'm thinking you are picking up the wrong libGL.so
Comment 6 Kristian Høgsberg 2010-09-09 16:09:12 UTC
I reverted the patch, too much trouble for now.
Comment 7 Pavel Ondračka 2010-09-10 00:45:28 UTC
(In reply to comment #6)
> I reverted the patch, too much trouble for now.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.