[Python-bugs-list] [ python-Bugs-690419 ] can't build bsddb for 2.3a2

SourceForge.net noreply@sourceforge.net
Mon, 03 Mar 2003 12:54:18 -0800


Bugs item #690419, was opened at 2003-02-21 01:12
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=690419&group_id=5470

Category: Build
Group: Python 2.3
Status: Open
Resolution: None
Priority: 3
Submitted By: Paul Jarc (prjsf)
Assigned to: Skip Montanaro (montanaro)
Summary: can't build bsddb for 2.3a2

Initial Comment:
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


----------------------------------------------------------------------

>Comment By: Paul Jarc (prjsf)
Date: 2003-03-03 20:54

Message:
Logged In: YES 
user_id=412110

Ok, I enabled _bsddb instead of bsddb, and now it works. 
Sorry for the noise.

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2003-03-01 03:22

Message:
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.)

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2003-03-01 02:45

Message:
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.

----------------------------------------------------------------------

Comment By: Skip Montanaro (montanaro)
Date: 2003-03-01 02:43

Message:
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.

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2003-03-01 02:29

Message:
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...

----------------------------------------------------------------------

Comment By: Paul Jarc (prjsf)
Date: 2003-02-24 17:22

Message:
Logged In: YES 
user_id=412110

Ok, here it is as an attachment.

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2003-02-23 14:12

Message:
Logged In: YES 
user_id=6380

Please don't include long listings in the bug report. Attach
then separately.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=690419&group_id=5470