Pythons Mcmillan Installer : cannot load shared lib

Ajay Bakhshi abakhshi at legato.com
Sun Feb 22 18:01:07 CET 2004


Hi,
 
I found the problem.
The shared library was compiled with aCC -AA flag while the Mcmillan
Installer was built with cc -Ae. 
I just changed the Installer so that at the time of creation of the (only
this step) support/run and support/run_d, I use aCC -AA. As a matter of fact
aCC -Aa also works.
 
Thanks
-Ajay B
 
-----Original Message-----
From: Ajay Bakhshi [mailto:abakhshi at legato.com] 
Sent: Friday, February 20, 2004 9:12 AM
To: python-list at python.org
Subject: Pythons Mcmillan Installer : cannot load shared lib
 
Hi,
 
I have Python-2.2.3/
Mcmillian Installer: _5b5_5
System:            HP 11.11   64 bit.
 
Installer + Python were build with 64 bit support (Compiler flag: +DD64)
 
I have a Python file Recover.py that calls "C" functions written in an
extension module. Now these "C" functions (in the shared library) load
another shared library using dlopen. 
 
When I run python Recover.py this works just fine. 
When the same shared library is opened from a "C" executable, that also
works fine.
BUT when I convert Recover.py into an executable (Using Mcmillian Installer:
http://www.mcmillan-inc.com/ <http://www.mcmillan-inc.com/>  - The web site
not working anymore) dlopen gives error.
 
And dlopen gives the following error:
----------------------------------------------------------------------------
-------------------
 Failed to open the library.  Err: './nwsnapmgr//libcl.2' contains a static
TLS refere
nce to '__thread_specific_seg' defined in a dynamically loaded library
'./nwsnapmgr//libcl.
2'. Use +tls=dynamic to re-compile './nwsnapmgr//libcl.2'.
Failed to Load DLL /usr/lib/libssdummy.sl  or Procedure does not exist
----------------------------------------------------------------------------
-------------------
 
 
thanks for any help
-Ajay B
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040222/a2d1bcd8/attachment.html>


More information about the Python-list mailing list