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

noreply@sourceforge.net noreply@sourceforge.net
Sat, 20 Oct 2001 17:50:25 -0700


Bugs item #230075, was opened at 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 Resolution: Wont Fix Priority: 5 Submitted By: Kalle Svensson (krftkndl) Assigned to: A.M. Kuchling (akuchling) 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: Guido van Rossum (gvanrossum) Date: 2001-10-20 17:50

Message: Logged In: YES user_id=6380

Neil, are you sure it's a good idea to assign this to Andrew? I've noticed that he's collected quite a backlog of bugs & patches. Maybe he needs some relief?


Comment By: Thomas Wouters (twouters) Date: 2001-10-20 14:39

Message: Logged In: YES user_id=34209

Just to clarify: I had no patch of my own. I tested Neil's patch, assigned the bug to Neil and was waiting for him to respond to AMK's questions. Miscommunication somewhere ?


Comment By: Neil Schemenauer (nascheme) Date: 2001-10-20 13:45

Message: Logged In: YES user_id=35752

Attached is a patch that fixes things for me. It's pretty simple so it could probably get into 2.2 yet. I don't know what happened to Thomas's patch. :-(


Comment By: Guido van Rossum (gvanrossum) Date: 2001-09-06 06:37

Message: Logged In: YES user_id=6380

Well hurry up then!


Comment By: Thomas Wouters (twouters) Date: 2001-09-06 05:38

Message: Logged In: YES user_id=34209

No, I didn't include it in 2.1.1 because I decided I'd rather keep it broken on Debian than possibly break it on an unknown number of other systems, for a bugfix-release. I see no problem with breaking an unknown number of systems in 2.2aX though :-)


Comment By: Neil Schemenauer (nascheme) Date: 2001-07-19 07:28

Message: Logged In: YES user_id=35752

Have you fixed this one in 2.1.1 Thomas?


Comment By: Neil Schemenauer (nascheme) Date: 2001-07-19 07:28

Message: Logged In: YES user_id=35752

Have you fixed this one in 2.1.1 Thomas?


Comment By: A.M. Kuchling (akuchling) Date: 2001-03-17 08:36

Message: Logged In: YES user_id=11375

What does the patch look like? You can probably go ahead and check it in.

I'd be leery of removing the 'not in "cygwin"' check; ask Jason Tishler if it's still needed, since he's the Cygwin guru.


Comment By: Neil Schemenauer (nascheme) 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 (nascheme) 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 (krftkndl) 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