Am Sonntag, den 13.11.2005, 20:39 -0500 schrieb Gavriel State:
> Felix Kühling wrote:
> 
> >There is a known problem with applications that load libGL dynamically
> >with RTLD_LOCAL. Not sure if this is the problem in this case, but the
> >symptom (driver not finding a symbol that should be exported by libGL)
> >and the fact that it's application-dependent point in that direction. I
> >vaguely remember hearing about a Cedega patch for this issue.
> >  
> >
> Cedega doesn't load libGL dynamically with RTLD_LOCAL.  As Cedega starts 
> up, it loads some other libraries dynamically with dlopen, and one of 
> those libraries is command-line-linked to libGL.  The libraries that are 
> loaded with dlopen are opened with RTLD_LAZY.

AFAIK RTLD_LOCAL is the default is RTLD_GLOBAL is not specified.
(RTLD_LOCAL is defined as 0 in /usr/include/bits/dlfcn.h. ;-)

> 
> What's the origin of this issue on the DRI side, and is it likely to be 
> fixed in the future?

Short answer: no. The DRI drivers are no longer linked against a
specific libGL. This is to enable loading of the same driver binaries in
different libGLs or the Xserver itself for indirect accelerated
rendering. Basically all dependencies on the window system were moved
out of the DRI drivers and into libGL. The drivers are not linked
against libGL, they just expect that they can magically see symbols from
libGL or whoever loaded the driver. When libGL itself is loaded
dynamically without RTLD_GLOBAL the driver can't see those symbols and
loading fails.

> 
> Take care,
>  -Gav
> 

Regards,
  Felix

-- 
| Felix Kühling <[EMAIL PROTECTED]>                     http://fxk.de.vu |
| PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3  B152 151C 5CC1 D888 E595 |



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to