[Python-bugs-list] [ python-Bugs-729236 ] building readline module fails on Irix 6.5

SourceForge.net noreply@sourceforge.net
Wed, 21 May 2003 16:49:08 -0700


Bugs item #729236, was opened at 2003-04-28 19:03
Message generated for change (Comment added) made by nnorwitz
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: Neal Norwitz (nnorwitz)
Date: 2003-05-21 19:49

Message:
Logged In: YES 
user_id=33168

Is HAVE_RL_COMPLETION_MATCHES defined?  If so is
rl_completion_matches() defined to return char ** in
readline.h?  If HAVE_* is not defined, where is
completion_matches() defined and what does it return?

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

Comment By: alexandre gillet (gillet)
Date: 2003-05-12 14: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 13: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 07: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