[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Fix for Berkeley DB 2.6.4(beta) (ITS#27)
Hi Folks,
the error (see below) was caused by a change in the function call to
(DB)->cursor, Sleepycat introduced with the new Berkeley DB version 2.6.4
(BETA). The code now supports both DB versions prior to 2.6.4 as well as
2.6.4 and up ( hopefully :-).
Additionally, I have introduced ldbm_datum_init() to initialize Datum
structures before first use. DB 2.x needs initialization to zero of the
flag element, which is not done automatically on e.g. Linux.
Regards,
Kurt Spanier
> Platform Redhat Linux 5.2 with kernel 2.0.36
> Berkeley DB 2.6.4 (http://www.sleepycat.com)
>
> Configure command
> CPPFLAGS="-I/usr/local/site/BerkeleyDB/include/"
> LDFLAGS="-L/usr/local/site/BerkeleyDB/lib -ldb" ./configure
> --enable-wrappers
> --prefix=/usr/local/site/prefix
>
> make depend
> make
>
> Error seen
...
> ldbm.c: In function `ldbm_firstkey':
> ldbm.c:202: too few arguments to function
> make[2]: *** [ldbm.o] Error 1
> make[4]: *** No rule to make target `../../libraries/libldbm.a', needed
> by `version.c'. Stop.
> make[3]: *** [all-local-srv] Error 2
> make[2]: *** [all-common] Error 2
----------==========#########>>>>>ZDV<<<<<#########==========----------
X.500: Tel.:
Kurt Spanier, Zentrum fuer Datenverarbeitung, +49 7071 29-70334
Universitaet Tuebingen, DE
SMTP-Mail: FAX.:
kurt.spanier@zdv.uni-tuebingen.de +49 7071 29-5912
Snail-Mail:
Dr. Kurt Spanier, Zentrum fuer Datenverarbeitung,
Universitaet Tuebingen, Waechterstrasse 76, D-72074 Tuebingen
PGP-Public-Key:
finger "Kurt Spanier"@x500.uni-tuebingen.de
----------==========##########>>>>>@<<<<<##########==========----------