[Python-bugs-list] [Bug #130117] Python-2.1a1 sgi build _curses Module fix

noreply@sourceforge.net noreply@sourceforge.net
Thu, 25 Jan 2001 20:51:47 -0800


Bug #130117, was updated on 2001-Jan-25 20:51
Here is a current snapshot of the bug.

Project: Python
Category: Build
Status: Open
Resolution: None
Bug Group: Platform-specific
Priority: 5
Submitted by: pj99
Assigned to : nobody
Summary: Python-2.1a1 sgi build _curses Module fix

Details: The build of the _curses module on sgi (IRIX) fails,
for want of an extern function declaration of tparm().

Without the following fix, the "setup.py build" fails
on the _curses module with many complaints resembling:

cc-1515 cc: ERROR File =
/usr/people/pj/etc/python/Python-2.1a1/Python-2.1a1/Modules/_cursesmodule.c,
Line = 2239
  A value of type "int" cannot be assigned to an entity of type "char *".

                result = tparm(fmt);
                       ^

With this fix, the compilation of _cursesmodule.c is clean.

The patch is:

*** _cursesmodule.c.orig        Thu Jan 25 19:37:29 2001
--- _cursesmodule.c     Thu Jan 25 20:39:10 2001
***************
*** 115,120 ****
--- 115,121 ----
  extern int setupterm(char *,int,int *);
  #ifdef sgi
  extern char *tigetstr(char *);
+ extern char *tparm(char *instring, ...);
  #endif
  
  #if defined(sgi) || defined(__sun__)



For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=130117&group_id=5470