This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: term.h present but cannot be compiled
Type: Stage:
Components: Build Versions: Python 2.3
process
Status: closed Resolution: out of date
Dependencies: Superseder: configure not able to find ncurses/curses in Solaris
View: 933795
Assigned To: Nosy List: amaury.forgeotdarc, loewis, nhawthorn
Priority: normal Keywords:

Created on 2003-10-03 03:09 by nhawthorn, last changed 2022-04-10 16:11 by admin. This issue is now closed.

Messages (4)
msg60409 - (view) Author: Nicholas Hawthorn (nhawthorn) Date: 2003-10-03 03:09
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.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!
msg60410 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-10-04 07:58
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.
msg60411 - (view) Author: Nicholas Hawthorn (nhawthorn) Date: 2003-10-07 20:05
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.
msg79287 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2009-01-06 21:25
This was corrected a long time ago in r37372
History
Date User Action Args
2022-04-10 16:11:34adminsetgithub: 39358
2009-01-06 21:25:54amaury.forgeotdarcsetstatus: open -> closed
resolution: out of date
superseder: configure not able to find ncurses/curses in Solaris
messages: + msg79287
nosy: + amaury.forgeotdarc
2003-10-03 03:09:28nhawthorncreate