Title: configure: `--with-dbmliborder=gdbm` no longer satisfies `_dbm` · Issue #98636 · python/cpython · GitHub
Open Graph Title: configure: `--with-dbmliborder=gdbm` no longer satisfies `_dbm` · Issue #98636 · python/cpython
X Title: configure: `--with-dbmliborder=gdbm` no longer satisfies `_dbm` · Issue #98636 · python/cpython
Description: Bug report It seems that the configure script is no longer able to build _dbm module from gdbm_compat. Excerpts from configure log (full log: configure.txt): $ ./configure -C --with-dbmliborder=gdbm [...] checking gdbm.h usability... yes...
Open Graph Description: Bug report It seems that the configure script is no longer able to build _dbm module from gdbm_compat. Excerpts from configure log (full log: configure.txt): $ ./configure -C --with-dbmliborder=gdb...
X Description: Bug report It seems that the configure script is no longer able to build _dbm module from gdbm_compat. Excerpts from configure log (full log: configure.txt): $ ./configure -C --with-dbmliborder=gdb...
Opengraph URL: https://github.com/python/cpython/issues/98636
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"configure: `--with-dbmliborder=gdbm` no longer satisfies `_dbm`","articleBody":"# Bug report\r\n\r\nIt seems that the `configure` script is no longer able to build `_dbm` module from `gdbm_compat`.\r\n\r\nExcerpts from configure log (full log: [configure.txt](https://github.com/python/cpython/files/9857724/configure.txt)):\r\n\r\n```\r\n$ ./configure -C --with-dbmliborder=gdbm\r\n[...]\r\nchecking gdbm.h usability... yes\r\nchecking gdbm.h presence... yes\r\nchecking for gdbm.h... yes\r\nchecking for gdbm_open in -lgdbm... yes\r\nchecking ndbm.h usability... no\r\nchecking ndbm.h presence... no\r\nchecking for ndbm.h... no\r\nchecking for ndbm presence and linker args... ()\r\nchecking gdbm/ndbm.h usability... yes\r\nchecking gdbm/ndbm.h presence... yes\r\nchecking for gdbm/ndbm.h... yes\r\nchecking gdbm-ndbm.h usability... no\r\nchecking gdbm-ndbm.h presence... no\r\nchecking for gdbm-ndbm.h... no\r\nchecking for library containing dbm_open... -lgdbm_compat\r\nchecking db.h usability... no\r\nchecking db.h presence... no\r\nchecking for db.h... no\r\nchecking for --with-dbmliborder... gdbm\r\nchecking for _dbm module CFLAGS and LIBS... \r\n[...]\r\nchecking for stdlib extension module _dbm... missing\r\nchecking for stdlib extension module _gdbm... yes\r\n[...]\r\n```\r\n\r\nIt seems that the problem is in the following snippet:\r\n\r\n```sh\r\nfor db in $with_dbmliborder; do\r\n case \"$db\" in\r\n ndbm)\r\n if test \"$have_ndbm\" = yes; then\r\n DBM_CFLAGS=\"-DUSE_NDBM\"\r\n DBM_LIBS=\"$dbm_ndbm\"\r\n have_dbm=yes\r\n break\r\n fi\r\n ;;\r\n gdbm)\r\n if test \"$have_gdbm_compat\" = yes; then\r\n DBM_CFLAGS=\"-DUSE_GDBM_COMPAT\"\r\n DBM_LIBS=\"-lgdbm_compat\"\r\n have_dbm=yes\r\n break\r\n fi\r\n ;;\r\n```\r\n\r\nHowever, `have_gdbm_compat` is not declared anymore, probably because of:\r\n\r\n```sh\r\nAC_MSG_CHECKING([for ndbm presence and linker args])\r\nAS_CASE([$ac_cv_search_dbm_open],\r\n [*ndbm*|*gdbm_compat*], [\r\n dbm_ndbm=\"$ac_cv_search_dbm_open\"\r\n have_ndbm=yes\r\n ],\r\n```\r\n\r\ndeclaring `have_ndbm=yes` in this case.\r\n\r\nSeems to have been introduced in ec5e253556875640b1ac514e85c545346ac3f1e0 by @tiran.\r\n\r\n# Your environment\r\n\r\n- CPython versions tested on: 3.12.0a1\r\n- Operating system and architecture: Gentoo/amd64\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-98643\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/mgorny","@type":"Person","name":"mgorny"},"datePublished":"2022-10-25T06:48:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/98636/cpython/issues/98636"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:96d066b6-ac84-f68f-0759-6335273f8125 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EE2C:361CC5:ED90BB:1425AA5:6969F1B3 |
| html-safe-nonce | f23661d89ed884021f58e82468139cda1005a55627e4d33accff188e58f739c7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTJDOjM2MUNDNTpFRDkwQkI6MTQyNUFBNTo2OTY5RjFCMyIsInZpc2l0b3JfaWQiOiIzMjc4MDA5MDgxNzcwMTQ0MTc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d76e55450a33e334fb1a2e2bd8ad65403ba512429220dabb98dbbb81e1f37855 |
| hovercard-subject-tag | issue:1421946864 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/98636/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab518506d11c826a720282f24cd012a773695db2f3bc5f2ef01cb84c996bd142/python/cpython/issues/98636 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab518506d11c826a720282f24cd012a773695db2f3bc5f2ef01cb84c996bd142/python/cpython/issues/98636 |
| og:image:alt | Bug report It seems that the configure script is no longer able to build _dbm module from gdbm_compat. Excerpts from configure log (full log: configure.txt): $ ./configure -C --with-dbmliborder=gdb... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mgorny |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width