[Python-bugs-list] [ python-Bugs-230075 ] dbmmodule build fails on Debian GNU/Linux unstable (Sid)

nobody nobody@sourceforge.net
Sat, 03 Mar 2001 22:26:54 -0800


Bugs #230075, was updated on 2001-01-25 12:16
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=230075&group_id=5470

Category: Build
Group: Platform-specific
Status: Open
Priority: 5
Submitted By: Kalle Svensson
Assigned to: A.M. Kuchling
Summary: dbmmodule build fails on Debian GNU/Linux unstable (Sid)

Initial Comment:
When building on Debian GNU/Linux unstable, the build fails with:

/home/kalle/src/python/dist/src/Modules/dbmmodule.c:24: #error "No ndbm.h available!"
error: command 'gcc' failed with exit status 1
make: *** [sharedmods] Error 1

The *dbm.h files available are
/usr/include/dbm.h
/usr/include/gdbm.h
/usr/include/gdbm-ndbm.h

All are part of the package libgdbmg1-dev.

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

Comment By: Neil Schemenauer
Date: 2001-03-03 22:26

Message:
Logged In: YES 
user_id=35752

db1/ndbm.h from libc6_2.2.2-1 still includes db.h instead
of db1/db.h.  I think I understand the reason now.  If you
want to use db1 or gdbm as a dbm compatible database you
have to link with the approprate library.  Therefore,
if you should add both -ldb1 and -Idb1.

I've created a patch to setup.py which does this.  Andrew?
BTW, I'm not sure if the "if platform not in ['cygwin']"
is needed anymore.  I bet it could be removed.

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

Comment By: Neil Schemenauer
Date: 2001-03-03 21:50

Message:
Logged In: YES 
user_id=35752

Python is looking for gdbm/ndbm.h.  I could add more logic
to look for gdbm-ndbm.h but I don't think its worth it.
libc6 includes db1 which can be used by dbmmodule.
configure is not finding db1/ndbm.h because ndbm.h includes
db.h.  I think it should include db1/db.h instead.  So, it
looks like a Debian unstable bug.  I'm downloading Debian
libc6_2.2.2-1 right now.  Perhaps the bug has been fixed.

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

Comment By: Kalle Svensson
Date: 2001-01-25 12:21

Message:
Forgot to say that it's Python out of CVS, updated Thu Jan 25 21:23:52 CET 2001.

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

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