Subject: | bug similar to RT 55994 |
Date: | Tue, 21 Sep 2010 14:44:39 -0400 |
To: | <bug-PAR [...] rt.cpan.org> |
From: | "Ed Zarger" <edzarger [...] aegis-usa.com> |
Re: similar to RT 55994 Par::Packer
bug -- Can't call method "remove" on an undefined value...(in test trying to
add an icon)
Active State Perl 5.8.9
MinGW GCC
Par::Packer 0.991 (which was the highest version showing successful build on
Win32 and 5.8.9 in the CPAN Testers Matrix)
Windows XP Professional SP3
(There may be some packages built with a slightly lower Perl 5.8.version.)
Even after manually applying the patch in the bug report resolution,
(and maybe another patch or two for other things)
I continued to get the same error.
After a few weeks, I found a solution for my case.
This allowed me to get through all the tests with PASS,
and to install the package or module.
In case this comes up again, or someone else has related problems...
This problem shows up because of a line in the myldr\Makefile.PL
That file is similar in the 1.007 version (for these lines).
line 70 my $cc = $Config{cc};
sets the location of the compiler.
In my autogenerated Makefile in the same directory is
line 7 CC=C:/MinGW/bin/gcc.exe
Line 106 in myldr\Makefile.PL
} elsif ($cc =~ m/^gcc\b/i or ($cc =~ m/^cc\b/i and $gccversion)) {
As that line stands, it wants $cc to start with gcc, when it begins with
C:/MinGW
So it won't find the $cc
My solution (good enough for my purposes) was
line 106:} elsif ($cc =~ m/gcc\b/i or ($cc =~ m/^cc\b/i and $gccversion)) {
So I just looked for "gcc" anywhere in $cc.
If you wanted to be more rigorous, you could split the path by the slash,
and use the old line 106 to compare the last array entry with the ^gcc.
The important line that this affects is
line 111 $res = ($^O =~ /^(?:MSWin|cygwin)/) ? 'win32.coff' : '';
since we want $res to = 'win32.coff'
In the autogenerated Makefile,
this value shows up in the line for "OBJECTS =",
and in the line after "$static.exe".
Without this change, the Resources Section is never created.
My apologies for wasting your time if this has been corrected by any of the
other adjustments you've made since then.
I just thought I should pass it along to you, since my googling hasn't found
the same fix.
Ed Zarger
AG Aegis Company, Inc.
PO Box 153
637 N Center St
Corry PA 16407
814-664-8103 Ext 233
800-669-8103 Ext 233
FAX 814-664-9689