[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

From: Gavin Kistner <gavin_at_refinery.com>
Date: 2004-03-08 17:16:32 CET

Summary:
========================================================
I'm trying to install SVN server with Apache2, and I can't get apache
built with Berkeley4.2. I've read the FAQ, applied the patch, and
attempted numerous ways to get it to work. No glory. Help? Please?

SLIGHTLY MORE INFORMATION
========================================================
System Details:
350MHz PII, 128MB RAM
Slackware 9.0
BerkeleyDB 4.2.52
HTTPd 2.0.48

I built and installed bdb correctly. (I assume...I followed the
instructions, received no errors, and now see a full
/usr/local/BerkeleyDB.4.2/ directory.)

I've tried my apache2 ./configure line before and after the patch
(http://subversion.tigris.org/db42-support-patch.txt), with only
--with-dbm=42, only --with-berkeley-db=/usr/local/BerkeleyDB.4.2, and
with both.

In all 6 cases it fails. A summary of the cases follows, and after that
is more verbose output with the actual errors (and with probably
irrelevant content snipped).

ERRORS OVERVIEW
========================================================
# PRE-PATCH, WITH BOTH CONFIGURE PARAMS
APR-util configure fails

# PRE-PATCH, WITH DBM PARAM ONLY
APR-util configure fails

# PRE-PATCH, WITH PATH PARAM ONLY
Full configure completes without error. (APR-util configure starts
looking for 4.1, not 4.2)
'make' and 'make install' complete without error.
But checking the libdb version, it's using v3.

# POST-PATCH, WITH BOTH CONFIGURE PARAMS
APR-util configure fails

# POST-PATCH, WITH DBM PARAM ONLY
Full configure succeeds.
'make' fails ("libaprutil-0.so: undefined reference to `db_open'")

# POST-PATCH, WITH PATH PARAM ONLY
Full configure completes without error. (APR-util configure starts
looking for 4.1, not 4.2)
'make' and 'make install' complete without error.
But checking the libdb version, it's using v3.

ERRORS DETAIL
========================================================

root@Frump:/usr/local/src# rm -r httpd-2.0.48
root@Frump:/usr/local/src# xzf _archive/httpd-2.0.48.tar.gz; cd
httpd-2.0.48/
root@Frump:/usr/local/src/httpd-2.0.48# grep 4.2
srclib/apr-util/configure
(no output...'4.2' doesn't exist in the pre-patch configure file)

# PRE-PATCH, WITH BOTH CONFIGURE PARAMS
root@Frump:/usr/local/src/httpd-2.0.48# ./configure --enable-dav=shared
--enable-dav_fs=shared --enable-expires=shared --enable-deflate=shared
--enable-rewrite=shared --disable-userdir --enable-maintainer-mode
--with-dbm=db42 --with-berkeley-db=/usr/local/BerkeleyDB.4.2
    [...snip...]
Configuring Apache Portable Runtime Utility library...

checking for APR-util... reconfig
configuring package in srclib/apr-util now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for working mkdir -p... yes
APR-util Version: 0.9.5
checking for chosen layout... apr-util
Applying apr-util hints file rules for i686-pc-linux-gnu
checking for APR... yes
   setting CC to "gcc"
   setting CPP to "gcc -E"
   setting CFLAGS to " -g -O2 -Wall -Wmissing-prototypes
-Wstrict-prototypes -Wmissing-declarations -pthread"
   setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE"
checking for gcc... gcc
    [...snip...]
checking for gdbm.h... yes
checking for gdbm_open in -lgdbm... yes
configure: error: Berkeley DB not found.
configure failed for srclib/apr-util

# PRE-PATCH, WITH DBM PARAM ONLY
root@Frump:/usr/local/src/httpd-2.0.48# ./configure --enable-dav=shared
--enable-dav_fs=shared --enable-expires=shared --enable-deflate=shared
--enable-rewrite=shared --disable-userdir --enable-maintainer-mode
--with-dbm=db42
    [...snip...]
configure: error: --with-dbm= is an unknown DBM type.
         Use one of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4
configure failed for srclib/apr-util

# PRE-PATCH, WITH PATH PARAM ONLY
root@Frump:/usr/local/src/httpd-2.0.48# ./configure --enable-dav=shared
--enable-dav_fs=shared --enable-expires=shared --enable-deflate=shared
--enable-rewrite=shared --disable-userdir --enable-maintainer-mode
--with-berkeley-db=/usr/local/BerkeleyDB.4.2
    [...snip...] (no errors, but starts looking for 4.1, not 4.2)

root@Frump:/usr/local/src/httpd-2.0.48# make
    [...snip...] (completes successfully)

root@Frump:/usr/local/src/httpd-2.0.48# make install
    [...snip...] (completes successfully)

root@Frump:/usr/local/src/httpd-2.0.48# ldd
/usr/local/apache2/bin/httpd | fgrep libdb
         libdb.so.3 => /lib/libdb.so.3 (0x40048000)

# ....PATCHING....
root@Frump:/usr/local/src/httpd-2.0.48# mv ../db42-support-patch.txt .
root@Frump:/usr/local/src/httpd-2.0.48# patch -p0
<db42-support-patch.txt
patching file srclib/apr-util/configure
root@Frump:/usr/local/src/httpd-2.0.48# grep 4.2
srclib/apr-util/configure
     places="std /usr/local/BerkeleyDB.4.2"
   bdb_default_search_lib_names="db-4.2 db4 db"

# POST-PATCH, WITH BOTH CONFIGURE PARAMS
root@Frump:/usr/local/src/httpd-2.0.48# ./configure --enable-dav=shared
--enable-dav_fs=shared --enable-expires=shared --enable-deflate=shared
--enable-rewrite=shared --disable-userdir --enable-maintainer-mode
--with-dbm=db42 --with-berkeley-db=/usr/local/BerkeleyDB.4.2
    [...snip...]
configure: error: Berkeley db4 not found
configure failed for srclib/apr-util

# POST-PATCH, WITH DBM PARAM ONLY
root@Frump:/usr/local/src/httpd-2.0.48# ./configure --enable-dav=shared
--enable-dav_fs=shared --enable-expires=shared --enable-deflate=shared
--enable-rewrite=shared --disable-userdir --enable-maintainer-mode
--with-dbm=db42
    [...snip...] (completes successfully)

root@Frump:/usr/local/src/httpd-2.0.48# make
    [...snip...]
/usr/local/src/httpd-2.0.48/srclib/apr-util/.libs/libaprutil-0.so:
undefined reference to `db_open'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/usr/local/src/httpd-2.0.48'
make: *** [all-recursive] Error 1

# POST-PATCH, WITH PATH PARAM ONLY
root@Frump:/usr/local/src/httpd-2.0.48# ./configure --enable-dav=shared
--enable-dav_fs=shared --enable-expires=shared --enable-deflate=shared
--enable-rewrite=shared --disable-userdir --enable-maintainer-mode
--with-berkeley-db=/usr/local/BerkeleyDB.4.2
    [...snip...] (completes successfully)

root@Frump:/usr/local/src/httpd-2.0.48# make
    [...snip...] (completes successfully)

root@Frump:/usr/local/src/httpd-2.0.48# make install
    [...snip...] (completes successfully)

root@Frump:/usr/local/src/httpd-2.0.48# ldd
/usr/local/apache2/bin/httpd | fgrep libdb
         libdb.so.3 => /lib/libdb.so.3 (0x40048000)

--
(-, /\ \/ / /\/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 8 17:16:55 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.