Cant build libapreq2-2.08 - missing mod_perl sources??

"Tom Shaw" <[email protected]>
Newsgroups gmane.comp.apache.apreq
Message-ID <004501c78344$fa3f5da0$14061eac@tom>
I have posted this to the modperl list as well.  This was not done
intentionally, I just hadnt figured here would be a better location for the
post.

Sorry about that, it wont happen again.  Heres the post anyway:

Im sorry to ask this question but I have been looking for answers to this
problem for many hours and Ive found partial answers that I don't
understand.  I can usually solve problems but this one has me stumped.

Im trying to install libapreq2-2.08 on my debian box with Apache2.2.4 and
mod_perl 2.03 (with Perl 5.8.8)

Ive compiled apache/mod_perl/perl from source.

My configure line is:
./configure --enable-perl-glue
--with-apache2-apxs="/usr/local/apache2/bin/apxs"
--with-perl="/usr/local/bin/perl"

I don't get any problems with configuring.everything looks good.

When I 'make' I get the following log.

8< snip

make[2]: Entering directory `/usr/local/src/libapreq2-2.08/glue/perl'
cp lib/Apache2/Cookie.pm blib/lib/Apache2/Cookie.pm cp lib/Apache2/Upload.pm
blib/lib/Apache2/Upload.pm cp lib/Apache2/Request.pm
blib/lib/Apache2/Request.pm
make[3]: Entering directory `/usr/local/src/libapreq2-2.08/glue/perl/xs'
make[4]: Entering directory `/usr/local/src/libapreq2-2.08/glue/perl/xs/APR'
make[5]: Entering directory
`/usr/local/src/libapreq2-2.08/glue/perl/xs/APR/Request'
cp Request.pm ../../../blib/lib/APR/Request.pm cp Request.pod
../../../blib/lib/APR/Request.pod
make[6]: Entering directory
`/usr/local/src/libapreq2-2.08/glue/perl/xs/APR/Request/Apache2'
cp Apache2.pm ../../../../blib/lib/APR/Request/Apache2.pm
cp Apache2.pod ../../../../blib/lib/APR/Request/Apache2.pod
/usr/local/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp  -typemap
/usr/local/lib/perl5/5.8.8/ExtUtils/typemap -typemap
/usr/local/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/auto/Apache2/ty
pemap -typemap ../../../typemap  Apache2.xs > Apache2.xsc && mv Apache2.xsc
Apache2.c
cc -c  -I/usr/local/src/libapreq2-2.08/glue/perl/xs
-I/usr/local/src/libapreq2-2.08/include
-I/usr/local/src/libapreq2-2.08/glue/perl/xsbuilder
-I/usr/local/apache2/include  -I/usr/local/apache2/include  -D_REENTRANT
-D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe
-I/usr/local/include
-I/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE -DMOD_PERL
-DMP_COMPAT_1X -DLINUX=2 -D_LARGEFILE64_SOURCE -O2   -DVERSION=\"2.08\"
-DXS_VERSION=\"2.08\" -fpic
"-I/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE"   Apache2.c
In file included from Apache2.xs:39:
/usr/local/src/libapreq2-2.08/glue/perl/xsbuilder/apreq_xs_postperl.h:21:34:
error: modperl_perl_unembed.h: No such file or directory
/usr/local/src/libapreq2-2.08/glue/perl/xsbuilder/apreq_xs_postperl.h:24:33:
error: modperl_common_util.h: No such file or directory In file included
from Apache2.xs:45:
/usr/local/src/libapreq2-2.08/glue/perl/xsbuilder/APR/Request/Apache2/APR__R
equest__Apache2.h:1:22: error: mod_perl.h: No such file or directory
Apache2.c: In function 'XS_APR__Request__Apache2_handle':
Apache2.c:66: warning: initialization makes pointer from integer without a
cast
make[6]: *** [Apache2.o] Error 1
make[6]: Leaving directory
`/usr/local/src/libapreq2-2.08/glue/perl/xs/APR/Request/Apache2'
make[5]: *** [subdirs] Error 2
make[5]: Leaving directory
`/usr/local/src/libapreq2-2.08/glue/perl/xs/APR/Request'
make[4]: *** [subdirs] Error 2
make[4]: Leaving directory `/usr/local/src/libapreq2-2.08/glue/perl/xs/APR'
make[3]: *** [subdirs] Error 2
make[3]: Leaving directory `/usr/local/src/libapreq2-2.08/glue/perl/xs'
make[2]: *** [subdirs] Error 2
make[2]: Leaving directory `/usr/local/src/libapreq2-2.08/glue/perl'
make[1]: *** [perl_glue] Error 2
make[1]: Leaving directory `/usr/local/src/libapreq2-2.08/glue'
make: *** [all-recursive] Error 1

I understand what the errors are but Im not sure the best way to fix them.
I tried to move the header files in to the right locations needed by make
but that only created more errors.  Is there some method I need to use to
configure the location of the mod_perl2 sources? 

Some advice here would be greatly appreciated.

Cheers,
Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.