The patch lives in the Python .src.rpm on Red Hat Linux 6.1. The
patch is attached.
On Thu, Jan 20, 2000 at 04:31:28PM +0100, Frederic Gobry wrote:
> > Are you using Python 1.5.2? If so, a change in module loading libdl
> > calls breaks the way imlib does image loader plugins. It's fixed
> > (well, at least patched to work) in Red Hat Linux's Python 1.5.2
> > packages.
>
> Do you have a reference to the actual patch, as I need to install from
> the sources... ?
>
> Thanks,
>
> Fr�d�ric
>
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
--- Python-1.5.2/Python/importdl.c.global Sat Jul 17 16:52:26 1999
+++ Python-1.5.2/Python/importdl.c Sat Jul 17 16:53:19 1999
@@ -441,13 +441,13 @@
#ifdef RTLD_NOW
/* RTLD_NOW: resolve externals now
(i.e. core dump now if some are missing) */
- void *handle = dlopen(pathname, RTLD_NOW);
+ void *handle = dlopen(pathname, RTLD_NOW | RTLD_GLOBAL);
#else
void *handle;
if (Py_VerboseFlag)
printf("dlopen(\"%s\", %d);\n", pathname,
- RTLD_LAZY);
- handle = dlopen(pathname, RTLD_LAZY);
+ RTLD_LAZY | RTLD_GLOBAL);
+ handle = dlopen(pathname, RTLD_LAZY | RTLD_GLOBAL);
#endif /* RTLD_NOW */
if (handle == NULL) {
PyErr_SetString(PyExc_ImportError, dlerror());