Re: Undefined subroutine error

2009-04-15 Thread Torsten Foertsch
On Wed 15 Apr 2009, Roberto C. Sánchez wrote: > > Would it be possible to post your module? Perhaps you forgot > > the "package" declaration? > > --8<-->8-- > > package Example::Image; Ok, then how about checking if your module is really loaded. Apache2::Status provides th

Re: Undefined subroutine error

2009-04-15 Thread Roberto C . Sánchez
On Wed, Apr 15, 2009 at 10:29:20AM +0200, Torsten Foertsch wrote: > > Ok, then how about checking if your module is really loaded. > Apache2::Status provides that or you could probably use this > PerlResponseHandler (untested): > > > SetHandler modperl > PerlResponseHandler "sub {

Compilation problem

2009-04-15 Thread Alan Boudreault
Hi, I'm trying to compile libapreq2 perl module, and i got an error. The perl header are properly installed in /usr/include/apache2/modules/perl/. I'm using OpenSuse 11.1. ./configure --enable-perl-glue --with-apache2-apxs=/usr/sbin/apxs2 -- ./libapreq2

Re: Compilation problem

2009-04-15 Thread Fred Moyer
On Wed, Apr 15, 2009 at 11:20 AM, Alan Boudreault wrote: > Hi, > > I'm trying to compile libapreq2 perl module, and i got an error. The perl > header are properly installed in /usr/include/apache2/modules/perl/. I'm using > OpenSuse 11.1. > > > ./configure --enable-perl-glue --with-apache2-apxs=/u

Re: Compilation problem

2009-04-15 Thread Fred Moyer
On Wed, Apr 15, 2009 at 11:46 AM, Fred Moyer wrote: > On Wed, Apr 15, 2009 at 11:20 AM, Alan Boudreault > wrote: >> Hi, >> >> I'm trying to compile libapreq2 perl module, and i got an error. The perl >> header are properly installed in /usr/include/apache2/modules/perl/. I'm >> using >> OpenSuse

Re: Compilation problem

2009-04-15 Thread Alan Boudreault
Unfortunatly, both solutions didn't work. Alan On April 15, 2009 02:50:13 pm Fred Moyer wrote: > On Wed, Apr 15, 2009 at 11:46 AM, Fred Moyer wrote: > > On Wed, Apr 15, 2009 at 11:20 AM, Alan Boudreault > > > > wrote: > >> Hi, > >> > >> I'm trying to compile libapreq2 perl module, and i got an

Re: Compilation problem

2009-04-15 Thread Fred Moyer
On Wed, Apr 15, 2009 at 12:03 PM, Alan Boudreault wrote: > Unfortunatly, both solutions didn't work. Ugh, coffee hasn't kicked in yet here :) Looks like it should be CPPFLAGS instead of CFLAGS [1]. If that doesn't work, you can edit the generated Makefile by hand and add /usr/include/apache2/mo

Re: Compilation problem

2009-04-15 Thread Alan Boudreault
I finally got it. I've modified the file "glue/perl/Makefile.PL" and added these 2 lines: +$apache_includes .= " -I/usr/include/apache2/modules/perl"; + Thanks Fred! Alan On April 15, 2009 03:06:45 pm Fred Moyer wrote: > On Wed, Apr 15, 2009 at 12:03 PM, Alan Boudreault > > wrote: > > Unf