[Python-bugs-list] [ python-Bugs-816929 ] term.h present but cannot be compiled

SourceForge.net noreply at sourceforge.net
Sat Oct 4 03:58:57 EDT 2003


Bugs item #816929, was opened at 2003-10-03 05:09
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=816929&group_id=5470

Category: Build
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Nicholas Hawthorn (nhawthorn)
Assigned to: Nobody/Anonymous (nobody)
Summary: term.h present but cannot be compiled

Initial Comment:
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 at 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!



----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-10-04 09:58

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=816929&group_id=5470



More information about the Python-bugs-list mailing list