[Python-bugs-list] [ python-Bugs-816929 ] term.h present but cannot
be compiled
SourceForge.net
noreply at sourceforge.net
Tue Oct 7 16:05:01 EDT 2003
Bugs item #816929, was opened at 2003-10-03 15:09
Message generated for change (Comment added) made by nhawthorn
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: Nicholas Hawthorn (nhawthorn)
Date: 2003-10-08 09:05
Message:
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.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2003-10-04 19: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