Wed Dec 12 06:16:12 2018: Request 127971 was acted upon. Transaction: Correspondence added by welleoz...@googlemail.com Queue: PAR Subject: Re: [rt.cpan.org #127971] {Windows] PAR-Packer-1.047 Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: welleoz...@googlemail.com Status: open Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=127971 >
"--%" is not a typo. Is the way to pass the command in Windows PowerShell. Archive::Zip: was 1.60 at the moment of packaging. Upgraded now to 1.64 (but using --force) Adding --link libjpeg-9_.dll doesn't solve the problem. Same error. Tried also with full path. (I guess it is okay that PAR searches for 31e69eb2.xs.dll (changing its name). Tk::JPEG has been compiled with cpanm Tk. Please, note that the same script (without adding --link) works out-of-the-box on my macOS. Any help to solve my problem would be very much appreciated. Thanks. On a side note: if I run the exe from the packaging machine, the script works. I guess it finds missing parts in original position. This makes debugging not very easy, as it requires to switch to another machine for testing (what is the best alternative to test the exe in the same machine?). Am So., 9. Dez. 2018 um 15:16 Uhr schrieb Roderich Schupp via RT < bug-...@rt.cpan.org>: > <URL: https://rt.cpan.org/Ticket/Display.html?id=127971 > > > On 2018-12-08 10:14:59, welleoz...@googlemail.com wrote: > > pp --% -u -x -l C:/berrybrew/5.28.0_32/perl/vendor/lib/MIME/types.db > > -o AC.exe -F Bleach="^(AC)" AC.pl > > Is "--%" a typo - there's no such option for pp? > > > PS D:\6.00> .\AC.exe > > format error: bad signature: 0x2508438b at offset 6962287 in file > > D:\6.00\AC.exe > > at -e line 614. > ... > > Can't load > > 'C:\Users\BD\AppData\Local\Temp\par-4244\cache- > > 1544280014\31e69eb2.xs.dll' for > > module Tk::JPEG: load_file:Das angegebene Modul wurde nicht gefunden > > at > > C:/berrybrew/5.28.0_32/perl/lib/DynaLoader.pm line 193. > > > > I am quite worried about 2 things: the "format error: bad signature" > > These are from Archive::Zip. Which version of Archive::Zip are you using > (on the machine where you packed AC.exe)? Does your program use > Archive::Zip > explicitly? > > "Can't load..." is most likely caused by your program using Tk::JPEG, > but you didn't pack the native JPEG library - PAR:Packer (actually > Module::ScanDeps) does NOT detect dependencies of (XS) Perl modules > on native libraries. If Tk::JPEG was built against the JPEG library > that came with your Strawberry this can be solved by adding > > --link libjpeg-9_.dll > > to your pp command line. > > > C:/berrybrew/5.28.0_32/perl/lib/DynaLoader.pm which was the directory > > in the original machine where pp has been used! > > Nothing to worry about, it's a feature. All Perl code that is packed by pp > is instrumented with #line directives that encode the original file name > (and line numbers in case POD stripping was applied) so that error > messages correctly reference stuff as seen by the developer on the > packing machine. > > Cheers, Roderich > > > >