Compilation problem
am 15.04.2009 20:20:27 von Alan Boudreault
Hi,
I'm trying to compile libapreq2 perl module, and i got an error. The perl=20
header are properly installed in /usr/include/apache2/modules/perl/. I'm us=
ing=20
OpenSuse 11.1.
=20
/configure --enable-perl-glue --with-apache2-apxs=3D/usr/sbin/apxs2
=2D-----------------------------------------
/libapreq2-2.12/glue/perl/xsbuilder/apreq_xs_postperl.h:2 2:34: error:=20
modperl_perl_unembed.h: No such file or directory
/libapreq2-2.12/glue/perl/xsbuilder/apreq_xs_postperl.h:2 5:33: error:=20
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/A PR__Request__Ap=
ache2.h:1:26:=20
error: modperl_perl.h: No such file or directory
Apache2.c: In function â=98XS_APR__Request__Apache2_handleâ=99:
Apache2.c:75: warning: implicit declaration of function=20
â=98modperl_xs_sv2request_recâ=99
Apache2.c:75: warning: initialization makes pointer from integer without a=
=20
cast
make[6]: *** [Apache2.o] Error 1
make[6]: Leaving directory=20
`/home/aboudreault/libapreq2-2.12/glue/perl/xs/APR/Request/A pache2'
make[5]: *** [subdirs] Error 2
make[5]: Leaving directory=20
`/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/A=
PR'
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
=2D-
Alan Boudreault
Mapgears
http://www.mapgears.com
Re: Compilation problem
am 15.04.2009 20:46:10 von 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=3D/usr/sbin/apxs2
Try this:
../configure --includedir=3D/usr/include/apache2/modules/perl
--enable-perl-glue --with-apache2-apxs=3D/usr/sbin/apxs2
> ------------------------------------------
> ./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__Ap=
ache2.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/A pache2'
> 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
>
Re: Compilation problem
am 15.04.2009 20:50:13 von 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 per=
l
>> 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 __Request__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/A pache2'
>> 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/x=
s/APR'
>> make[3]: *** [subdirs] Error 2
>> make[3]: Leaving directory `/home/aboudreault/libapreq2-2.12/glue/perl/x=
s'
>> 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
>>
>
Re: Compilation problem
am 15.04.2009 21:03:23 von 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 wro=
te:
> > 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 __Request_=
_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 witho=
ut
> >> a cast
> >> make[6]: *** [Apache2.o] Error 1
> >> make[6]: Leaving directory
> >> `/home/aboudreault/libapreq2-2.12/glue/perl/xs/APR/Request/A pache2'
> >> 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
=2D-=20
=2D-
Alan Boudreault
Mapgears
http://www.mapgears.com
Re: Compilation problem
am 15.04.2009 21:06:45 von 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/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 pack=
ages
--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=3Dyes]
--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 wr=
ote:
>> > 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 =A0post 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 =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 with=
out
>> >> a cast
>> >> make[6]: *** [Apache2.o] Error 1
>> >> make[6]: Leaving directory
>> >> `/home/aboudreault/libapreq2-2.12/glue/perl/xs/APR/Request/A pache2'
>> >> 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/per=
l'
>> >> 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
>
Re: Compilation problem
am 15.04.2009 21:37:02 von Alan Boudreault
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/A pache2'
> >> >> 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