[Python-Dev] making dbmmodule still broken

Guido van Rossum guido@python.org
Tue, 18 Jun 2002 15:52:49 -0400


On my 2yo Mandrake 8.1 (?) system, when I do "make" in the latest CVS
tree, I always get an error from building dbmmodule.c:

[guido@odiug linux]$ make
case $MAKEFLAGS in \
*-s*)  CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ../setup.py -q build;; \
*)  CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ../setup.py build;; \
esac
running build
running build_ext
building 'dbm' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/guido/python/dist/src/./Include -I/usr/local/include -I/home/guido/python/dist/src/Include -I/home/guido/python/dist/src/linux -c /home/guido/python/dist/src/Modules/dbmmodule.c -o build/temp.linux-i686-2.3/dbmmodule.o
/home/guido/python/dist/src/Modules/dbmmodule.c:25: #error "No ndbm.h available!"
running build_scripts
[guido@odiug linux]$

There's an ndbm.h is in /usr/include/db1/ndbm.h

Skip, didn't you change something in this area recently?  I think it's
still busted. :-(

--Guido van Rossum (home page: http://www.python.org/~guido/)