Package: libmodule-build-perl
Version: 0.26-1
Severity: normal

When I try to build Class::Methodmaker 2.04:

[..]
| cc 
-I/home/weasel/projects/debian/debian/pkg-libclass-methodmaker-perl/build-tree/debian/tmp/usr/lib/perl/5.8/CORE
 -fPIC -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN 
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -O2 -o lib/Class/MethodMaker/Engine.o 
lib/Class/MethodMaker/Engine.c
| lib/Class/MethodMaker/Engine.xs:1:20: EXTERN.h: No such file or directory
| lib/Class/MethodMaker/Engine.xs:2:18: perl.h: No such file or directory
| lib/Class/MethodMaker/Engine.xs:3:18: XSUB.h: No such file or directory

As you can see, the call to the c compiler (from process_xs_files(),
which called process_xs() which did compile_c()), uses -I for a
directory, which in my case is the installarchlib directory.

Module::Build should use archlib, not installarchlib here.

--- /usr/share/perl5/Module/Build/Base.pm.orig  2005-01-24 21:22:31.947433374 
+0100
+++ /usr/share/perl5/Module/Build/Base.pm       2005-01-24 21:26:26.899866876 
+0100
@@ -2442,7 +2442,7 @@
   return $obj_file if $self->up_to_date($file, $obj_file);
   
   my @include_dirs = map {"-I$_"} (@{$p->{include_dirs}},
-                                  File::Spec->catdir($cf->{installarchlib}, 
'CORE'));
+                                  File::Spec->catdir($cf->{archlib}, 'CORE'));
   
   my @extra_compiler_flags = 
$self->split_like_shell($p->{extra_compiler_flags});
   my @cccdlflags = $self->split_like_shell($cf->{cccdlflags});


-- 
Peter


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to