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: can't build bsddb for 2.3a2
Type: Stage:
Components: Build Versions: Python 2.3
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: skip.montanaro Nosy List: gvanrossum, prjsf, skip.montanaro
Priority: low Keywords:

Created on 2003-02-21 01:12 by prjsf, last changed 2022-04-10 16:07 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
2.3a2.out prjsf, 2003-02-24 17:22
Messages (8)
msg14750 - (view) Author: Paul Jarc (prjsf) Date: 2003-02-21 01:12
I have db-4.1.25 installed, and I'm trying to install
Python 2.3a2 with
bsddb.  The build fails:
gcc -fPIC  -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-I. -I./Include 
-I/package/misc/spf/python-2.3a2/spf/db/include -c
./Modules/bsddbmodule.c -o Modules/bsddbmodule.o
Modules/bsddbmodule.c: In function `newdbhashobject':
Modules/bsddbmodule.c:58: `HASHINFO' undeclared (first
use in this function)
Modules/bsddbmodule.c:58: (Each undeclared identifier
is reported only once
Modules/bsddbmodule.c:58: for each function it appears in.)
Modules/bsddbmodule.c:58: parse error before "info"
Modules/bsddbmodule.c:63: `info' undeclared (first use
in this function)
Modules/bsddbmodule.c:74: warning: implicit declaration
of function `dbopen'
Modules/bsddbmodule.c:74: warning: assignment makes
pointer from integer without a cast
Modules/bsddbmodule.c: In function `newdbbtobject':
Modules/bsddbmodule.c:106: `BTREEINFO' undeclared
(first use in this function)
Modules/bsddbmodule.c:106: parse error before "info"
Modules/bsddbmodule.c:111: `info' undeclared (first use
in this function)
Modules/bsddbmodule.c:124: warning: assignment makes
pointer from integer without a cast
Modules/bsddbmodule.c: In function `newdbrnobject':
Modules/bsddbmodule.c:156: `RECNOINFO' undeclared
(first use in this function)
Modules/bsddbmodule.c:156: parse error before "info"
Modules/bsddbmodule.c:162: `info' undeclared (first use
in this function)
Modules/bsddbmodule.c:182: warning: assignment makes
pointer from integer without a cast
Modules/bsddbmodule.c: In function `bsddb_dealloc':
Modules/bsddbmodule.c:223: too few arguments to function
Modules/bsddbmodule.c: In function `bsddb_length':
Modules/bsddbmodule.c:252: structure has no member
named `seq'
Modules/bsddbmodule.c:253: `R_FIRST' undeclared (first
use in this function)
Modules/bsddbmodule.c:255: structure has no member
named `seq'
Modules/bsddbmodule.c:256: `R_NEXT' undeclared (first
use in this function)
Modules/bsddbmodule.c: In function `bsddb_subscript':
Modules/bsddbmodule.c:276: `recno_t' undeclared (first
use in this function)
Modules/bsddbmodule.c:276: parse error before "recno"
Modules/bsddbmodule.c:279: `recno' undeclared (first
use in this function)
Modules/bsddbmodule.c:299: warning: passing arg 2 of
pointer to function from incompatible pointer type
Modules/bsddbmodule.c:299: too few arguments to function
Modules/bsddbmodule.c: In function `bsddb_ass_sub':
Modules/bsddbmodule.c:327: `recno_t' undeclared (first
use in this function)
Modules/bsddbmodule.c:327: parse error before "recno"
Modules/bsddbmodule.c:330: `recno' undeclared (first
use in this function)
Modules/bsddbmodule.c:351: warning: passing arg 2 of
pointer to function from incompatible pointer type
Modules/bsddbmodule.c:351: too few arguments to function
Modules/bsddbmodule.c:363: warning: passing arg 2 of
pointer to function from incompatible pointer type
Modules/bsddbmodule.c:363: too few arguments to function
Modules/bsddbmodule.c: In function `bsddb_close':
Modules/bsddbmodule.c:388: too few arguments to function
Modules/bsddbmodule.c: In function `bsddb_keys':
Modules/bsddbmodule.c:415: structure has no member
named `seq'
Modules/bsddbmodule.c:415: `R_FIRST' undeclared (first
use in this function)
Modules/bsddbmodule.c:441: structure has no member
named `seq'
Modules/bsddbmodule.c:442: `R_NEXT' undeclared (first
use in this function)
Modules/bsddbmodule.c: In function `bsddb_has_key':
Modules/bsddbmodule.c:470: `recno_t' undeclared (first
use in this function)
Modules/bsddbmodule.c:470: parse error before "recno"
Modules/bsddbmodule.c:474: `recno' undeclared (first
use in this function)
Modules/bsddbmodule.c:491: warning: passing arg 2 of
pointer to function from incompatible pointer type
Modules/bsddbmodule.c:491: too few arguments to function
Modules/bsddbmodule.c: In function `bsddb_set_location':
Modules/bsddbmodule.c:509: `recno_t' undeclared (first
use in this function)
Modules/bsddbmodule.c:509: parse error before "recno"
Modules/bsddbmodule.c:513: `recno' undeclared (first
use in this function)
Modules/bsddbmodule.c:530: structure has no member
named `seq'
Modules/bsddbmodule.c:530: `R_CURSOR' undeclared (first
use in this function)
Modules/bsddbmodule.c: In function `bsddb_seq':
Modules/bsddbmodule.c:570: structure has no member
named `seq'
Modules/bsddbmodule.c: In function `bsddb_next':
Modules/bsddbmodule.c:608: `R_NEXT' undeclared (first
use in this function)
Modules/bsddbmodule.c: In function `bsddb_previous':
Modules/bsddbmodule.c:613: `R_PREV' undeclared (first
use in this function)
Modules/bsddbmodule.c: In function `bsddb_first':
Modules/bsddbmodule.c:618: `R_FIRST' undeclared (first
use in this function)
Modules/bsddbmodule.c: In function `bsddb_last':
Modules/bsddbmodule.c:623: `R_LAST' undeclared (first
use in this function)
make: *** [Modules/bsddbmodule.o] Error 1
msg14751 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2003-02-23 14:12
Logged In: YES 
user_id=6380

