Tue May 11 04:55:08 2010: Request 57272 was acted upon.
Transaction: Correspondence added by RSCHUPP
Queue: PAR-Packer
Subject: Error building on Strawberry 5.12.0.1 32-bit (can't find
script/parl.exe)
Broken in: (no value)
Severity: Important
Owner: RSCHUPP
Requestors: [email protected]
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=57272 >
On Mon May 10 14:44:37 2010, CSJEWELL wrote:
> I just checked (I had a script that I wanted to try it with) - your
> stubs work (I renamed the two dll copies to .old and the compiled
> executable still worked), but parl(dyn)?.exe needs the .dll. [I assume
> that parl(dyn)?.exe is your specialized perl.] So adding the .dll to the
> command line should make things work.
I came to the same conclusion. BTW "objdump -ax exe_or_dll" will
tell you the referenced DLLs.
> The way to detect Strawberry itself (at least for the past 6 months)
> absolutely and uniquely is $Config{myuname} =~ m{\AWin32 [ ]
strawberry}msx.
Fingers crossed :)
> The route I would go instead is to try to detect a gcc 4.x.x-compiled
> perl that had the library in its directory (because they'd have to
> include the library itself in order to run.) The rationale being along
> the lines of "detect the capability that Strawberry is using, rather
> than detecting Strawberry itself."
>
> That detection sequence would be:
>
> 1) $^] > 5.011
> 2) and 'MSWin32' eq $^O
> 3) and $Config{cc} =~ m{(?:[^a-z])?g(?:cc|\+\+)}imsx
Probably superfluous, $Config{gccversion} will tell us
if the compiler was indeed gcc.
> 4) and defined $Config{gccversion} and eval { $Config{gccversion} =~
> m{\A(\d*) [.]}msx; my $test_gcc_version = (((defined $1) and ($1 >= 4))
> ? 1 : 0); $test_gcc_version; }
> 5) and a 'libgcc_*.' . $Config{so} file exists in the same directory as
> 'perl5*.' . $Config{so}
Or more generally that
glob(catfile(dirname($^X), "libgcc_*$Config{so}")))
returns anything (which would indeed be the DLL to pack in).
Can you try the attached patch (totally untested, since
I won't have access to a machine with Strawberry on it
until tonite).
Cheers, Roderich
57272.patch
Description: Binary data
