On Sun, Jan 11, 2004 at 03:26:20PM +0100, Andreas J Koenig wrote:
> Here's the offending line:
>
> # grep XSUBPPDIR ext/B/C/Makefile
> XSUBPPDIR = /home/src/perl/completeperls/perl-5.8.3-RC1/lib/ExtUtils
> XSUBPP = $(XSUBPPDIR)/xsubpp
>
> It seems to be a MakeMaker bug. When MM_Unix.pm reaches tool_xsubpp(),
> @INC is filled with absolute directories. Sorry, no more details
> available...
Searching @INC for xsubpp is relatively recent (March 2003). Previously it
would only look in $self->{PERL_LIB}.
Try this.
--- lib/ExtUtils/MM_Unix.pm 17 Nov 2003 22:55:22 -0000 1.207
+++ lib/ExtUtils/MM_Unix.pm 14 Jan 2004 07:07:22 -0000
@@ -3954,7 +3954,12 @@
return "" unless $self->needs_linking;
my $xsdir;
- foreach my $dir (@INC) {
+ my @xsubpp_dirs = @INC;
+
+ # Make sure we pick up the new xsubpp if we're building perl.
+ unshift @xsubpp_dirs, $self->{PERL_LIB} if $self->{PERL_CORE};
+
+ foreach my $dir (@xsubpp_dirs) {
$xsdir = $self->catdir($dir, 'ExtUtils');
if( -r $self->catfile($xsdir, "xsubpp") ) {
last;
--
Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/
Carpe canem! Seize the dog! This cannot be right.
-- The Critic