[Python-bugs-list] [ python-Bugs-444797 ] dlopen fails loading shared lib modules

noreply@sourceforge.net noreply@sourceforge.net
Thu, 26 Jul 2001 06:57:41 -0700


Bugs item #444797, was opened at 2001-07-26 06:57
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=444797&group_id=5470

Category: Extension Modules
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: dlopen fails loading shared lib modules

Initial Comment:
If the python interpreter is embedded in (built as) a
shared library that can be dynamically loaded by an
application, python shared library modules can not
be imported on Solaris and IRIX.

This works on HP-UX, AIX, and NT.

I have implemented a fix in the attached file 'dynload_shlib.c'
(from python 2.0).

IRIX requires the additional RTLD_GLOBAL 'mode' flag to
be passed to the dlopen calls.

Solaris requires the additional RTLD_GLOBAL and
RTLD_PARENT 'mode' flags to be passed to the dlopen
calls (the RTLD_GROUP and RTLD_WORLD flags were OR'd in
to preserve the defaults).

Please integrate this fix into future versions of python.  I can
provide more detailed information about the problem if necessary.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=444797&group_id=5470