-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Build failure on NetBSD: UT_NAMESIZE undeclared due to missing utmp.h include #135108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
bisect to 1ffe913 |
colesbury
pushed a commit
that referenced
this issue
Jun 4, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jun 4, 2025
…honGH-135109) (cherry picked from commit 5b38654) Co-authored-by: Furkan Onder <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jun 4, 2025
…honGH-135109) (cherry picked from commit 5b38654) Co-authored-by: Furkan Onder <[email protected]>
This was referenced Jun 4, 2025
colesbury
pushed a commit
that referenced
this issue
Jun 4, 2025
…-135109) (GH-135128) (cherry picked from commit 5b38654) Co-authored-by: Furkan Onder <[email protected]>
colesbury
pushed a commit
that referenced
this issue
Jun 4, 2025
…-135109) (GH-135127) (cherry picked from commit 5b38654) Co-authored-by: Furkan Onder <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
CPython fails to build on NetBSD with the following error:
Root Cause
The issue is in the header inclusion logic for PTY-related headers. The
<utmp.h>
header (which definesUT_NAMESIZE
) is incorrectly nested inside theHAVE_PTY_H
conditional block:On NetBSD:
HAVE_OPENPTY
is defined ✓HAVE_PTY_H
is not defined (NetBSD doesn't have/usr/include/pty.h
)HAVE_UTIL_H
is defined ✓ (PTY functions are in/usr/include/util.h
)HAVE_UTMP_H
is defined ✓ (but never gets included due to nesting)Proposed Fix
Move the
<utmp.h>
inclusion outside the PTY header conditional so it can be included regardless of which PTY header is used:CPython versions tested on:
CPython main branch
Operating systems tested on:
Other
Linked PRs
The text was updated successfully, but these errors were encountered: