Skip to content

configure is checking for ttyname but code is using ttyname_r #127614

Closed

Description

@glebm

Bug report

Bug description:

PR #14868 by @chibby0ne changed the code to use ttyname_r but the configure script is checking for ttyname.

There are some old systems, such as OSX Tiger, that don't have ttyname_r (at least not by default), so it'd be nice if ttyname_r was checked for separately with fallback to ttyname.

CPython versions tested on:

3.11, 3.12

Operating systems tested on:

macOS

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    on Dec 4, 2024
  2. added
    buildThe build process and cross-build
    on Dec 5, 2024
  3. added a commit that references this issue on Dec 7, 2024
  4. erlend-aasland commented on Jan 4, 2025

    @erlend-aasland
    Contributor

    Mac OS X Tiger is not supported; I'm not sure it is worth it to add a fallback to ttyname. I agree, though, that we should fix the build dependency check.

  5. added a commit that references this issue on Jan 4, 2025
  6. added a commit that references this issue on Jan 7, 2025
  7. added a commit that references this issue on Jan 7, 2025
  8. erlend-aasland commented on Jan 7, 2025

    @erlend-aasland
    Contributor

    Thanks for the report, @glebm

  9. added a commit that references this issue on Jan 7, 2025
  10. glebm commented on Jan 7, 2025

    @glebm
    Author

    Thanks for the fix!

  11. added a commit that references this issue on Jan 8, 2025
  12. added a commit that references this issue on Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions