29 apr, 13:57, corb <[EMAIL PROTECTED]> wrote:

Ok, I got this fixed. I was missing zlib-dev headers.

Now i have the binaries compiled but if i use PyInstaller to create a
installer binarie voor linux and run it, it fails with this output:
[EMAIL PROTECTED]:~/Python/BoekplusSource1.4/distBoekplus$ ./Boekplus
./Boekplus is thisfile
 is _MEIPASS2 (workpath)
./ is homepath
Extracting binaries
Manipulating evironment
PYTHONPATH=.

importing modules from CArchive
iu
struct
archive
Installing import hooks
out1.pyz
Running scripts
  File "<string>", line 17
    import archive, iu, sys
                           ^
SyntaxError: invalid syntax
 RC: -1 from _mountzlib
OK.

The same source compiled with PyInstaller on windows runs fine.

The only reason for this problem I could think of could be the
warnings during linux compiling:

gcc -pthread  -I/usr/include -I/usr/include/python2.5 -I../common -I../
zlib -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -
DNDEBUG -g -O2 -Wall -Wstrict-prototypes -DHAVE_WARNINGS -c getpath.c -
o getpath.o
gcc -pthread  -I/usr/include -I/usr/include/python2.5 -I../common -I../
zlib -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -
DNDEBUG -g -O2 -Wall -Wstrict-prototypes -DHAVE_WARNINGS -c main.c -o
main.o
gcc -pthread  -I/usr/include -I/usr/include/python2.5 -I../common -I../
zlib -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -
DNDEBUG -g -O2 -Wall -Wstrict-prototypes -DHAVE_WARNINGS -c ../common/
launch.c -o launch.o
../common/launch.c: In functie 'importModules':
../common/launch.c:603: let op: pointer targets in passing argument 1
of 'PyString_FromStringAndSize' differ in signedness
../common/launch.c:578: let op: unused variable 'buf'
../common/launch.c:577: let op: unused variable 'res'
../common/launch.c:573: let op: unused variable 'pyfile'
../common/launch.c: In functie 'runScripts':
../common/launch.c:854: let op: pointer targets in passing argument 1
of 'PyRun_SimpleStringFlags' differ in signedness
../common/launch.c: In functie 'init':
../common/launch.c:977: let op: unused variable 'p'
gcc -pthread -DNDEBUG -g -O2 -Wall -Wstrict-prototypes  -Xlinker -
export-dynamic getpath.o main.o launch.o /usr/lib/python2.5/config/
libpython2.5.a  -lpthread -ldl  -lutil -lm -lz -o ../../support/loader/
run
/usr/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function
`posix_tmpnam':
(.text+0x56a): warning: the use of `tmpnam_r' is dangerous, better use
`mkstemp'
/usr/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function
`posix_tempnam':
(.text+0x66c): warning: the use of `tempnam' is dangerous, better use
`mkstemp'
gcc -pthread -D_DEBUG -DLAUNCH_DEBUG -I/usr/include -I/usr/include/
python2.5 -I../common -I../zlib -DNDEBUG -g -O2 -Wall -Wstrict-
prototypes -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-
prototypes -DHAVE_WARNINGS -c getpath.c -o getpath_d.o
gcc -pthread -D_DEBUG -DLAUNCH_DEBUG -I/usr/include -I/usr/include/
python2.5 -I../common -I../zlib -DNDEBUG -g -O2 -Wall -Wstrict-
prototypes -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-
prototypes -DHAVE_WARNINGS -c main.c -o main_d.o
gcc -pthread -D_DEBUG -DLAUNCH_DEBUG -I/usr/include -I/usr/include/
python2.5 -I../common -I../zlib -DNDEBUG -g -O2 -Wall -Wstrict-
prototypes -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-
prototypes -DHAVE_WARNINGS -c ../common/launch.c -o launch_d.o
../common/launch.c: In functie 'importModules':
../common/launch.c:603: let op: pointer targets in passing argument 1
of 'PyString_FromStringAndSize' differ in signedness
../common/launch.c:578: let op: unused variable 'buf'
../common/launch.c:577: let op: unused variable 'res'
../common/launch.c:573: let op: unused variable 'pyfile'
../common/launch.c: In functie 'runScripts':
../common/launch.c:854: let op: pointer targets in passing argument 1
of 'PyRun_SimpleStringFlags' differ in signedness
../common/launch.c: In functie 'init':
../common/launch.c:977: let op: unused variable 'p'
gcc -pthread -DNDEBUG -g -O2 -Wall -Wstrict-prototypes  -Xlinker -
export-dynamic getpath_d.o main_d.o launch_d.o /usr/lib/python2.5/
config/libpython2.5.a  -lpthread -ldl  -lutil -lm -lz -o ../../support/
loader/run_d
/usr/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function
`posix_tmpnam':
(.text+0x56a): warning: the use of `tmpnam_r' is dangerous, better use
`mkstemp'
/usr/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function
`posix_tempnam':
(.text+0x66c): warning: the use of `tempnam' is dangerous, better use
`mkstemp'
[EMAIL PROTECTED]:~/Python/PyInstallerSVN/source/linux$

I'm using gcc 4.1 for compiling the linux binaries

Any help? Thanks.

Cor


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