Discussion:
[rt.cpan.org #120127] PAR::Packer DynaLoader Problem On Strawberry Perl 5.24.1
(too old to reply)
James P. Rushworth via RT
2017-02-06 22:52:13 UTC
Permalink
Mon Feb 06 17:52:12 2017: Request 120127 was acted upon.
Transaction: Ticket created by ***@bozobus.net
Queue: PAR-Packer
Subject: PAR::Packer DynaLoader Problem On Strawberry Perl 5.24.1
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: ***@bozobus.net
Status: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=120127 >


The attached script when compiled with Strawberry Perl pp on 64bit Windows
10 creates an executable which will not run on a 64 bit Windows 10 machine
which does not have Strawberry Perl installed, it won't run on a 64bit
Windows 7 machine without Strawberry Perl installed either. The program
will not run on a machine with ActiveState Perl installed giving the same
error message.

This is the error message:

Can't load
'C:\Users\NTHOMP~1\AppData\Local\Temp\par-6e74686f6d70736f6e\cache-a689a490f84fa6e443fb002bba992a32a268b542\e88b1fb1.xs.dll'
for module Tk::PNG: load_file:The specified module could not be found at
C:/Perl64/perl/lib/DynaLoader.pm line 193.
at C:/Perl64/perl/vendor/lib/PAR/Heavy.pm line 123.
Compilation failed in require at script/module_test.pl line 39.
BEGIN failed--compilation aborted at script/module_test.pl line 39.

all of the modules after the DynaLoader comment cause a variation of this
error message.

This is the Perl version:

C:\Users\james\perlapp>perl -v

This is perl 5, version 24, subversion 1 (v5.24.1) built for
MSWin32-x64-multi-thread

and this is the module version:

C:\Users\james>perl -MPAR::Packer -le "print $PAR::Packer::VERSION"
1.036
Roderich Schupp via RT
2017-10-02 07:51:13 UTC
Permalink
Mon Oct 02 03:51:12 2017: Request 120127 was acted upon.
Transaction: Correspondence added by RSCHUPP
Queue: PAR-Packer
Subject: PAR::Packer DynaLoader Problem On Strawberry Perl 5.24.1
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: ***@bozobus.net
Status: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=120127 >


As discussed on the mailing list (***@perl.org) the problem was resolved by adding

--link ibpng16-16__.dll --link zlib1__.dll

to the pp command.

Cheers, Roderich

Loading...