You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Philip M. Gollucci" <ph...@p6m7g8.com> on 2003/02/22 18:05:30 UTC
apr, apr-util locations for httpd2 compile: ls: /usr/home/philip/Developement/src/httpd2-HEAD-dev/srclib/apr/include/*.h:
Thanks for the previous tip about the symlinks Justin. That fixes that.
Now for the next one, I know I can fix this if I just put the apr, apr-util in
httpd2.0/srclib, but I remember quite a bit of discussion/effort on this list
to make buildconf and configure work with apr and apr-util outside of the
source tree.
OS is FreeBSD 5.0-CURRENT
In my case
./buildconf --with-apr=$DIR_SRC/apr --with-apr-util=$DIR_SRC/apr-util
./configure --prefix=$DIR_INSTALL/apache2-$HTTPD2_MPM --with-perl=$PERL \
--with-mpm=$HTTPD2_MPM --enable-mods-shared=all \
--enable-maintainer-mode --enable-debug \
--with-port=$HTTPD2_PORT \
--with-apr=$DIR_SRC/apr --with-apr-util=$DIR_SRC/apr-util
FYI: this directory is $DIR_SRC
ls -d
apr
apr-util
httpd2.0
srclib
pcre
Eventually I get this in the prefork directory
tmp=export_files_unsorted.txt; rm -f $tmp && touch $tmp; for dir in
/usr/home/philip/Developement/src/httpd2-HEAD-dev/include
/usr/home/philip/Developement/src/httpd2-HEAD-dev/os/unix
/usr/home/philip/Developement/src/apr/include
/usr/home/philip/Developement/src/httpd2-HEAD-dev/srclib/apr/include
/usr/home/philip/Developement/src/apr-util/include
/usr/home/philip/Developement/src/httpd2-HEAD-dev/srclib/apr-util/include
/usr/home/philip/Developement/src/httpd2-HEAD-dev/modules/http; do ls
$dir/*.h >> $tmp; done; sort -u $tmp > export_files; rm -f $tmp
ls: /usr/home/philip/Developement/src/httpd2-HEAD-dev/srclib/apr/include/*.h:
No such file or directory
*** Error code 1
Stop in /usr/home/philip/Developement/src/httpd2-HEAD-dev/server.
*** Error code 1
Stop in /usr/home/philip/Developement/src/httpd2-HEAD-dev/server.
*** Error code 1
--
END
------------------------------------------------------------------------------
Philip M. Gollucci philip@p6m7g8.com 301.474.9294 301.646.3011 (cell)
Science, Discovery, & the Universe (UMCP)
Webmaster & Webship Teacher
URL: http://www.sdu.umd.edu
eJournalPress
Database/PERL Programmer & System Admin
URL : http://www.ejournalpress.com
Resume : http://p6m7g8.net/Resume
Re: apr, apr-util locations for httpd2 compile...
Posted by "Philip M. Gollucci" <ph...@p6m7g8.com>.
I think this was probably some wierd problem resulting my symlinks for
earlier.
Question however,
the --with-apr options, they have to point to a already directory where
./configure ; make have already been run and not just a cvs checkout ?
IF so, it might be useful to add that to the messages for docs somewhere.
Thanks for all the help. I now have a 2.1.0 CVS build running.
:)
On Sunday 23 February 2003 02:26, Justin Erenkrantz wrote:
> --On Saturday, February 22, 2003 9:17 PM +0000 "Philip M. Gollucci"
>
> <ph...@p6m7g8.com> wrote:
> > Here it is
> ># ! /bin/sh
> >#
> ># Created by configure
> >
> > "/usr/home/philip/Developement/src/httpd2-HEAD-dev/srclib/apr/confi
> > gure" \
>
> Do you mean to be doing a VPATH build? That is, this layout suggests
> that you have the following:
>
> src/
> apr <- build dir for APR
> apr-util <- build dir for APR-util
> httpd2-HEAD-dev <- source & build dir for APR-util
> srclib
> apr <- src dir for APR
> apr-util <- src dir for APR-util
>
> Do you happen to have a stale build in
> src/httpd2-HEAD-dev/srclib/apr? That is, do you have
> src/httpd2-HEAD-dev/srclib/apr/include/apr.h?
>
> Or, did you happen to build APR in src/httpd2-HEAD-dev/srclib/apr,
> then decided to move the build tree after you built it? You can't do
> that. =) -- justin
--
END
------------------------------------------------------------------------------
Philip M. Gollucci philip@p6m7g8.com 301.474.9294 301.646.3011 (cell)
Science, Discovery, & the Universe (UMCP)
Webmaster & Webship Teacher
URL: http://www.sdu.umd.edu
eJournalPress
Database/PERL Programmer & System Admin
URL : http://www.ejournalpress.com
Resume : http://p6m7g8.net/Resume
Re: apr, apr-util locations for httpd2 compile...
Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Saturday, February 22, 2003 9:17 PM +0000 "Philip M. Gollucci"
<ph...@p6m7g8.com> wrote:
> Here it is
># ! /bin/sh
>#
># Created by configure
>
> "/usr/home/philip/Developement/src/httpd2-HEAD-dev/srclib/apr/confi
> gure" \
Do you mean to be doing a VPATH build? That is, this layout suggests
that you have the following:
src/
apr <- build dir for APR
apr-util <- build dir for APR-util
httpd2-HEAD-dev <- source & build dir for APR-util
srclib
apr <- src dir for APR
apr-util <- src dir for APR-util
Do you happen to have a stale build in
src/httpd2-HEAD-dev/srclib/apr? That is, do you have
src/httpd2-HEAD-dev/srclib/apr/include/apr.h?
Or, did you happen to build APR in src/httpd2-HEAD-dev/srclib/apr,
then decided to move the build tree after you built it? You can't do
that. =) -- justin
Re: apr, apr-util locations for httpd2 compile...
Posted by "Philip M. Gollucci" <ph...@p6m7g8.com>.
Here it is
#! /bin/sh
#
# Created by configure
"/usr/home/philip/Developement/src/httpd2-HEAD-dev/srclib/apr/configure" \
"--prefix=/home/philip/Developement/install/apache2-prefork" \
"--with-perl=/home/philip/Developement/install/perl/bin/perl" \
"--with-mpm=prefork" \
"--enable-mods-shared=all" \
"--enable-maintainer-mode" \
"--enable-debug" \
"--with-port=9000" \
"--cache-file=/dev/null" \
"--srcdir=/usr/home/philip/Developement/src/httpd2-HEAD-dev/srclib/apr" \
"--prefix=/home/philip/Developement/install/apache2-prefork" \
"--exec-prefix=/home/philip/Developement/install/apache2-prefork" \
"--libdir=/home/philip/Developement/install/apache2-prefork/lib" \
"--includedir=/home/philip/Developement/install/apache2-prefork/include" \
"--bindir=/home/philip/Developement/install/apache2-prefork/bin" \
"--datadir=/home/philip/Developement/install/apache2-prefork" \
"--with-installbuilddir=/home/philip/Developement/install/apache2-prefork/build"
\
"$@"
On Saturday 22 February 2003 22:47, Justin Erenkrantz wrote:
> --On Saturday, February 22, 2003 5:41 PM +0000 "Philip M. Gollucci"
>
> <ph...@p6m7g8.com> wrote:
> >> It should just be saying ~philip/Development/src/apr/include.
> >
> > Well thats the problem, now question is what did I do wrong ?
>
> Can you please post your config.nice from src/apr?
>
> Thanks! -- justin
--
END
------------------------------------------------------------------------------
Philip M. Gollucci philip@p6m7g8.com 301.474.9294 301.646.3011 (cell)
Science, Discovery, & the Universe (UMCP)
Webmaster & Webship Teacher
URL: http://www.sdu.umd.edu
eJournalPress
Database/PERL Programmer & System Admin
URL : http://www.ejournalpress.com
Resume : http://p6m7g8.net/Resume
Re: apr, apr-util locations for httpd2 compile...
Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Saturday, February 22, 2003 5:41 PM +0000 "Philip M. Gollucci"
<ph...@p6m7g8.com> wrote:
>> It should just be saying ~philip/Development/src/apr/include.
>
> Well thats the problem, now question is what did I do wrong ?
Can you please post your config.nice from src/apr?
Thanks! -- justin
Re: apr, apr-util locations for httpd2 compile...
Posted by "Philip M. Gollucci" <ph...@p6m7g8.com>.
I have to run out for a while, so I won't be able to reply to this one till
later. Thanks for all the help though.
> The problem here is that src/apr/include and
> srclib/httpd2-HEAD-dev/apr/include are both listed. What does:
>
> src/apr/apr-config --includedir
>
> output? (guessing src/apr-util/apu-config would say the same thing.)
[ttyp2] philip@p6m7g8.com /home/philip/Developement/src/apr rv=1 177
./apr-config --includedir
/usr/home/philip/Developement/src/apr/include
/usr/home/philip/Developement/src/httpd2-HEAD-dev/srclib/apr/include
[ttyp2] philip@p6m7g8.com /home/philip/Developement/src/apr-util rv=0 181
>./apu-config --includedir
/usr/home/philip/Developement/src/apr-util/include
/usr/home/philip/Developement/src/httpd2-HEAD-dev/srclib/apr-util/include
> It should just be saying ~philip/Development/src/apr/include.
Well thats the problem, now question is what did I do wrong ?
> You aren't by chance using APACHE_2_0_BRANCH for httpd, are you?
> It's configure.in has:
nope its explicit
cvs -d pserver:anoncvs@cvs.apache.org:/home/cvspublic co -R -rHEAD
-dhttpd2-HEAD-dev httpd-2.0
cvs status configure.in
===================================================================
File: configure.in Status: Up-to-date
Working revision: 1.244
Repository revision: 1.244 /home/cvspublic/httpd-2.0/configure.in,v
Sticky Tag: HEAD (revision: 1.244)
Sticky Date: (none)
Sticky Options: (none)
END
------------------------------------------------------------------------------
Philip M. Gollucci philip@p6m7g8.com 301.474.9294 301.646.3011 (cell)
Science, Discovery, & the Universe (UMCP)
Webmaster & Webship Teacher
URL: http://www.sdu.umd.edu
eJournalPress
Database/PERL Programmer & System Admin
URL : http://www.ejournalpress.com
Resume : http://p6m7g8.net/Resume
Re: apr, apr-util locations for httpd2 compile...
Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Saturday, February 22, 2003 5:05 PM +0000 "Philip M. Gollucci"
<ph...@p6m7g8.com> wrote:
> Eventually I get this in the prefork directory
>
> tmp=export_files_unsorted.txt; rm -f $tmp && touch $tmp; for dir
> in /usr/home/philip/Developement/src/httpd2-HEAD-dev/include
> /usr/home/philip/Developement/src/httpd2-HEAD-dev/os/unix
> /usr/home/philip/Developement/src/apr/include
> /usr/home/philip/Developement/src/httpd2-HEAD-dev/srclib/apr/includ
> e /usr/home/philip/Developement/src/apr-util/include
> /usr/home/philip/Developement/src/httpd2-HEAD-dev/srclib/apr-util/i
> nclude
> /usr/home/philip/Developement/src/httpd2-HEAD-dev/modules/http; do
The problem here is that src/apr/include and
srclib/httpd2-HEAD-dev/apr/include are both listed. What does:
src/apr/apr-config --includedir
output? (guessing src/apr-util/apu-config would say the same thing.)
It should just be saying ~philip/Development/src/apr/include.
You aren't by chance using APACHE_2_0_BRANCH for httpd, are you?
It's configure.in has:
CPPFLAGS="$CPPFLAGS -I$APR_SOURCE_DIR/include
-I$abs_builddir/srclib/apr/include"
That might explain things. =) We haven't begun to merge any of the
required fixes back to APACHE_2_0_BRANCH. -- justin