Re: G_MODULE_BIND_LOCAL broke nautilus-python extension



On Wed, 2006-01-25 at 00:22 +0000, Gustavo J. A. M. Carneiro wrote:
> Regarding this change (after 2.13.3):
> 
> 2005-12-13  Alexander Larsson  <alexl redhat com>
> 
> 	* libnautilus-private/nautilus-module.c (nautilus_module_load):
> 	open modules G_MODULE_BIND_LOCAL
> 
> It has broken nautilus-python.  See bug #327739.  The problem is that
> python modules expect to find some standard python symbols in the global
> scope, but since nautilus is loading the nautilus-python extension
> module---and consequently libpython24.so itself---in a private scope,
> all python extension modules fail to load.
> 
>   Any thoughts?

The whole move to BIND_LOCAL is a gnome-wide thing we're doing for
performance reasons. All other places loading modules were changed
similarly. Maybe we should discuss this in a wider scope?

How can python module look up things in the global scope only? Surely
the nautilus-python library links to libpython, and thus all the symbols
in that should be availible to all code that nautilus-python loads?
(Clearly I'm not an expert in these things...)

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a gun-slinging pirate gangster who must take medication to keep him sane. 
She's a high-kicking winged research scientist with only herself to blame. 
They fight crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]