Subject: | Problem when building |
Date: | Thu, 12 Jul 2007 11:49:25 +0100 |
To: | bug-Device-Cdio [...] rt.cpan.org |
From: | "Martín Ferrari" <martin.ferrari [...] gmail.com> |
Hi, when building Device-Cdio, I've got the following error:
cc -I/usr/lib/perl/5.8/CORE -fPIC -c -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-Wno-strict-aliasing -Wno-unused-function -Wno-unused-value
-Wno-unused-function -Wno-unused-variable -o perlcdio_wrap.o
perlcdio_wrap.c
cc: : No existe el fichero o el directorio
Tracing it I discover that some string splitting is generating a empty
array element that's passed to exec, so cc interprets it as a
parameter and it fails.
My versions are:
This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
libextutils-pkgconfig-perl 1.07-1
libmodule-build-perl 0.26-1
The following patch seems to solve the problem:
--- Build.PL 2006-09-02 17:40:09.000000000 +0100
+++ ../Build.PL 2007-07-12 11:46:04.000000000 +0100
@@ -318,7 +318,10 @@
} elsif ('darwin' eq $Config{osname}) {
$ldflags .= " -bundle -flat_namespace";
}
-
+$ccflags =~ s/^\s+//;
+$ccflags =~ s/\s+$//;
+$ldflags =~ s/^\s+//;
+$ldflags =~ s/\s+$//;
my $class = Module::Build->subclass( code => $code );
my $builder = $class->new(
--
Martín Ferrari