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: libapreq2-2.02-dev build problems with Perl 5.6.1
Date Thu, 11 Dec 2003 01:30:09 GMT
Edward J. Sabol wrote:
[...]
>>next drop the attached ppport.h into glue/perl/xsbuilder/, now try to rebuild 
>>from scratch.
> 
> 
> I blew away my build directory and started from scratch. First, I applied the
> patch and then I copied ppport.h into glue/perl/xsbuilder/. Then I proceeded
> to build it. There are a lot fewer errors this time, but Cookie.c still fails
> to compile. 

Cool, one problem less.

> dAX and ax are missing?

Frankly, I don't know why it's not in ppport.h

> cc -c  -I.. -I../.. -I../../.. -I/var/tmp/cpan/build/libapreq2-2.02-dev/src -I/var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/xsbuilder
-I/usr/wwwserver/apache.2.0.48/include  -I/usr/wwwserver/apache.2.0.48/include   -I/usr/wwwserver/apache.2.0.48/include
 -fno-strict-aliasing  -DMOD_PERL -DMP_COMPAT_1X -O2   -DVERSION=\"2.02-dev\" -DXS_VERSION=\"2.02-dev\"
-fpic "-I/usr1/local/lib/perl5/5.6.1/i686-linux/CORE"   Cookie.c
> In file included from Cookie.xs:38:
> /var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:
In function `apreq_xs_cookie_env':
> /var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:65:
`dAX' undeclared (first use in this function)
> /var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:65:
(Each undeclared identifier is reported only once
> /var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:65:
for each function it appears in.)
> /var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:65:
`ax' undeclared (first use in this function)
> /var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:
In function `apreq_xs_jar_env':
> /var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:66:
`dAX' undeclared (first use in this function)
> /var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/xsbuilder/Apache/Cookie/Apache__Cookie.h:66:
`ax' undeclared (first use in this function)

Please try this patch. I'll ask p5p to include dAX in ppport.h.

Index: glue/perl/xsbuilder/apreq_xs_postperl.h
===================================================================
RCS file: /home/cvs/httpd-apreq-2/glue/perl/xsbuilder/apreq_xs_postperl.h,v
retrieving revision 1.19
diff -u -r1.19 apreq_xs_postperl.h
--- glue/perl/xsbuilder/apreq_xs_postperl.h     18 Oct 2003 05:44:10 -0000 
  1.19
+++ glue/perl/xsbuilder/apreq_xs_postperl.h     11 Dec 2003 01:22:51 -0000
@@ -55,6 +55,8 @@
  #ifndef APREQ_XS_POSTPERL_H
  #define APREQ_XS_POSTPERL_H

+#include "ppport.h"
+
  /**
   * @file apreq_xs_postperl.h
   * @brief XS include file for making Cookie.so and Request.so
@@ -176,6 +178,10 @@
  #define apreq_xs_2sv(t,class) apreq_xs_c2perl(aTHX_ t, env, class)
  #define apreq_xs_sv2(type,sv)((apreq_##type##_t *)apreq_xs_perl2c(sv, #type))
  #define apreq_xs_sv2env(sv) apreq_xs_perl2env(sv)
+
+#ifndef dAX
+#define dAX I32 ax = MARK - PL_stack_base + 1
+#endif

  /** Converts apreq_env to a Perl package, which forms the
   * base class for Apache::Request and Apache::Cookie::Jar objects.


__________________________________________________________________
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