[compiz] RTLD_GLOBAL flag for dlopen

Mike Dransfield mike at blueroot.co.uk
Mon Apr 9 10:18:41 PDT 2007


David Reveman wrote:
> On Mon, 2007-04-09 at 17:16 +0100, Mike Dransfield wrote:
>   
>> I am just experimenting with a plugin loader and I found
>> that there are problems with external symbols which are
>> loaded at runtime.
>>
>> The solution is to add RTLD_GLOBAL to the dlopen mode,
>> but I am not sure if this would cause other problems.
>>     
>
> So your plugin loader provides symbols that subsequently loaded plugins
> use? What are those symbols and what are they used for? Maybe there's a
> more appropriate way to provide those symbols to the plugins.
>
>   

I am not actually providing symbols directly, I am linking
to python, but not all of the symbols are being exported to
be used by dynamically loaded python modules.

An example is the python open gl module.  As soon as that loads
it tries to read some python symbols which I do not use.

I tried different ld flags but none of those seem to work.  An
alternative is to dlopen libpython from within the loader plugin
or preload libpython.

My problem is similar to this one

http://groups.google.co.uk/group/comp.lang.python/browse_thread/thread/731f9226542f0bb0/45ac299c4a7b52a4%2345ac299c4a7b52a4



More information about the compiz mailing list