Well...

While everything seems to work on the AIX box where I have Python
installed, moving the produced binary to another AIX box without
Python seems to cause problems.

Apparently the libpython2.6.a is _not_ a static library, so when I
move the binary to another AIX box it cannot find the Python library.

Inspecting the libpython2.6.a file reveals it is a shared library:

bash-3.00$ dump -ov /opt/freeware/lib/libpython2.6.a

/opt/freeware/lib/libpython2.6.a[libpython2.6.so]:

                        ***Object Module Header***
# Sections      Symbol Ptr      # Symbols       Opt Hdr Len     Flags
         4      0x001da39e          16588                72     0x3002
Flags=( EXEC DYNLOAD SHROBJ DEP_SYSTEM )
Timestamp = "02 sep 00:55:27 2009"
Magic = 0x1df  (32-bit XCOFF)
<..snip..>

Also, the produced binary (bootloader) depends on dynamic libraries:

bash-3.00$ ldd test
test needs:
         /opt/freeware/lib/libz.a(libz.so.1)
         /opt/freeware/lib/libpython2.6.a(libpython2.6.so)
         /usr/lib/libc.a(shr.o)
         /usr/lib/librtl.a(shr.o)
         /usr/lib/libc.a(shr_64.o)
         /usr/lib/libpthreads.a(shr_xpg5.o)
         /usr/lib/libpthreads.a(shr_comm.o)
         /unix
         /usr/lib/libcrypt.a(shr.o)
         /usr/lib/libcrypt.a(shr_64.o)

So I guess I need to dive deeper into linking the bootloader
correctly... :-(

/Martin

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to