[Python-bugs-list] [ python-Bugs-432497 ] curses module doesn't build on HP-UX

noreply@sourceforge.net noreply@sourceforge.net
Wed, 24 Oct 2001 10:14:48 -0700


Bugs item #432497, was opened at 2001-06-12 11:41
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=432497&group_id=5470

Category: Extension Modules
Group: Platform-specific
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: M.-A. Lemburg (lemburg)
>Assigned to: Martin v. Löwis (loewis)
Summary: curses module doesn't build on HP-UX

Initial Comment:
The curses module does not build on HP-UX 11.00 (don't
know about other versions). The reason according to
Peter Stoldt (peter_stoldt@hp.com) who provided the fix
below is to look for the curses header file in a
different directory.

Here is his fix:
In py_curses.h exchange the line with
 
 #include <curses.h>
 
 with
 
 #include <curses_colr/curses.h>

This would have to be done in a platform specific way
of course. Perhaps all it takes is adding the
curses_colr/ dir to the compiler call as -I option...
not sure.

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

>Comment By: Martin v. Löwis (loewis)
Date: 2001-10-24 10:14

Message:
Logged In: YES 
user_id=21627

Using curses_colr/curses.h is actually wrong, since colr
Curses is deprecated, and provided only for backwards
compatibity. The long-term curses for HPUX is Xcurses from
<curses.h>. This is supported through
acconfig.h 1.57
configure.in 1.278
pyconfig.h.in 1.20
py_curses.h 1.3
_cursesmodule.c 2.58

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

Comment By: A.M. Kuchling (akuchling)
Date: 2001-07-11 12:28

Message:
Logged In: YES 
user_id=11375

It seems reasonable to check for that directory in the 
configure script, and use it if present.  I'll do that.


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

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