Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 10820 invoked from network); 15 Apr 2009 19:34:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Apr 2009 19:34:07 -0000 Received: (qmail 80828 invoked by uid 500); 15 Apr 2009 19:34:05 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 80760 invoked by uid 500); 15 Apr 2009 19:34:04 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 80752 invoked by uid 99); 15 Apr 2009 19:34:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2009 19:34:04 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [67.192.241.135] (HELO smtp135.dfw.emailsrvr.com) (67.192.241.135) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2009 19:33:55 +0000 Received: from relay3.relay.dfw.mlsrvr.com (localhost [127.0.0.1]) by relay3.relay.dfw.mlsrvr.com (SMTP Server) with ESMTP id 74D295D80A8; Wed, 15 Apr 2009 15:33:34 -0400 (EDT) Received: by relay3.relay.dfw.mlsrvr.com (Authenticated sender: aboudreault-AT-mapgears.com) with ESMTPSA id 5DAD05D80C6; Wed, 15 Apr 2009 15:33:34 -0400 (EDT) From: Alan Boudreault Organization: Mapgears To: Fred Moyer Subject: Re: Compilation problem Date: Wed, 15 Apr 2009 15:37:02 -0400 User-Agent: KMail/1.11.1 (Linux/2.6.27-13-generic; KDE/4.2.1; i686; ; ) Cc: modperl@perl.apache.org References: <200904151420.27849.aboudreault@mapgears.com> <200904151503.23522.aboudreault@mapgears.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200904151537.02278.aboudreault@mapgears.com> X-Virus-Checked: Checked by ClamAV on apache.org I finally got it. I've modified the file "glue/perl/Makefile.PL" and added= =20 these 2 lines: + $apache_includes .=3D " -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: > > 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] > phred@pooky ~/dev/svn/sl/trunk/SL-App/src/libapreq2-2.12 $ ./configure > --help | grep include > --help=3Drecursive display the short help of all the included > packages --includedir=3DDIR C header files [PREFIX/include] > --oldincludedir=3DDIR C header files for non-gcc [/usr/include] > --disable-FEATURE do not include FEATURE (same as > --enable-FEATURE=3Dno) --enable-FEATURE[=3DARG] include FEATURE [ARG=3Dy= es] > --with-tags[=3DTAGS] include additional configurations [automatic] > CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I = if > you have headers in a nonstandard directory > > > Alan > > > > On April 15, 2009 02:50:13 pm Fred Moyer wrote: > >> On Wed, Apr 15, 2009 at 11:46 AM, Fred Moyer = =20 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 11.1. > >> >> > >> >> > >> >> ./configure --enable-perl-glue --with-apache2-apxs=3D/usr/sbin/apxs2 > >> > > >> > Try this: > >> > > >> > ./configure --includedir=3D/usr/include/apache2/modules/perl > >> > --enable-perl-glue --with-apache2-apxs=3D/usr/sbin/apxs2 > >> > >> Sorry, that should have probably been: > >> > >> CFLAGS=3D-I/usr/include/apache2/modules/perl ./configure > >> --enable-perl-glue --with-apache2-apxs=3D/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__Reque= st > >> >>__A pache2.h:1:26: error: modperl_perl.h: No such file or directory > >> >> Apache2.c: In function =91XS_APR__Request__Apache2_handle=92: > >> >> Apache2.c:75: warning: implicit declaration of function > >> >> =91modperl_xs_sv2request_rec=92 > >> >> 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_glu= e] > >> >> 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 =2D-=20 =2D- Alan Boudreault Mapgears http://www.mapgears.com