develooper Front page | perl.par | Postings from November 2017

Problem with packing on OSX

Thread Next
From:
Kime Philip
Date:
November 5, 2017 23:10
Subject:
Problem with packing on OSX
Message ID:
6C2CE6F7-0CBD-4F08-A068-11403CC473A0@kime.org.uk
My automated builds are now giving me problems on OSX 64-bit with, specifically:

Can't load '/var/folders/xk/81hr0f0n4hz_n1kwjp6lt70r0000gn/T/par-64626d7271/cache-82ce96a9b579ca7d831ec5498c59bb9c4087cc21/79628e8f.bundle' for module XML::LibXML: dlopen(/var/folders/xk/81hr0f0n4hz_n1kwjp6lt70r0000gn/T/par-64626d7271/cache-82ce96a9b579ca7d831ec5498c59bb9c4087cc21/79628e8f.bundle, 1): Library not loaded: /opt/local/lib/libxml2.2.dylib
  Referenced from: /var/folders/xk/81hr0f0n4hz_n1kwjp6lt70r0000gn/T//par-64626d7271/cache-82ce96a9b579ca7d831ec5498c59bb9c4087cc21/79628e8f.bundle
  Reason: Incompatible library version: 79628e8f.bundle requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0 at /loader/HASH(0x10188cc08)/DynaLoader.pm line 197.
 at /loader/HASH(0x10190b820)/PAR/Heavy.pm line 123.


I am explicitly linking the libxml2 library in which exists and which passes all tests with XML::LibXML. A bit confused since the error message says it can’t load /opt/local/lib/libxml2.2.dylib which isn’t where it should be getting it from (should be in the packed tree). If I have libxml2 at /opt/local/lib, the packed exe works as expected. This all worked fine until recently and I can’t work out what has changed. I am using the latest version of PAR::Packer etc. I don’t really understand the “incompatible version” error as XML::LibXML installs and tests fine against the libxml2 I am linking in. Any hints appreciated. 

PK
Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About