Martin Gamwell Dawids píše v St 21. 09. 2011 v 06:39 -0700:
> 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

does it mean that AIX uses *.a extension for shared libraries name?



> 
> /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:

The bootloader should depend on some standard dynamic libraries. That is
normal. Only the libpython should not be there.

Is the /opt/freeware/lib/libz.a available by default on every AIX
installation?

> 
> 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... :-(

If the python library is dynamic library then you could just try the
same approach what's pyinstaller doing for linux:

Copy the libpython2.6.a to dist folder and update the bootloader to be
also looking for libpython with *.a extension.

Does environment variable LD_LIBRARY_PATH work on AIX?


-- 
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