[Matrix-SIG] Re: [PSA MEMBERS] RTLD_GLOBAL gone from 1.5.2; alternative?

Konrad Hinsen hinsen@cnrs-orleans.fr
Wed, 20 Jan 1999 17:55:54 +0100


> > Maybe someone will volunteer to provide an exported 
> > C interface for the array module.
> 
> I thought that was what the import_array function defined in
> arrayobject.h did.

Exactly, and once you call it, there should be no more references to
the array module in your shared library, and hence no problem.
Moreover, this is not just for Python 1.5.2b1 compatibility, but for
portability in general, as Jim pointed out. On some platforms (e.g.
AIX), shared libraries can never access symbols in other shared
libraries unless these have been imported explicitly.

Fortunately Python provides a portable alternative via CObjects.
Tcl doesn't, and that makes it a nightmare to install Tcl extensions
under AIX, especially if they also use other shared libraries. Anyone
who wants a taste of such problems should try to get Togl to work
under AIX (and send me the working binary, of course ;-).
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                            | E-Mail: hinsen@cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69
Rue Charles Sadron                       | Fax:  +33-2.38.63.15.17
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais
-------------------------------------------------------------------------------