[omniORB] omnipymodule can't find libraries under AIX

Thomas BARON Thomas.BARON@dassault-aviation.fr
Thu Dec 12 08:51:01 2002


Hi,
I've built OO 3.0.4 with OOpy 1.5, with xlC (visual age) 6 under AIX
4.3. The compilation was all right (after applying the xlc patch) and
when I try in Python (1.5.2) to import the omniORB module with "import
omniORB", the following error happens :

Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "./omniORB/__init__.py", line 142, in ?
ImportError: from module
/Projet/JULIUS/ORB/omniORB-3.0.4-AIX-4.3/lib/_omnipymodule.so No such
file or directory
can't load library:
/Projet/JULIUS/ORB/omniORB-3.0.4-AIX-4.3/lib/_omnipymodule.so
 libomnithread2.a libomnithread.so.2.1
can't load library: libomnithread2.a libomnithread.so.2.1
 2
can't load library: /Projet/JULIUS/ORB/omniORB-3.0.4-AIX-4.3/lib
 /Projet/JULIUS/ORB/omniORB-3.0.4-AIX-4.3/lib

The /Projet/JULIUS/ORB/omniORB-3.0.4-AIX-4.3 is the base export dir for
the installation, and I move everything from the architectures
directories in bin/ and lib/ (something like bin/powerpc_aix_4.3_xlc5
and lib/powerpc_aix_4.3_xlc5 ) to the bin/ and lib/ (respectively)
directories.

The /Projet/JULIUS/ORB/omniORB-3.0.4-AIX-4.3/lib (specified in LIBPATH
variable) contains the following :

_omniidlmodule.so
_omnipymodule.so
libCOS3.a
libCOS30.so -> libCOS30.so.4
libCOS30.so.4
libCOSBOA3.a
libCOSBOA30.so -> libCOSBOA30.so.4
libCOSBOA30.so.4
libCOSDynamic3.a
libCOSDynamic30.so -> libCOSDynamic30.so.4
libCOSDynamic30.so.4
libomniDynamic3-ar.a
libomniDynamic30.a -> libomniDynamic30.a.4
libomniDynamic30.a.4
libomniGK_alone-ar.a
libomniGK_stub-ar.a
libomniORB3-ar.a
libomniORB30.so -> libomniORB30.so.4
libomniORB30.so.4
libomnithread-ar.a
libomnithread2.so -> libomnithread2.so.1
libomnithread2.so.1
libtcpwrapGK-ar.a
omnicpp
python

It appears to me that the libomnithread2.so.1 is a static lib ( 'file'
shell command says it's an archive). So I've tried to set a link named
'libomnithread2.a' to this file, and the upper error doesn't happend :
instead Python crashes.

Cheers,
Tom