Bug#263804: libapr0-dev: [PATCH] : link coherently with Berkeley DB
Package: libapr0-dev
Version: 2.0.50-7
Severity: important
The subversion build is failing on s390 and sparc like this :
checking for availability of Berkeley DB... no
configure: error: Berkeley DB 4.0.14 wasn't found.
make: *** [debian/stamp-configure] Error 1
The subversion build tries to make sure it uses the same version of
Berkeley DB as apr-util used. debian/control of apache2 hints that the
package would like to be linking against Berkeley DB 4.2. Unfortunately
apr-util on spacr (and probably s390 as well) is a bit confused as to
which version of Berkeley DB it uses:
$ ldd /usr/lib/libaprutil-0.so | grep libdb
libdb-4.2.so => /usr/lib/libdb-4.2.so (0x700b4000)
$ apu-config --libs
-lldap -llber -ldb-4.0 -lexpat
$
The above commands were executed on a sparc machine with libapr0-dev
2.0.50-7. If we take a look at the s390 build log (I'd use the sparc
build log if I could find one) :
from http://buildd.debian.org/fetch.php?&pkg=apache2&ver=2.0.50-7&arch=s390&stamp=1091560809&file=log&as=raw
. . .
checking for Berkeley DB 4.0 in the standard places...
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for -ldb-4.0... yes
checking for default DBM... db4
adding "-ldb-4.0" to APRUTIL_EXPORT_LIBS
adding "-ldb-4.0" to APRUTIL_LIBS
. . .
So s390 used 4.0, and now on sparc, what does apache2 use :
$ ldd /usr/sbin/apache2 | grep db
libdb-4.2.so => /usr/lib/libdb-4.2.so (0x701fc000)
libdb-4.0.so => /usr/lib/libdb-4.0.so (0x70378000)
$
I don't think berkeley db was made to work well with two versions in
the same process. The included patch at least makes the apr-util
build choose db 4.2. I think this will resolve the problem. I'm
doing a full build on sparc now to make sure.
-David
--- debian/rules.orig 2004-08-05 15:15:05.000000000 -0400
+++ debian/rules 2004-08-05 15:20:01.000000000 -0400
@@ -24,7 +24,7 @@
export DH_OPTIONS
AP2_COMMON_CONFARGS = --enable-layout=Debian --enable-so \
- --with-program-name=apache2 --with-dbm=db4 \
+ --with-program-name=apache2 --with-dbm=db42 \
--enable-logio --enable-userdir=shared \
--enable-ssl=shared --enable-deflate=shared \
--with-ldap=yes --with-ldap-include=/usr/include \
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: sparc (sparc64)
Kernel: Linux 2.4.26-sparc64
Locale: LANG=C, LC_CTYPE=C
Versions of packages libapr0-dev depends on:
ii libapr0 2.0.50-7 The Apache Portable Runtime
ii libdb4.2-dev 4.2.52-16 Berkeley v4.2 Database Libraries [
ii libexpat1-dev 1.95.6-8 XML parsing C library - developmen
ii libldap2-dev 2.1.30-3 OpenLDAP development libraries
ii libpcre3-dev 4.5-1.1 Perl 5 Compatible Regular Expressi
-- no debconf information
Reply to: