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.

classification
Title: Building using Sleepycat db 4.5.20 is broken
Type: Stage:
Components: Build Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: gregory.p.smith, juedau, robert-scheck
Priority: normal Keywords:

Created on 2006-10-05 21:31 by robert-scheck, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python-2.4.3-db45.patch robert-scheck, 2006-10-07 19:09 Patch for Python 2.4.3 for Oracle/Sleepycat DB 4.5
python-2.5.0-db45.patch robert-scheck, 2006-10-07 19:11 Patch for Python 2.5.0 for Oracle/Sleepycat DB 4.5
Messages (5)
msg30169 - (view) Author: Robert Scheck (robert-scheck) Date: 2006-10-05 21:31
Using latest Sleepycat db 4.5.20, I'm getting the 
following result during make of python 2.5:

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall 
-Wstrict-prototypes  -I. -I./Include  -fPIC -
DPy_BUILD_CORE  -I/usr/include/db4 -c ./Modules/_bsddb.
c -o Modules/_bsddb.o
./Modules/_bsddb.c: In function 'DBEnv_set_lk_max':
./Modules/_bsddb.c:4142: error: 'DB_ENV' has no member 
named 'set_lk_max'
./Modules/_bsddb.c: In function 'init_bsddb':
./Modules/_bsddb.c:5838: error: 'DB_CACHED_COUNTS' 
undeclared (first use in this function)
./Modules/_bsddb.c:5838: error: (Each undeclared 
identifier is reported only once
./Modules/_bsddb.c:5838: error: for each function it 
appears in.)
./Modules/_bsddb.c:5873: error: 'DB_RECORDCOUNT' 
undeclared (first use in this function)
make: *** [Modules/_bsddb.o] Error 1
msg30170 - (view) Author: Robert Scheck (robert-scheck) Date: 2006-10-05 21:34
Logged In: YES 
user_id=203809

Ah, python 2.4.3 has the same problem plus further errors:

./Modules/_bsddb.c: In function 'DB_length':
./Modules/_bsddb.c:2453: error: 'DB_CACHED_COUNTS' 
undeclared (first use in this function)
./Modules/_bsddb.c:2453: error: (Each undeclared identifier 
is reported only once
./Modules/_bsddb.c:2453: error: for each function it appears 
in.)
./Modules/_bsddb.c: In function 'DBEnv_set_lk_max':
./Modules/_bsddb.c:3811: error: 'DB_ENV' has no member named 
'set_lk_max'
./Modules/_bsddb.c: In function 'init_bsddb':
./Modules/_bsddb.c:5004: error: 'DB_CACHED_COUNTS' 
undeclared (first use in this function)
./Modules/_bsddb.c:5039: error: 'DB_RECORDCOUNT' undeclared 
(first use in this function)
make: *** [Modules/_bsddb.o] Error 1
msg30171 - (view) Author: Robert Scheck (robert-scheck) Date: 2006-10-07 19:11
Logged In: YES 
user_id=203809

The attached patches are solving the problems for me and 
should be the correct fix when reading Sleepycat's upgrade 
documentation...
msg30172 - (view) Author: Juergen (juedau) Date: 2006-11-22 19:15
Didn't work for me. Sure, _bsddb.so can be linked against db 4.5.20 with your patch, but some of the tests from bsddb/test are crashing. Seems that we have to wait for official support. Tested with Python 2.5. 
msg61563 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2008-01-23 07:20
4.5 support was put in a while back
History
Date User Action Args
2022-04-11 14:56:20adminsetgithub: 44088
2008-01-23 07:20:05gregory.p.smithsetstatus: open -> closed
resolution: fixed
messages: + msg61563
nosy: + gregory.p.smith
2006-10-05 21:31:52robert-scheckcreate