Re: Problem with packing on OSX
Kime Philip <[email protected]> Tue, 7 Nov 2017 18:30:40 +0100
| Newsgroups | gmane.comp.lang.perl.par |
|---|---|
| Message-ID | <[email protected]> |
I wonder if this has anything to do with the dynamic loading and —link changes in 1.037 - this came out since the last time I had to do an official software release? PK > On 6 Nov 2017, at 7:12 pm, Roderich Schupp <[email protected]> wrote: > > > On Mon, Nov 6, 2017 at 12:09 AM, Kime Philip <[email protected]> wrote: > 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. > > > These version numbers presumably are MacOS versions? > > > 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. > > From that I guess that your installed libxml2 library is *not* in /opt/local/lib? And you passed its full pathname as "--lib path" to pp? > Are you sure that > /var/folders/xk/81hr0f0n4hz_n1kwjp6lt70r0000gn/T/par-64626d7271/cache-82ce96a9b579ca7d831ec5498c59bb9c4087cc21/79628e8f.bundle > is actually "your" .../XML/LibXML/LibXML.bundle (check MD5s or similar) and not from somewhere else? > Have you checked that the packed executable contains libxml2.2.dylib? > > Cheers, Roderich > -- Dr Philip Kime