Skip Menu |

This queue is for tickets about the Algorithm-SVM CPAN distribution.

Report information
The Basics
Id: 79754
Status: open
Priority: 0/
Queue: Algorithm-SVM

People
Owner: Nobody in particular
Requestors: bochecha [...] fedoraproject.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.13
Fixed in: (no value)



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.
Subject: Algorithm-SVM-0.13-Fix-build-on-32-bits-with-Perl-5.14.patch
From 3681ab37605bb25f8a9224758f8d697cdb894056 Mon Sep 17 00:00:00 2001 From: Mathieu Bridon <bochecha@fedoraproject.org> Date: Thu, 20 Sep 2012 12:02:58 +0800 Subject: [PATCH] Fix build on 32 bits with Perl >= 5.14 https://rt.cpan.org/Public/Bug/Display.html?id=79754 --- Makefile.PL | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index ecf843c..f1538a8 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,8 +1,9 @@ use ExtUtils::MakeMaker; +use Config; $CC = 'g++'; -%args = ('CCFLAGS' => '-Wall'); +%args = ('CCFLAGS' => "-Wall $Config{ccflags}"); if($^O eq 'cygwin') { $args{'LDDLFLAGS'} = '-shared -L/usr/local/lib'; -- 1.7.7.6