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
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.3 Status: Closed 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: 2006-03-07 18:34 Message: Logged In: YES user_id=150999 Tested it with python2.4.2 and readline 5.1. It builds with no problem. ---------------------------------------------------------------------- Comment By: SourceForge Robot (sf-robot) Date: 2006-03-07 03:24 Message: 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). ---------------------------------------------------------------------- Comment By: Georg Brandl (birkenfeld) Date: 2006-02-20 09:15 Message: Logged In: YES user_id=1188172 Is this still the case with Python 2.4? ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2003-05-21 23: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 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 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com