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
>
> <aboudrea...@mapgears.com> 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/modules/perl to the include path for compilation.
>
> Are you using the OpenSUSE mod_perl install?
>
>
> [1]
> ph...@pooky ~/dev/svn/sl/trunk/SL-App/src/libapreq2-2.12 $ ./configure
> --help | grep include
>       --help=recursive    display the short help of all the included
> packages --includedir=DIR       C header files [PREFIX/include]
>   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
>   --disable-FEATURE       do not include FEATURE (same as
> --enable-FEATURE=no) --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
>   --with-tags[=TAGS]      include additional configurations [automatic]
>   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
>               you have headers in a nonstandard directory <include dir>
>
> > Alan
> >
> > On April 15, 2009 02:50:13 pm Fred Moyer wrote:
> >> On Wed, Apr 15, 2009 at 11:46 AM, Fred Moyer <f...@redhotpenguin.com> 
wrote:
> >> > On Wed, Apr 15, 2009 at 11:20 AM, Alan Boudreault
> >> >
> >> > <aboudrea...@mapgears.com> 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=/usr/sbin/apxs2
> >> >
> >> > Try this:
> >> >
> >> > ./configure --includedir=/usr/include/apache2/modules/perl
> >> > --enable-perl-glue --with-apache2-apxs=/usr/sbin/apxs2
> >>
> >> Sorry, that should have probably been:
> >>
> >> CFLAGS=-I/usr/include/apache2/modules/perl ./configure
> >> --enable-perl-glue --with-apache2-apxs=/usr/sbin/apxs2
> >>
> >> I believe the previous  post installs the libapreq include files in
> >> that directory.
> >>
> >> >> ------------------------------------------
> >> >> ./libapreq2-2.12/glue/perl/xsbuilder/apreq_xs_postperl.h:22:34:
> >> >> error: modperl_perl_unembed.h: No such file or directory
> >> >> ./libapreq2-2.12/glue/perl/xsbuilder/apreq_xs_postperl.h:25:33:
> >> >> error: modperl_common_util.h: No such file or directory
> >> >> In file included from Apache2.xs:45:
> >> >> ./libapreq2-2.12/glue/perl/xsbuilder/APR/Request/Apache2/APR__Request
> >> >>__A pache2.h:1:26: error: modperl_perl.h: No such file or directory
> >> >> Apache2.c: In function ‘XS_APR__Request__Apache2_handle’:
> >> >> Apache2.c:75: warning: implicit declaration of function
> >> >> ‘modperl_xs_sv2request_rec’
> >> >> Apache2.c:75: warning: initialization makes pointer from integer
> >> >> without a cast
> >> >> make[6]: *** [Apache2.o] Error 1
> >> >> make[6]: Leaving directory
> >> >> `/home/aboudreault/libapreq2-2.12/glue/perl/xs/APR/Request/Apache2'
> >> >> make[5]: *** [subdirs] Error 2
> >> >> make[5]: Leaving directory
> >> >> `/home/aboudreault/libapreq2-2.12/glue/perl/xs/APR/Request'
> >> >> make[4]: *** [subdirs] Error 2
> >> >> make[4]: Leaving directory
> >> >> `/home/aboudreault/libapreq2-2.12/glue/perl/xs/APR' make[3]: ***
> >> >> [subdirs] Error 2
> >> >> make[3]: Leaving directory
> >> >> `/home/aboudreault/libapreq2-2.12/glue/perl/xs' make[2]: ***
> >> >> [subdirs] Error 2
> >> >> make[2]: Leaving directory
> >> >> `/home/aboudreault/libapreq2-2.12/glue/perl' make[1]: *** [perl_glue]
> >> >> Error 2
> >> >> make[1]: Leaving directory `/home/aboudreault/libapreq2-2.12/glue'
> >> >> make: *** [all-recursive] Error 1
> >> >>
> >> >> Any hint plz ?
> >> >>
> >> >> Regards,
> >> >> Alan
> >> >>
> >> >> --
> >> >> Alan Boudreault
> >> >> Mapgears
> >> >> http://www.mapgears.com
> >
> > --
> > --
> > Alan Boudreault
> > Mapgears
> > http://www.mapgears.com

-- 
--
Alan Boudreault
Mapgears
http://www.mapgears.com

Reply via email to