[EMAIL PROTECTED] wrote:
> stas        2004/08/25 10:20:11
> 
>   Modified:    lib/Apache Build.pm
>                .        Changes
>   Log:
>   fix the modperl build, where httpd has been built against separate
>   installations of apr-util and apr, where apr-util has been installed
>   with a different includedir to apr.
>   Submitted by:       Joe Orton

hey joe :)

did this patch alone really solve the problem for you?  I can't get mod_perl
to compile against httpd-2.1-rc1 with an external apr/apu.

here's what I did (which sounds exactly like what you described in the other
thread):

build apr and apr-util from cvs HEAD an install to:
  /apr/1.0/bin/apr-1-config
  /apr-util/1.0/bin/apr-1-config

build httpd-2.1.0-rc1 with the following:

 NOTEST_CFLAGS="-Werror"  CFLAGS="-DAP_UNSAFE_ERROR_LOG_UNESCAPED"
./configure --with-mpm=worker --enable-maintainer-mode
--enable-mods-shared=all --without-execstrip --enable-modules=all
--enable-deflate=shared  --enable-proxy=shared --disable-log-forensic
--prefix=/apache/2.1.0-rc1 --with-apr=/apr/1.0/bin/apr-1-config
--with-apr-util=/apr-util/1.0/bin/apu-1-config

the point mod_perl cvs against that apache:

   $ perl Makefile.PL MP_APXS=/apache/2.1.0-rc1/bin/apxs

mod_perl eventually errors out on make with:

cc -I/src/mod_perl-2.0/src/modules/perl -I/src/mod_perl-2.0/xs
-I/apr/1.0/include/apr-1 -I/apache/2.1.0-rc1/include -D_REENTRANT
-D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include -I/usr/include/gdbm
-I/perl/perl-5.8.5/lib/5.8.5/i686-linux-thread-multi/CORE -DMOD_PERL -Wall
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror
-DAP_DEBUG -DAP_HAVE_DESIGNATED_INITIALIZER -DMP_DEBUG -DMP_TRACE -DLINUX=2
-D_LARGEFILE64_SOURCE -DAP_DEBUG -g -fpic \
-c mod_perl.c && mv mod_perl.o mod_perl.lo
In file included from /apache/2.1.0-rc1/include/httpd.h:29,
                 from modperl_apache_includes.h:26,
                 from mod_perl.h:19,
                 from mod_perl.c:16:
/apache/2.1.0-rc1/include/ap_config.h:20:23: apr_hooks.h: No such file or
directory

so it looks like /apr-util/1.0/include/apr-1/ and /apr/1.0/include/apr-1/
are still both missing.

--Geoff

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to