Skip to content

GhostBSD 20.10.1 python3 build failed: ./Modules/posixmodule.c:8817:21: error: 'I_PUSH' undeclared #130456

@Suryavarman

Description

@Suryavarman

Bug report

Bug description:

I want to compile python on my GhostBSD 20.10.1 OS based on freeBSD 14.1 STABLE
The bug is the same for python 3.11, 3.12, 3.13.
I have not tried with earlier versions.

Here is the bug:
ptmx is detected, but stropts.h does not exist.

In the ./Modules/posixmodule.c file, on lines 8814, 8815 and 8816, there is no test to see if HAVE_STROPTS_H is defined, even though the variable I_PUSH defined in stropts.h is used.

I've looked hard but in the current version of GhostBSD stropts.h is no longer included.
While browsing the internet, I read here and there that stropts.h was no longer part of posix.
EDIT: Removed in POSIX.1-2024.

To solve the problem I could install openpty, but this library doesn't seem to be available any more either.

# checking for stropts.h... no
# checking for pty.h... no
# checking for _getpty... no
# checking for openpty... no
# checking for openpty in -lutil... no
# checking for openpty in -lbsd... no
# checking for library containing login_tty... no
# checking for forkpty... no
# checking for forkpty in -lutil... no
# checking for forkpty in -lbsd... no
# checking for /dev/ptmx... yes 

CPython versions tested on:

3.13

Operating systems tested on:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-unsupportedbuildThe build process and cross-buildextension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions