Python-2.0.1 compile error

Thomas Amsler thomas at matrix3.ucd
Tue Jun 26 01:29:14 EDT 2001


I tried to build Python-2.0.1 but got compile errors.
My environment:
Linux RH7.1
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)

-------------------------------------------------------------------
cd Modules;  make OPT="-g -O2 -Wall -Wstrict-prototypes -fPIC"
VERSION="2.0" \
		prefix="/usr/local" exec_prefix="/usr/local" \
		sharedmods
make[1]: Entering directory `/home/thomas/tmp/Python-2.0.1/Modules'
gcc -fpic  -g -O2 -Wall -Wstrict-prototypes -fPIC -I./../Include -I..
-DHAVE_CONFIG_H -c ./bsddbmodule.c
./bsddbmodule.c: In function `newdbhashobject':
./bsddbmodule.c:55: `HASHINFO' undeclared (first use in this function)
./bsddbmodule.c:55: (Each undeclared identifier is reported only once
./bsddbmodule.c:55: for each function it appears in.)
./bsddbmodule.c:55: parse error before `info'
./bsddbmodule.c:60: `info' undeclared (first use in this function)
./bsddbmodule.c:71: warning: implicit declaration of function `dbopen'
./bsddbmodule.c:71: warning: assignment makes pointer from integer without
a cast
./bsddbmodule.c: In function `newdbbtobject':
./bsddbmodule.c:100: `BTREEINFO' undeclared (first use in this function)
./bsddbmodule.c:100: parse error before `info'
./bsddbmodule.c:105: `info' undeclared (first use in this function)
./bsddbmodule.c:118: warning: assignment makes pointer from integer
without a cast
./bsddbmodule.c: In function `newdbrnobject':
./bsddbmodule.c:147: `RECNOINFO' undeclared (first use in this function)
./bsddbmodule.c:147: parse error before `info'
./bsddbmodule.c:152: `info' undeclared (first use in this function)
./bsddbmodule.c:164: warning: assignment makes pointer from integer
without a cast
./bsddbmodule.c: In function `bsddb_dealloc':
./bsddbmodule.c:202: too few arguments to function
./bsddbmodule.c: In function `bsddb_length':
./bsddbmodule.c:232: structure has no member named `seq'
./bsddbmodule.c:233: `R_FIRST' undeclared (first use in this function)
./bsddbmodule.c:235: structure has no member named `seq'
./bsddbmodule.c:236: `R_NEXT' undeclared (first use in this function)
./bsddbmodule.c:229: warning: `status' might be used uninitialized in this
function
./bsddbmodule.c: In function `bsddb_subscript':
./bsddbmodule.c:265: warning: passing arg 2 of pointer to function from
incompatible pointer type
./bsddbmodule.c:265: too few arguments to function
./bsddbmodule.c: In function `bsddb_ass_sub':
./bsddbmodule.c:307: warning: passing arg 2 of pointer to function from
incompatible pointer type
./bsddbmodule.c:307: too few arguments to function
./bsddbmodule.c:330: warning: passing arg 2 of pointer to function from
incompatible pointer type
./bsddbmodule.c:330: too few arguments to function
./bsddbmodule.c: In function `bsddb_close':
./bsddbmodule.c:357: too few arguments to function
./bsddbmodule.c: In function `bsddb_keys':
./bsddbmodule.c:386: structure has no member named `seq'
./bsddbmodule.c:386: `R_FIRST' undeclared (first use in this function)
./bsddbmodule.c:407: structure has no member named `seq'
./bsddbmodule.c:407: `R_NEXT' undeclared (first use in this function)
./bsddbmodule.c:376: warning: `status' might be used uninitialized in this
function
./bsddbmodule.c: In function `bsddb_has_key':
./bsddbmodule.c:440: warning: passing arg 2 of pointer to function from
incompatible pointer type
./bsddbmodule.c:440: too few arguments to function
./bsddbmodule.c: In function `bsddb_set_location':
./bsddbmodule.c:466: structure has no member named `seq'
./bsddbmodule.c:466: `R_CURSOR' undeclared (first use in this function)
./bsddbmodule.c:453: warning: `status' might be used uninitialized in this
function
./bsddbmodule.c: In function `bsddb_seq':
./bsddbmodule.c:503: structure has no member named `seq'
./bsddbmodule.c:489: warning: `status' might be used uninitialized in this
function
./bsddbmodule.c: In function `bsddb_next':
./bsddbmodule.c:531: `R_NEXT' undeclared (first use in this function)
./bsddbmodule.c: In function `bsddb_previous':
./bsddbmodule.c:536: `R_PREV' undeclared (first use in this function)
./bsddbmodule.c: In function `bsddb_first':
./bsddbmodule.c:541: `R_FIRST' undeclared (first use in this function)
./bsddbmodule.c: In function `bsddb_last':
./bsddbmodule.c:546: `R_LAST' undeclared (first use in this function)
make[1]: *** [bsddbmodule.o] Error 1
make[1]: Leaving directory `/home/thomas/tmp/Python-2.0.1/Modules'
make: *** [sharedmods] Error 2

-------------------------------------------------------------------
-- 
Thomas Amsler
tpamsler at ucdavis.edu
amsler at cs.ucdavis.edu
http://einstein.dyndns.org

"Imagination is more important than knowledge."
	--Albert Einstein





More information about the Python-list mailing list