Hi,
the recently (27 Nov 2003) released Archive::Zip 1.09 doesn't get
quite get along with PAR 0.76.

On WindowsXP, Perl 5.8.1, I get:

C:\temp\cpan\build\PAR-0.76>pp -o hello.exe -e "print q[hello]"

C:\temp\cpan\build\PAR-0.76>hello.exe
format error: bad signature: 0x00905a4d at offset 0 in file
IO::File=GLOB(0xd9b02c) at -e line 660
format error: bad signature: 0x6e757220 at offset 100 in file
IO::File=GLOB(0xd9b02c) at -e line 159
format error: bad signature: 0x00000000 at offset 37 in file
IO::File=GLOB(0xd9b02c) at ../blib/lib/PAR.pm line 211
hello

Same thing on Solaris 8, Perl 5.6.1:

:; pp -o hello -e 'print "hello\n"'
:; ./hello
format error: bad signature: 0x00000000 at offset 64 in file
IO::File=GLOB(0x3cc078) at -e line 159
format error: bad signature: 0x464c457f at offset 0 in file
IO::File=GLOB(0x3cc078) at -e line 159
hello

However, the Zip archive in the executable looks OK:

:; unzip -tv hello
Archive:  hello
warning [hello]:  1893478 extra bytes at beginning or within zipfile
  (attempting to process anyway)
    testing: script/ppat8pX.pl        OK
    testing: script/main.pl           OK
    testing: MANIFEST                 OK
    testing: META.yml                 OK
No errors detected in compressed data of hello

Also, the error only shows when packing to an executable, a PAR archive
seems to be unaffected:

:; pp -p -o hello.par -e 'print "hello\n"'
:; perl -MPAR hello.par
hello


Cheers, Roderich





Reply via email to