You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Mark Galbreath <Ga...@gao.gov> on 2006/01/30 15:10:57 UTC

Re: More on httpd2.2, libapreq2, apr and mod_perl2 not playing nice

Apache2 comes with APR built in; you do not need to install it separately.  You are finding what a big PITA that results in.
 
Mark

>>> ben syverson <be...@elsif.org> 29-Jan-06 18:05 PM >>>

Sorry for the cross-post, but I've recompiled everything so many  
times I'm starting to lose track of reality...

I've just recompiled APR 1.2.2 and installed it into /usr/local/apr  
-- both APR and APR-util. They both passed "make test"...

Then I recompiled httpd:
make clean
./configure CFLAGS="-O3" \
--prefix=/usr/local/etc/apache2 \
--with-apr=/usr/local/apr/ \
--with-apr-util=/usr/local/apr/ \
--disable-actions \
--disable-asis \
--disable-auth \
--disable-autoindex \
--disable-access \
--disable-cgi \
--disable-cgid \
--disable-charset-lite \
--disable-imagemap \
--disable-include \
--disable-negotiation \
--disable-userdir \
--enable-auth-dbm
make
make install

Then I recompiled libapreq 2.06-dev:
gmake clean
perl Makefile.PL \
--with-apache2-apxs=/usr/local/etc/apache2/bin/apxs \
  --with-apr-config=/usr/local/apr/bin/apr-1-config \
--with-apu-config=/usr/local/apr/bin/apu-1-config
gmake
gmake install

Then I recompiled mod_perl 2.02
perl Makefile.PL \
MP_APXS=/usr/local/etc/apache2/bin/apxs \
MP_APR_CONFIG=/usr/local/apr/bin/apr-1-config
make

Then mod_perl2 refuses to build:
ThreadMutex.c: In function `XS_APR__ThreadMutex_new':
ThreadMutex.c:51: error: `APR_THREAD_MUTEX_DEFAULT' undeclared (first  
use in this function)
ThreadMutex.c:51: error: (Each undeclared identifier is reported only  
once
ThreadMutex.c:51: error: for each function it appears in.)
ThreadMutex.c: In function `XS_APR__ThreadMutex_pool_get':
ThreadMutex.c:133: warning: assignment makes pointer from integer  
without a cast
*** Error code 1

Stop in /usr/home/root/mod_perl-2.0.2/WrapXS/APR/ThreadMutex.
*** Error code 1


<sigh>

Any ideas?

thanks in advance,

- ben



Re: More on httpd2.2, libapreq2, apr and mod_perl2 not playing nice

Posted by Ryan Perry <ma...@madisonip.com>.
On Jan 30, 2006, at 8:10 AM, Mark Galbreath wrote:

> Apache2 comes with APR built in; you do not need to install it  
> separately.  You are finding what a big PITA that results in.
>

Nonetheless there seems to be a problem here, I've experienced the  
same problem on FreeBSD 6.0 (but I didn't do anything with APR).   
mod_perl2.02 won't build.  How do we fix it?

Re: More on httpd2.2, libapreq2, apr and mod_perl2 not playing nice

Posted by Ryan Perry <ma...@madisonip.com>.
On Jan 30, 2006, at 8:10 AM, Mark Galbreath wrote:

> Apache2 comes with APR built in; you do not need to install it  
> separately.  You are finding what a big PITA that results in.
>

Nonetheless there seems to be a problem here, I've experienced the  
same problem on FreeBSD 6.0 (but I didn't do anything with APR).   
mod_perl2.02 won't build.  How do we fix it?