On 1/8/07, Sander Temme <[EMAIL PROTECTED]> wrote:
On Jan 5, 2007, at 6:42 AM, Justin Johnson wrote:
> My new problem is that apr-util has a problem with a statically linked
> ldap. See below.
>
> /svn/static/build/httpd-2.2.3/srclib/apr-util>./configure \
> > --prefix=$base_dir/apr-util-httpd \
> > --enable-static=yes \
> > --enable-shared=no \
> > --with-ldap=$base_dir \
> > --with-apr=$base_dir/apr-httpd
Did you also build apr-util? Try specifying --with-apr-util=
$base_dir/apr-httpd/bin/apu-1-config as well as --with-apr=$base_dir/
apr-httpd/bin/apr-1-config (assuming you installed them in the same
place).
My question is related to trying to build apr-util. What do you mean
"did you also build apr-util?"
Note that you need to explicitly tell your apr-util build about --
with-ldap=... (in the default build config it'd inherit that from the
httpd ./configure).
That's what I do above. I am trying to build apr-util, and I specify
--with-ldap=$base_dir.
Building apr and apr-util separately is not usually required for a
build, but it does give you finer-grained control over what gets
generated.
When I try to build everything (httpd, apr, apr-util) from a single
configure at the top level, it doesn't find apr (since it isn't built
yet) and when I try to do a make when the configure completes I get an
error if I call "make".
cd $build_dir/httpd-2.2.3
./configure \
--prefix=$base_dir/apache2.2 \
--with-apr=$base_dir/apr-httpd \
--with-apr-util=$base_dir/apr-util-httpd \
--enable-static=yes \
--enable-shared=no \
--enable-so \
--without-berkeley-db \
--enable-ssl \
--with-ssl=$base_dir \
--enable-dav=shared \
--enable-dav-fs=shared \
--enable-dav-lock=shared \
--enable-ldap \
--with-ldap=$base_dir \
--with-ldap-include=$base_dir/include \
--with-ldap-lib=$base_dir/lib/libldap.a \
--enable-authnz-ldap \
--enable-rewrite
[output snipped]
svnadm /svn/static/build/httpd-2.2.3>make
Making all in srclib
make[1]: Entering directory `/svn/static/build/httpd-2.2.3/srclib'
Making all in apr
make[2]: Entering directory `/svn/static/build/httpd-2.2.3/srclib/apr'
make[3]: Entering directory `/svn/static/build/httpd-2.2.3/srclib/apr'
make[3]: Nothing to be done for `local-all'.
make[3]: Leaving directory `/svn/static/build/httpd-2.2.3/srclib/apr'
make[2]: Leaving directory `/svn/static/build/httpd-2.2.3/srclib/apr'
Making all in apr-util
make[2]: Entering directory `/svn/static/build/httpd-2.2.3/srclib/apr-util'
make[2]: *** No rule to make target `all'. Stop.
make[2]: Leaving directory `/svn/static/build/httpd-2.2.3/srclib/apr-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/svn/static/build/httpd-2.2.3/srclib'
make: *** [all-recursive] Error 1
svnadm /svn/static/build/httpd-2.2.3>
I assumed I had to build them separately. I read that somewhere too.
When you build APR (and APR-util), does the build follow your
specified shared/static requirements? Does the static archive
statically link against that holy grail, the gcc runtime?
APR does. I can't get APR-util built though because it can't find openldap.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]