This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: dbmmodule build fails on Debian GNU/Linux unstable (Sid)
Type: Stage:
Components: Build Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: akuchling, gvanrossum, krftkndl, nascheme, twouters
Priority: normal Keywords:

Created on 2001-01-25 20:16 by krftkndl, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bsddb.diff nascheme, 2001-10-20 20:45 Build dbm and bsddb on Debian woody
Messages (13)
msg3118 - (view) Author: Kalle Svensson (krftkndl) Date: 2001-01-25 20:16
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.
msg3119 - (view) Author: Kalle Svensson (krftkndl) Date: 2001-01-25 20:21
Forgot to say that it's Python out of CVS, updated Thu Jan 25 21:23:52 CET 2001.
msg3120 - (view) Author: Neil Schemenauer (nascheme) * (Python committer) Date: 2001-03-04 05:50
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.
msg3121 - (view) Author: Neil Schemenauer (nascheme) * (Python committer) Date: 2001-03-04 06:26
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.
msg3122 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2001-03-17 16:36
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.
msg3123 - (view) Author: Neil Schemenauer (nascheme) * (Python committer) Date: 2001-07-19 14:28
Logged In: YES 
user_id=35752

Have you fixed this one in 2.1.1 Thomas?
msg3124 - (view) Author: Neil Schemenauer (nascheme) * (Python committer) Date: 2001-07-19 14:28
Logged In: YES 
user_id=35752

Have you fixed this one in 2.1.1 Thomas?
msg3125 - (view) Author: Thomas Wouters (twouters) * (Python committer) Date: 2001-09-06 12:38
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 :-)

msg3126 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-09-06 13:37
Logged In: YES 
user_id=6380

Well hurry up then!
msg3127 - (view) Author: Neil Schemenauer (nascheme) * (Python committer) Date: 2001-10-20 20:45
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. :-(
msg3128 - (view) Author: Thomas Wouters (twouters) * (Python committer) Date: 2001-10-20 21:39
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 ?
msg3129 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-10-21 00:50
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?
msg3130 - (view) Author: Neil Schemenauer (nascheme) * (Python committer) Date: 2001-10-21 22:17
Logged In: YES 
user_id=35752

Yes, Andrew is doomed.  :-)  I've commited the patch.
History
Date User Action Args
2022-04-10 16:03:40adminsetgithub: 33807
2001-01-25 20:16:31krftkndlcreate