[C++-SIG] Re: [PSA MEMBERS] Fw: the dynamic load mystery...

Konrad Hinsen hinsen at ibs.ibs.fr
Thu Apr 2 12:45:04 CEST 1998


> static application. In the static case, everything is fine. In the dynamic
> case, python 1.5 complains that the shared library does not not contain the
> module's init routine, named initexample. But, as you'll see below, it does.

Sounds familiar. I have exactly that problem with plain C extensions,
e.g. NumPy, both with HP/UX 10 and HP/UX 9. And it works fine with Python 1.4.
But it doesn't occur with all extensions, and to make things worse
it depends on what other dynamic modules have been imported before.
For example:

  import multiarray

doesn't work, but

  import time
  import multiarray

does. So does

  import time
  import multiarray
  import umath

but not

  import time
  import umath

For the moment, our HP's are still at Python 1.4 for this reason.
Unfortunately, I don't have the time to figure out what's going wrong.
I suppose that comparing the Makefiles for 1.4 and 1.5 should produce
some significant difference.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                          | E-Mail: hinsen at ibs.ibs.fr
Laboratoire de Dynamique Moleculaire   | Tel.: +33-4.76.88.99.28
Institut de Biologie Structurale       | Fax:  +33-4.76.88.54.94
41, av. des Martyrs                    | Deutsch/Esperanto/English/
38027 Grenoble Cedex 1, France         | Nederlands/Francais
-------------------------------------------------------------------------------




More information about the Cplusplus-sig mailing list