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: building readline module fails on Irix 6.5
Type: Stage:
Components: Build Versions: Python 2.3
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, gillet, loewis, nnorwitz, sf-robot
Priority: normal Keywords:

Created on 2003-04-28 23:03 by gillet, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Messages (8)
msg15731 - (view) Author: alexandre gillet (gillet) Date: 2003-04-28 23:03
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
msg15732 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-04-29 11:44
Logged In: YES 
user_id=21627

What is your readline version?
msg15733 - (view) Author: alexandre gillet (gillet) Date: 2003-05-12 17:44
Logged In: YES 
user_id=150999

My readline version is 4.3
msg15734 - (view) Author: alexandre gillet (gillet) Date: 2003-05-12 18:02
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);
  }









msg15735 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-05-21 23:49
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?
msg15736 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-02-20 09:15
Logged In: YES 
user_id=1188172

Is this still the case with Python 2.4?
msg15737 - (view) Author: SourceForge Robot (sf-robot) Date: 2006-03-07 03:24
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
msg15738 - (view) Author: alexandre gillet (gillet) Date: 2006-03-07 18:34
Logged In: YES 
user_id=150999

Tested it with python2.4.2 and readline 5.1. It builds with
no problem.
History
Date User Action Args
2022-04-10 16:08:25adminsetgithub: 38391
2003-04-28 23:03:13gilletcreate