You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tom Shaw <ac...@zerofiveone.com> on 2007/04/20 13:41:12 UTC

libapreq2-2.08 installation troubles - missing mod_perl source files

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


RE: libapreq2-2.08 installation troubles - missing mod_perl source files

Posted by Tom Shaw <ac...@zerofiveone.com>.
I did a make install in my mod_perl source folder and everything worked
perfectly with the libapreq2 installation.

I did the mod_perl installed a few weeks ago so that explains things.

Your help is much appreciated.  Its alyways the blindingly obvious things
that catch me...cant see the wood for the trees etc.

Cheers,
Tom


-----Original Message-----
From: Philip M. Gollucci [mailto:pgollucci@p6m7g8.com] 
Sent: 20 April 2007 17:37
To: Tom Shaw
Cc: modperl@perl.apache.org
Subject: Re: libapreq2-2.08 installation troubles - missing mod_perl source
files

Did you actually "make install" in the mod_perl source tree ?

> My configure line is:
> ./configure --enable-perl-glue
> --with-apache2-apxs="/usr/local/apache2/bin/apxs"
> --with-perl="/usr/local/bin/perl"
I use this typically
./configure \
     --prefix=$SOFTWARE/apreq/2.08/5.8.8-2.2.4-prefork-2.0.3 \
     --with-perl=$SOFTWARE/perl/5.8.8/bin/perl \
     --with-apache2-apxs=$SOFTWARE/httpd/2.2.4/prefork/bin/apxs \
     --enable-perl-glue \
     --enable-maintainer-mode

Also, fixed in svn for 2.09 is an bug for autoconf 2.60
Other versions work fine.

I believe you are hitting the autoconf bug based on the below combined
with forgetting to do a make install in the mod_perl tree.

Changes:
  Build [Philip M. Gollucci]
   code around |#_!!_#| autoconf 2.60 bug.
http://svn.apache.org/viewvc?view=rev&revision=439245


> 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


-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.


Re: libapreq2-2.08 installation troubles - missing mod_perl source files

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Did you actually "make install" in the mod_perl source tree ?

> My configure line is:
> ./configure --enable-perl-glue
> --with-apache2-apxs="/usr/local/apache2/bin/apxs"
> --with-perl="/usr/local/bin/perl"
I use this typically
./configure \
     --prefix=$SOFTWARE/apreq/2.08/5.8.8-2.2.4-prefork-2.0.3 \
     --with-perl=$SOFTWARE/perl/5.8.8/bin/perl \
     --with-apache2-apxs=$SOFTWARE/httpd/2.2.4/prefork/bin/apxs \
     --enable-perl-glue \
     --enable-maintainer-mode

Also, fixed in svn for 2.09 is an bug for autoconf 2.60
Other versions work fine.

I believe you are hitting the autoconf bug based on the below combined
with forgetting to do a make install in the mod_perl tree.

Changes:
  Build [Philip M. Gollucci]
   code around |#_!!_#| autoconf 2.60 bug.
http://svn.apache.org/viewvc?view=rev&revision=439245


> 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


-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.