Subject: | Fix build on 32 bits with Perl >= 5.14 |
Algorithm::SVM fails to build on a 32 bits system with Perl >= 5.14,
giving me the following message:
----------
+ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..1
# Running under perl version 5.016001 for linux
# Current time local: Thu Sep 20 02:52:35 2012
# Current time GMT: Thu Sep 20 02:52:35 2012
# Using Test.pm version 1.25_02
Not a CODE reference at /usr/lib/perl5/DynaLoader.pm line 213.
END failed--call queue aborted at blib/lib/Algorithm/SVM.pm line 213.
Compilation failed in require at blib/lib/Algorithm/SVM/DataSet.pm line 7.
BEGIN failed--compilation aborted at blib/lib/Algorithm/SVM/DataSet.pm
line 7.
Compilation failed in require at test.pl line 11.
BEGIN failed--compilation aborted at test.pl line 11.
make: *** [test_dynamic] Error 2
----------
The problem has been described in the past for other modules:
https://lists.fedoraproject.org/pipermail/perl-devel/2011-June/037523.html
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628522
https://rt.cpan.org/Public/Bug/Display.html?id=68613
It is unclear to me whether each module needs to be fixed or whether
ExtUtils::MakeMaker is at fault, but patching each module is trivial
anyway and it can't hurt.