Skip to content
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

term.h present but cannot be compiled #39358

Closed
nhawthorn mannequin opened this issue Oct 3, 2003 · 4 comments
Closed

term.h present but cannot be compiled #39358

nhawthorn mannequin opened this issue Oct 3, 2003 · 4 comments
Labels
build The build process and cross-build

Comments

@nhawthorn
Copy link
Mannequin

nhawthorn mannequin commented Oct 3, 2003

BPO 816929
Nosy @loewis, @amauryfa
Superseder
  • bpo-933795: configure not able to find ncurses/curses in Solaris
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2009-01-06.21:25:54.768>
    created_at = <Date 2003-10-03.03:09:28.000>
    labels = ['build']
    title = 'term.h present but cannot be compiled'
    updated_at = <Date 2009-01-06.21:25:54.755>
    user = 'https://bugs.python.org/nhawthorn'

    bugs.python.org fields:

    activity = <Date 2009-01-06.21:25:54.755>
    actor = 'amaury.forgeotdarc'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-01-06.21:25:54.768>
    closer = 'amaury.forgeotdarc'
    components = ['Build']
    creation = <Date 2003-10-03.03:09:28.000>
    creator = 'nhawthorn'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 816929
    keywords = []
    message_count = 4.0
    messages = ['60409', '60410', '60411', '79287']
    nosy_count = 3.0
    nosy_names = ['loewis', 'amaury.forgeotdarc', 'nhawthorn']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = '933795'
    type = None
    url = 'https://bugs.python.org/issue816929'
    versions = ['Python 2.3']

    @nhawthorn
    Copy link
    Mannequin Author

    nhawthorn mannequin commented Oct 3, 2003

    This report relates to building Python 2.3.1 on Irix 6.5.

    Here is stderr output from: configure --with-cxx=CC
    configure: WARNING: term.h: present but cannot be compiled
    configure: WARNING: term.h: check for missing
    prerequisite headers?
    configure: WARNING: term.h: proceeding with the
    preprocessor's result
    configure: WARNING: ##
    ------------------------------------ ##
    configure: WARNING: ## Report this to
    bug-autoconf@gnu.org. ##
    configure: WARNING: ##
    ------------------------------------ ##

    I did submit a bug report -- they said the issue is known.
    "make" after this gave the following error, among others:-
    cc-1059 cc: ERROR File =
    /xlv4/med_psyc/nhn/py231/Python-2.3.1/Modules/termios.c
    , Line = 633
    A function call is not allowed in a constant expression.

        {"CWERASE", CWERASE},
    

    By experiment on a very short C program, term.h needs
    curses.h to be included before it, and will not compile
    correctly otherwise. This would give a number of errors.

    Thanks and best wishes!

    @nhawthorn nhawthorn mannequin added build The build process and cross-build labels Oct 3, 2003
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Oct 4, 2003

    Logged In: YES
    user_id=21627

    Even though I cannot fully understand your remarks, it
    appears that you are suggesting a solution. Can you perhaps
    produce a patch that fixes the problem?

    I am still uncertain what the bug in Python here is. In line
    633, there is no function call, as far as I can see
    (although CWERASE might expand to a function call); so it
    seems more likely that this is a bug in CC or in the system
    header files, not in Python.

    As a work-around, just try compiling --without-cxx.

    @nhawthorn
    Copy link
    Mannequin Author

    nhawthorn mannequin commented Oct 7, 2003

    Logged In: YES
    user_id=879291

    I can't properly understand the error or suggest a
    patch, after trying for quite a long time. Compiling
    --without-cxx did not help. I did find out that
    CWERASE is meant to expand to CTRL('w') which is meant
    to expand to (('w')&037). There are #defines to do
    this in /usr/include/sys/termios.h, and for things
    like CWERASE, but they are controlled by #if
    statements. I agree that there could be problems with
    SGI system header files, but it would be nice if
    Python allowed for these.

    @amauryfa
    Copy link
    Member

    amauryfa commented Jan 6, 2009

    This was corrected a long time ago in r37372

    @amauryfa amauryfa closed this as completed Jan 6, 2009
    @amauryfa amauryfa closed this as completed Jan 6, 2009
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant