Bug#494587: Patch to build with bdb4.7

Cesare Tirabassi norsetto at ubuntu.com
Sun Aug 10 19:54:07 UTC 2008


Package: clisp
Version: 2.44.1-4
Severity: normal
Tags: patch
Usertags: origin-ubuntu intrepid ubuntu-patch

Hi,

clisp FTBFS with bdb4.7:

gcc   -g -O2 -Igllib -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O -DUNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. -fPIC -I.. -c 
bdb.m.c -o bdb.o
bdb.c: In function 'C_subr_bdb_dbe_set_options':
bdb.c:703: error: 'DB_DIRECT_LOG' undeclared (first use in this function)
bdb.c:703: error: (Each undeclared identifier is reported only once
bdb.c:703: error: for each function it appears in.)
bdb.c:709: error: 'DB_LOG_AUTOREMOVE' undeclared (first use in this function)
bdb.c: In function 'dbe_get_flags_list':
bdb.c:939: error: 'DB_LOG_AUTOREMOVE' undeclared (first use in this function)
bdb.c:943: error: 'DB_DIRECT_LOG' undeclared (first use in this function)
bdb.c: In function 'C_subr_bdb_dbe_get_options':
bdb.c:1104: error: 'DB_LOG_AUTOREMOVE' undeclared (first use in this function)
bdb.c:1110: error: 'DB_DIRECT_LOG' undeclared (first use in this function)
make[2]: *** [bdb.o] Error 1
make[2]: Leaving directory 
`/build/buildd/clisp-2.44.1/debian/build/berkeley-db'
make[1]: *** [berkeley-db] Error 2
make[1]: Leaving directory `/build/buildd/clisp-2.44.1/debian/build'
make: *** [build-stamp] Error 2

The problem is that the flags DB_DIRECT_LOG and DB_LOG_AUTOREMOVE are 
obsoleted in bdb 4.7, see:

http://www.oracle.com/technology/documentation/berkeley-db/db/ref/upgrade.4.7/log.html

I patched it in Ubuntu with the attached patch which seems to work (clisp 
builds and passes all the tests in berkeley-db/test.tst)

I hope this can be useful for you too,

Cesare
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03_bdb4.7.patch
Type: text/x-diff
Size: 2401 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-common-lisp-devel/attachments/20080810/bc7a63e0/attachment.patch 


More information about the pkg-common-lisp-devel mailing list