> > Is ths line ok?
>
> >     int dlopenMode = RTLD_NOW | RTLD_GLOBAL;
>
> > It comes before other declarations but is a constant initialization.
>
> Well, this line broke compilation on windows. I moved it to unix
> specific part. Otherwise it is ok. I fixed it for 1.5.

Ok, sounds fine.

BTW: Which Windows C compiler do you use?

> There is a bunch of them:
>
> from PyInstaller import is_win, is_darwin, is_unix, is_solar, is_aix

I'm aware of that. :-)

> Could you try compile bootloader with xlc? I suppose it is the default
> compiler.

I am not sure. It is not installed on any of our AIX boxes. And before
trying to install it (if I get the time) I would like to port the AIX
support to trunk.

> Is the /opt/freeware/lib standard path on aix for freeware libs?

I guess so. It is on all our AIX boxes including the one I installed
yesterday (containing e.g. libz.a and libbz2.a).

Earlier today (before your final small fix to the bootloader code), I
checked out the latest code from the 1.5 branch and:
* Compiled bootloader on AIX 6.1
* Ran testsuite (same results, test-zipimport2 failing and some
skipped tests)
* Wrapped a python program as onedir and onefile and ran it on
  - AIX 6.1 (build machine)
  - AIX 6.1 (freshly installed)
  - AIX 5.3
  - AIX 5.2
  Everything worked fine.

I also tried to build the bootloader on AIX 5.2 and 5.3, but these
machines have Python 2.2 installed, and waf wouldn't run with Python
2.2. So instead I took the bootloader compiled on AIX 6.1 and moved to
AIX 5.2. The I tried to invoke PyInstaller to build a small test
program, but Build.py fails:

Traceback (most recent call last):
  File "pyinstaller/Build.py", line 1500, in ?
    main(args[0], configfilename=opts.configfile)
  File "pyinstaller/Build.py", line 1478, in main
    build(specfile)
  File "pyinstaller/Build.py", line 1435, in build
    execfile(spec)
  File "test.spec", line 3, in ?
    pathex=['/data2/mgd/pyinstaller-1.5'])
  File "pyinstaller/Build.py", line 347, in __init__
    self.__postinit__()
  File "pyinstaller/Build.py", line 298, in __postinit__
    self.assemble()
  File "pyinstaller/Build.py", line 472, in assemble
    self.fixMissingPythonLib(binaries)
  File "pyinstaller/Build.py", line 527, in fixMissingPythonLib
    if typ == 'BINARY' and name in fnm:
TypeError: 'in <string>' requires character as left operand

Seems like this line:

    525         for (nm, fnm, typ) in binaries:
    526             for name in names:
--> 527                 if typ == 'BINARY' and name in fnm:
    528                     # lib found
    529                     return

is not valid Python 2.2 code. If PyInstaller is still supposed to
support Python 2.2, maybe this should be fixed?

/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