On Tue, 17 Apr 2001, Skip Montanaro wrote:
> Any pointers to RedHat's RTLD_GLOBAL patch would be appreciated. I couldn't
> find it via their search mechanisms.
It's not the correct fix, but anyway.. I guess you know that already. This
was discussed and Guido himself said it was not a reasonable solution.
Take care,
--
/\/\ Christian Reis, Senior Engineer, Async Open Source, Brazil
~\/~ http://async.com.br/~kiko/ | [+55 16] 274 4311
--- 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());