Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
It seems that theconfigure script is no longer able to build_dbm module fromgdbm_compat.
Excerpts from configure log (full log:configure.txt):
$ ./configure -C --with-dbmliborder=gdbm[...]checking gdbm.h usability... yeschecking gdbm.h presence... yeschecking for gdbm.h... yeschecking for gdbm_open in -lgdbm... yeschecking ndbm.h usability... nochecking ndbm.h presence... nochecking for ndbm.h... nochecking for ndbm presence and linker args... ()checking gdbm/ndbm.h usability... yeschecking gdbm/ndbm.h presence... yeschecking for gdbm/ndbm.h... yeschecking gdbm-ndbm.h usability... nochecking gdbm-ndbm.h presence... nochecking for gdbm-ndbm.h... nochecking for library containing dbm_open... -lgdbm_compatchecking db.h usability... nochecking db.h presence... nochecking for db.h... nochecking for --with-dbmliborder... gdbmchecking for _dbm module CFLAGS and LIBS... [...]checking for stdlib extension module _dbm... missingchecking for stdlib extension module _gdbm... yes[...]It seems that the problem is in the following snippet:
fordbin$with_dbmliborder;docase"$db"in ndbm)iftest"$have_ndbm" = yes;then DBM_CFLAGS="-DUSE_NDBM" DBM_LIBS="$dbm_ndbm" have_dbm=yesbreakfi ;; gdbm)iftest"$have_gdbm_compat" = yes;then DBM_CFLAGS="-DUSE_GDBM_COMPAT" DBM_LIBS="-lgdbm_compat" have_dbm=yesbreakfi ;;
However,have_gdbm_compat is not declared anymore, probably because of:
AC_MSG_CHECKING([for ndbm presence and linker args])AS_CASE([$ac_cv_search_dbm_open], [*ndbm*|*gdbm_compat*], [ dbm_ndbm="$ac_cv_search_dbm_open" have_ndbm=yes ],
declaringhave_ndbm=yes in this case.
Seems to have been introduced inec5e253 by@tiran.
Your environment
- CPython versions tested on: 3.12.0a1
- Operating system and architecture: Gentoo/amd64