httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: libapreq2-2.02-dev build problems with Perl 5.6.1
Date Wed, 10 Dec 2003 09:27:30 GMT
Edward J. Sabol wrote:
> Aside: My goal here is to ultimately use libapreq-2.02-dev with Mason and
>        mod_perl-1.99_11. Has anyone successfully done this? Am I too bleeding
>        edge??? Should I give up on libapreq-2 and try to use with
>        Mason instead?
> Using Apache 2.0.48, mod_perl 1.99_11, Perl 5.6.1, Red Hat 7.3, I encountered
> the following problems building libapreq2-2.02-dev:
> 1. Well, first I had to manually install ExtUtils::XSBuilder 0.23. Why
>    doesn't see this module? It claims no such module exists and won't
>    get/make/test/install it, but can find it easily enough.
>    Anyway, this was more of an inconvience than a problem, but I thought I'd
>    mention it.
> 2. "perl5.6.1 Makefile.PL --with-apache2-apxs=/usr/wwwserver/apache/bin/apxs"
>    didn't work out of the box for me. We have multiple versions of perl
>    installed in our environment, and I needed to specifically use perl5.6.1.
>    (For legacy reasons that I have no control over, perl points to an older
>    version of Perl.) Anyway, perl5.6.1's $Config{perlpath} points to
>    /usr1/local/bin/perl instead of /usr1/local/bin/perl5.6.1, so the version
>    checks failed. I hacked at Makefile.PL to append "5.6.1" to the PERL_PATH
>    definition, and I was able to get Makefile.PL working. This is probably
>    more of a deficiency of our Perl installation, but why not use "$0"
>    instead of $Config{perlpath} in Makefile.PL?
> 3. Everything builds fine AFAICT up until Cookie.c which had the following
>    error:

Can we see your 'perl -V'?

it builds fine for me with 5.6.1. I suppose it shouldn't since 5.6.1 doesn't 
have some of the functions that were used.

> 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:32:
> /var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/xsbuilder/apreq_xs_postperl.h: 
> In function `apreq_xs_find_obj':
> /var/tmp/cpan/build/libapreq2-2.02-dev/glue/perl/xsbuilder/apreq_xs_postperl.h:87: `PERL_MAGIC_tied'
undeclared (first use in this function)

Please try the following patch:

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 
+++ glue/perl/xsbuilder/apreq_xs_postperl.h     10 Dec 2003 09:04:08 -0000
@@ -55,6 +55,8 @@

+#include "ppport.h"
   * @file apreq_xs_postperl.h
   * @brief XS include file for making and

next drop the attached ppport.h into glue/perl/xsbuilder/, now try to rebuild 
from scratch.

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

View raw message