This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jafo
Recipients giraffedata, jafo
Date 2007-09-23.03:54:49
SpamBayes Score 0.00015860994
Marked as misclassified No
Message-id <1190519691.63.0.257555017093.issue1191@psf.upfronthosting.co.za>
In-reply-to
Content
Bringing attachment inline here:
================================

The Python manual for module 'bsddb'says it requires a Berkeley DB
library 3.3 - 4.4.  But the build tools do not check this.  If that's
the requirement, they should.

Instead, I see in _bsddb.c lots of code explicitly intended for
Berkeley DB < 3.3.  If this code is dead, it probably should be
cleaned out, and whether it is cleaned out or not, comments in
_bsddb.c should indicate what its Berkeley DB level requirement is
(and why).

Indeed, _bsddb.c does not compile for Berkeley DB 3.1 (at least as
installed on my system).  That's because it refers to macro
DB_FAST_STAT even though it does not exist in Berkeley DB before
Release 3.3.  However, other parts of the code are designed to handle
the absence of DB_FAST_STAT in older Berkeley DB, so I just put the
appropriate "if (DBVER >= 33)" in and it compiled.

The next inconsistency is that the 'dbhash' module insists, at run
time, on Berkeley DB version 3.2 or better.  If 'bsddb' must have at
least 3.3, then this check is superfluous.

A bigger problem is that the error message it gives when you don't
have 3.2 or better is the misleading, "correct BerkeleyDB symbols not
found."  What would be better is, "You have Berkeley DB 3.1.  You need
at least 3.2."

FWIW, I removed the check and 'dbhash' worked for my purposes with
Berkeley DB 3.1.

Maybe the documented 3.3 prerequisite is too strong, and it should be
more specific about what doesn't work with older versions.

This all comes from Python 2.5.
History
Date User Action Args
2007-09-23 03:54:52jafosetspambayes_score: 0.00015861 -> 0.00015860994
recipients: + jafo, giraffedata
2007-09-23 03:54:51jafosetspambayes_score: 0.00015861 -> 0.00015861
messageid: <1190519691.63.0.257555017093.issue1191@psf.upfronthosting.co.za>
2007-09-23 03:54:51jafolinkissue1191 messages
2007-09-23 03:54:50jafocreate