[Python-bugs-list] [ python-Bugs-767089 ] problem loading shared libraries from an extension module

SourceForge.net noreply@sourceforge.net
Mon, 07 Jul 2003 05:08:54 -0700


Bugs item #767089, was opened at 2003-07-07 17:38
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=767089&group_id=5470

Category: Extension Modules
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Amitay Isaacs (amitay)
Assigned to: Nobody/Anonymous (nobody)
Summary: problem loading shared libraries from an extension module

Initial Comment:
I am trying to build an extension module for libdbi (c library for DB 
interface). Attached is the simple module code. This code works 
fine with python version 1.5.2. But does not work with python 
version 2.2.2 and 2.2.3. I have tested on following platforms.

python 1.5.2 (redhat linux 7.3)
python 2.2 (redhat linux 7.3)
python 2.2.2 (redhat linux 9)
python 2.2.3 (redhat linux 9 - rpms for redhat 9 on python site)

The problem is in the dbi_initialize() call which actually
loads the correct database access module (e.g. mysql 
or postgresql) based on set options. In this dbi_initialize()
call, dlopen() is called to load the specific DB driver 
library with RTLD_NOW flag. This calls fails on python2
on all the platforms mentioned above. Whereas there
is no problem with python 1.5.2. 

Has there been any change in the way modules are loaded which 
will affect the shared libraries being loaded in those modules?



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

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