Please don't include long listings in the bug report. Attach
then separately.
msg14752 - (view) Author: Paul Jarc (prjsf) Date: 2003-02-24 17:22
Logged In: YES 
user_id=412110

Ok, here it is as an attachment.
msg14753 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2003-03-01 02:29
Logged In: YES 
user_id=6380

Seems something that Skip might understand.

Looks to me like you've picked up an incompatible version of
the db.h or db_185.h header file...
msg14754 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2003-03-01 02:43
Logged In: YES 
user_id=44345

I agree with Guido.  HASHINFO is defined in db185.h.  You are trying to
compile the older bsddb (now named bsddb185) module using a version
of Berkeley DB which was not configured for backward compatibility.  
When you built Berkeley DB itself did you run configure with the
--enable-compat185 flag?  If not, you won't be able to compile 
Modules/bsddbmodule.c.

In any case, if you have db-4.x installed, don't bother with the old
version of the bsddb module.  The new one has a backward
compatible API.  You should only be building the old version if
you are forced to use db-1.85 or db-2.x.
msg14755 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2003-03-01 02:45
Logged In: YES 
user_id=6380

Isn't a problem with that advice that setup.py always tries
to build bsddbmodule.c when it finds the appropriate
headers? I think I've got the same problem on my system ATM.
msg14756 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2003-03-01 03:22
Logged In: YES 
user_id=6380

(Um, I've got that problem alright, but it's on the Python
2.2.x branch... So ignore that.)
msg14757 - (view) Author: Paul Jarc (prjsf) Date: 2003-03-03 20:54
Logged In: YES 
user_id=412110

Ok, I enabled _bsddb instead of bsddb, and now it works. 
Sorry for the noise.
History
Date User Action Args
2022-04-10 16:07:00adminsetgithub: 38024
2003-02-21 01:12:03prjsfcreate