attached patch eliminates the error (explicit scoping for Makefile.PL
variables). looks like an instance of the bug described here:
http://www.gossamer-threads.com/lists/perl/porters/222537
On Tue May 18 00:28:41 2010, david.tulloh@AirservicesAustralia.com wrote:
Show quoted text> ERROR from evaluation of
> /home/lod/PDL-Fit-Levmar-0.0087/Func/Makefile.PL: Bizarre copy of ARRAY
> in sassign at /usr/share/perl/5.10/Carp/Heavy.pm line 96.
diff -ur PDL-Fit-Levmar-0.0087.orig/Func/Makefile.PL PDL-Fit-Levmar-0.0087.hacked/Func/Makefile.PL
--- PDL-Fit-Levmar-0.0087.orig/Func/Makefile.PL 2006-08-07 07:04:30.000000000 +0200
+++ PDL-Fit-Levmar-0.0087.hacked/Func/Makefile.PL 2011-03-31 14:11:39.000000000 +0200
@@ -3,8 +3,8 @@
use ExtUtils::MakeMaker;
PDL::Core::Dev->import();
-$fpackage = ["func.pd", Func, PDL::Fit::Levmar::Func];
-%hash = pdlpp_stdargs($fpackage);
+my $fpackage = ["func.pd", Func, PDL::Fit::Levmar::Func];
+my %hash = pdlpp_stdargs($fpackage);
$hash{VERSION_FROM} = '../Makefile.PL';
$hash{LIBS} = [' -lm -ldl '];
diff -ur PDL-Fit-Levmar-0.0087.orig/Makefile.PL PDL-Fit-Levmar-0.0087.hacked/Makefile.PL
--- PDL-Fit-Levmar-0.0087.orig/Makefile.PL 2008-07-20 07:12:35.000000000 +0200
+++ PDL-Fit-Levmar-0.0087.hacked/Makefile.PL 2011-03-31 14:11:17.000000000 +0200
@@ -4,11 +4,11 @@
use Carp;
PDL::Core::Dev->import();
-$VERSION = "0.0087"; # Func/Makefile.PL relies on this!
+our $VERSION = "0.0087"; # Func/Makefile.PL relies on this!
-$levmarsrc = "./levmar-2.1.3";
-$lmpackage = ["levmar.pd", Levmar, PDL::Fit::Levmar];
-%hash = pdlpp_stdargs($lmpackage);
+my $levmarsrc = "./levmar-2.1.3";
+my $lmpackage = ["levmar.pd", Levmar, PDL::Fit::Levmar];
+my %hash = pdlpp_stdargs($lmpackage);
$hash{VERSION} = $VERSION;
$hash{INC} .= " -I $levmarsrc";