Title: `grp` module attempts to build even if `getgrent` family of functions are unavailable · Issue #114875 · python/cpython · GitHub
Open Graph Title: `grp` module attempts to build even if `getgrent` family of functions are unavailable · Issue #114875 · python/cpython
X Title: `grp` module attempts to build even if `getgrent` family of functions are unavailable · Issue #114875 · python/cpython
Description: Bug report Bug description: In the configure script, the only prerequisite for the grp module is currently the getgrgid function. Older versions of Android have this function, but they don't have the getgrent function, which the grp modu...
Open Graph Description: Bug report Bug description: In the configure script, the only prerequisite for the grp module is currently the getgrgid function. Older versions of Android have this function, but they don't have t...
X Description: Bug report Bug description: In the configure script, the only prerequisite for the grp module is currently the getgrgid function. Older versions of Android have this function, but they don't ha...
Opengraph URL: https://github.com/python/cpython/issues/114875
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`grp` module attempts to build even if `getgrent` family of functions are unavailable","articleBody":"# Bug report\n\n### Bug description:\n\nIn the configure script, the only prerequisite for the `grp` module is currently the `getgrgid` function. Older versions of Android have this function, but they don't have the `getgrent` function, which the `grp` module uses unconditionally. This causes the build to fail as follows:\n\n```\n/Users/msmith/Library/Android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/darwin-x86_64/bin/x86_64-linux-android21-clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -c ./Modules/grpmodule.c -o Modules/grpmodule.o\n./Modules/grpmodule.c:127:24: warning: unused variable 'buf2' [-Wunused-variable]\n char *buf = NULL, *buf2 = NULL;\n ^\n./Modules/grpmodule.c:205:24: warning: unused variable 'buf2' [-Wunused-variable]\n char *buf = NULL, *buf2 = NULL, *name_chars;\n ^\n./Modules/grpmodule.c:287:5: error: implicit declaration of function 'setgrent' is invalid in C99 [-Werror,-Wimplicit-function-declaration]\n setgrent();\n ^\n./Modules/grpmodule.c:288:17: error: implicit declaration of function 'getgrent' is invalid in C99 [-Werror,-Wimplicit-function-declaration]\n while ((p = getgrent()) != NULL) {\n ^\n```\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nOther\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-114876\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/mhsmith","@type":"Person","name":"mhsmith"},"datePublished":"2024-02-01T20:03:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/114875/cpython/issues/114875"}
| 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:0130a02e-1325-0d66-37bc-a7ced631e39f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE80:A3043:4F89E:6B7C0:696A69EA |
| html-safe-nonce | a36545eee9cc27cf6406106855158691fcec9269753c5a1e8af6eed9bc7cf908 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTgwOkEzMDQzOjRGODlFOjZCN0MwOjY5NkE2OUVBIiwidmlzaXRvcl9pZCI6IjQyMTk0NjM4MjE0MDQzMDE4MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4fd07112c2dc69c1a82636b8ede6aa6be79b8a90ffe98d61640a6d473d7ebf38 |
| hovercard-subject-tag | issue:2113370611 |
| 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/114875/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8d48bd935e84df8f0b2a5e5df712f69703bb6e31b2e59ee9c22303fa253ec622/python/cpython/issues/114875 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8d48bd935e84df8f0b2a5e5df712f69703bb6e31b2e59ee9c22303fa253ec622/python/cpython/issues/114875 |
| og:image:alt | Bug report Bug description: In the configure script, the only prerequisite for the grp module is currently the getgrgid function. Older versions of Android have this function, but they don't have t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mhsmith |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6fea32d5b7276b841b7a803796d9715bc6cfb31ed549fdf9de2948ac25d12ba6 |
| 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 | f2d9f6432a5a115ec709295ae70623f33bb80aee |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width