perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip M. Gollucci" <pgollu...@p6m7g8.com>
Subject Re: Apache 2.2 and libapreq2 2.0.7 segfault
Date Thu, 30 Mar 2006 00:27:00 GMT
I hope this isn't whats causing it, but you're missing

use Apache2::Const -compile qw(OK);

I know we prefer the other way of new() so try doing this
my $apr = Apache2::Request->new($r)

I don't recall if we support both (as you can tell I've been out of it for a 
while).

> package SimpleHandler;
> 
> use Apache2::Request;
> 
> sub handler {
>     my $r = shift;
>     my $apr = new Apache2::Request($r);
> 
>     print "Hello APR\n";
>     return Apache2::Const::OK;
> }
> 
> 1;

If that doesn't work,
perl -V
./configure for PERL, httpd,
Makefile.PL line for mod_perl and httpd-apreq


http://libapreq2.p6m7g8.net/group__apreq__xs__request.html

Seems like the doc build on http://httpd.apache.org/apreq is busted -- 
missing perl glue docs.   (I'll look into this soonish)




-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."

Mime
View raw message