[Python-bugs-list] [ python-Bugs-729236 ] building readline module fails on Irix 6.5
SourceForge.net
noreply@sourceforge.net
Mon, 12 May 2003 11:02:24 -0700
Bugs item #729236, was opened at 2003-04-28 23:03
Message generated for change (Comment added) made by gillet
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=729236&group_id=5470
Category: Build
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: alexandre gillet (gillet)
Assigned to: Nobody/Anonymous (nobody)
Summary: building readline module fails on Irix 6.5
Initial Comment:
I am trying to build Python2.3b1 on a sgi Irix 6.5 using
MIPSpro Compilers: Version 7.30
I can't get the readline module to build. I get the
following error:
cc -OPT:Olimit=0 -DNDEBUG -O -I. -I../Include
-I/mgl/prog/share/include/ -c ../Modules/readline.c -o
Modules/readline.o
cc-1119 cc: ERROR File = ../Modules/readline.c, Line = 587
The "return" expression type differs from the
function return type.
return completion_matches(text, *on_completion);
^
cc-1552 cc: WARNING File = ../Modules/readline.c, Line
= 732
The variable "m" is set but never used.
PyObject *m;
^
1 error detected in the compilation of
"../Modules/readline.c".
gmake: *** [Modules/readline.o] Error 2
----------------------------------------------------------------------
>Comment By: alexandre gillet (gillet)
Date: 2003-05-12 18:02
Message:
Logged In: YES
user_id=150999
I was able to compile readline on Irix after changing the
function flex_complete. the function prototyte say it should
return a char** .So we did put the following change and it
works. Is it a right way to do it?
** readline.c 2003-05-09 13:45:38.000000000 -0700
--- readline.c~ 2003-03-01 07:19:41.000000000 -0800
***************
*** 577,589 ****
/* A more flexible constructor that saves the "begidx" and
"endidx"
* before calling the normal completer */
! static char ** flex_complete(char *text, int start, int end)
{
Py_XDECREF(begidx);
Py_XDECREF(endidx);
begidx = PyInt_FromLong((long) start);
endidx = PyInt_FromLong((long) end);
! return (char **)completion_matches(text,
*on_completion);
}
--- 577,590 ----
/* A more flexible constructor that saves the "begidx" and
"endidx"
* before calling the normal completer */
! static char **
! flex_complete(char *text, int start, int end)
{
Py_XDECREF(begidx);
Py_XDECREF(endidx);
begidx = PyInt_FromLong((long) start);
endidx = PyInt_FromLong((long) end);
! return completion_matches(text, *on_completion);
}
----------------------------------------------------------------------
Comment By: alexandre gillet (gillet)
Date: 2003-05-12 17:44
Message:
Logged In: YES
user_id=150999
My readline version is 4.3
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2003-04-29 11:44
Message:
Logged In: YES
user_id=21627
What is your readline version?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=729236&group_id=5470