Fri Apr 16 08:47:11 2010: Request 56157 was acted upon.
Transaction: Correspondence added by RSCHUPP
       Queue: PAR-Packer
     Subject: Compress::Raw::Zlib object version 2.008 does not match bootstrap 
parameter 2.020 at /usr/lib/perl5/Compress/Raw/Zlib.pm
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: [email protected]
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=56157 >


On Fri Apr 16 08:10:02 2010, SCOTT wrote:
> I can confirm this is a problem on Mac OS X 10.6.0, perl 5.10.0

In your case, I think the problem is perl 5.10.0 itself.
The hack that PAR uses to intercept the loading of shared libraries
(so that it can load the requested library from the .par archive
or the pp-packed executable instead) doesn't work on 5.10.0.
At least on Linux or *nix systems with similar shared library
implementations. Said hack works on all Perl versions 5.6.x, 5.8.x
as well as 5.10.1 and up.

What's happening is the following:
- your script (or - more likely - the bootstrap code in any
  packed excutable) require's Compress/Raw/Zlib.pm
- a copy of Zlib.pm is loaded from the packed executable
- this triggers loading of the corresponding Zlib.so
- since PAR fails to intercept this, the packed copy of Zlib.so
  is ignored and the default loading machanism goes looking 
  for Zlib.so in the filesystem (on the target machine)
- by accidentall, a Zlib.so is found, but its version doesn't 
  match Zlib.pm's version

If you want to try out Perl 5.10.1, note that you must do it
in the following order:
- install Perl 5.10.1
- rebuild PAR
- rebuild PAR::Packer
- repack your script

Cheers, Roderich

Reply via email to