[issue9420] gdbm with /usr/include/ndbm.h

Peter Häring report at bugs.python.org
Thu Jul 29 19:26:21 CEST 2010


New submission from Peter Häring <p.haering at gmx.net>:

There are systems out there, wich don't have ndbm, but gdbm and ndbm.h directly in the include-path (usually /usr/include), not in the subdirectory i.e. gdbm.

setup.py at the moment assumes, that there is ndbm on the system, if there is ndbm.h in the include path. If it doesn't find libndbm, it continues to try to use ndbm without library, which doesn't work.
BLFS (http://www.linuxfromscratch.org/blfs/view/svn/general/python.html) fills in the gdbm and gdbm-compat library, which works, but is wrong, because we really use gdbm and not ndbm.
The right way is to start with the library change and then look for the header file, as it is in the proposed patch for setup.py

----------
components: Build
files: Python-2.7-gdbm.patch
keywords: patch
messages: 111978
nosy: phaering
priority: normal
severity: normal
status: open
title: gdbm with /usr/include/ndbm.h
versions: Python 2.7
Added file: http://bugs.python.org/file18256/Python-2.7-gdbm.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9420>
_______________________________________


More information about the Python-bugs-list mailing list