httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: need to be able to specify a path to perl
Date Tue, 15 Jul 2003 18:48:43 GMT
Joe Schaefer wrote:
> Stas Bekman <stas@stason.org> writes:
> 
> [...]
> 
> 
>>/home/stas/apache.org/httpd-apreq-2/glue/perl> perl Makefile.PL
>>Building xs/  ...
>>generating script t/TEST
>>Couldn't change to directory
>>/home/stas/apache.org/httpd-apreq-2/glue/perl/xs: 
>>No such file or directory at Makefile.PL line 29
>>
>>shouldn't Makefile.PL create this 'xs' dir if it's not there?
> 
> 
> It should (it does for me):
> 
>   % cd glue/perl
>   % make clean
>   % rm -f xs

that doesn't remove the dir.

>   % perl Makefile.PL -apxs apxs
>   Building xs/  ...
>   Parse xsbuilder/maps/apreq_types.map...
>   Parse xsbuilder/maps/apr_types.map...
>   Parse xsbuilder/maps/apache_types.map...
>   mkdir xs
>   writing...xs//typemap
>   ...

who creates the 'xs' dir, so I can debug it?

> What version of ExtUtils::XSBuilder::WrapXS are you running?
> 
>   % perl -MExtUtils::XSBuilder::WrapXS -le 'print 
>   $ExtUtils::XSBuilder::WrapXS::VERSION'
>   0.03
> 
> (This is from the ExtUtils-XSBuilder-0.23 distro).

Ah, that explains everything. I don't have it at all. the script fails to die 
when it doesn't find the file. This should fix the problem:

Index: Makefile.PL
===================================================================
RCS file: /home/cvs/httpd-apreq-2/glue/perl/Makefile.PL,v
retrieving revision 1.4
diff -u -r1.4 Makefile.PL
--- Makefile.PL 15 Jun 2003 10:33:00 -0000      1.4
+++ Makefile.PL 15 Jul 2003 18:57:40 -0000
@@ -15,7 +15,8 @@
  {
      local @ARGV = qw(VERSION run);
      print "Building xs/  ...\n";
-    do "../../build/xsbuilder.pl";
+    my $stat = do "../../build/xsbuilder.pl";
+    die "failed to run xsbuilder: $@" if !defined($stat) && $@;
  }

  finddepth(sub {


now I get:

perl-5.8.1 Makefile.PL -apxs ~/httpd/prefork/bin/apxs
Building xs/  ...
failed to run xsbuilder: Base class package "ExtUtils::XSBuilder::ParseSource" 
is empty.
         (Perhaps you need to 'use' the module which defines that package 
first.) at ../../build/xsbuilder.pl line 84
BEGIN failed--compilation aborted at ../../build/xsbuilder.pl line 84.

not a very helpful error. Perhaps adding:

require ExtUtils::XSBuilder::ParseSource;

in Makefile.PL will be better, also we can set it as a prerequisite.

installing it takes me further:

/home/stas/apache.org/httpd-apreq-2/glue/perl> perl-5.8.1-ithread  Makefile.PL 
-apxs ~/httpd/prefork/bin/apxs
Building xs/  ...
Parse xsbuilder/maps/apache_types.map...
Parse xsbuilder/maps/apr_types.map...
Parse xsbuilder/maps/apreq_types.map...
mkdir xs
writing...xs//typemap
failed to run xsbuilder: Missing directory ./xsbuilder/tables/Apache/libapreq 
at 
/home/stas/perl/5.8.1-ithread/lib/site_perl/5.8.1/ExtUtils/XSBuilder/ParseSource.pm 
line 494.

what do I miss now?


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Mime
View raw message