httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Galbreath" <Galbrea...@gao.gov>
Subject Re: More on httpd2.2, libapreq2, apr and mod_perl2 not playing nice
Date Mon, 30 Jan 2006 14:10:57 GMT
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 <ben@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



Mime
View raw message