[Freeciv-Dev] Re: `rl_filename_completion_function' undeclared (PR#1080)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Thu, Nov 29, 2001 at 11:14:51AM +0100, Olivier Lecarme wrote:
> >>>>> On Wed, 28 Nov 2001 18:46:29 +0100, you said:
>
> RF> On Wed, Nov 28, 2001 at 05:00:53PM +0100, Olivier Lecarme wrote:
> >> >>>>> On Wed, 28 Nov 2001 16:45:06 +0100, you said:
> >>
> >>
> RF> Can you do a "grep READLINE config.h"?
> >>
> >>
> >> grep READLINE config.h
> >> #define HAVE_LIBREADLINE 1
> >>
> >> Thus the --with-readline option seems implicit ?
> >>
> >> Can you look which file the
> RF> compiler uses for the
> RF> #include <readline/readline.h>
> RF> in stdinhand.c.
> >>
> >> GCC is called like this :
> >>
> >> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../common -I./../ai -I../intl -g
> >> -O2 -Wall -c stdinhand.c
> >>
> >> readline/readline.h is in /usr/local/include
> >>
> >> I see how I can manage to have the compilation correct,
>
> RF> Fine.
>
> However, that doesn't work: rl_filename_completion_function is not
> defined in any .h file in /usr/local/include/readline.
Than it looks like your readline isn't 4.2.
Either install readline 4.2 or (from INSTALL):
It is possible to make freeciv work with versions of readline earlier
than 4.2 (but not with 4.2). To do this replace
"rl_filename_completion_function" with "filename_completion_function" and
"rl_completion_matches" with "completion_matches" in configure.in and
server/stdinhand.c, and remove the const modifier from the first arg of
server/stdinhand.c:freeciv_completion(). Then run autoconf and rebuild.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"At the beginning of the week, we sealed ten BSD programmers
into a computer room with a single distribution of BSD Unix.
Upon opening the room after seven days, we found all ten programmers
dead, clutching each other's throats, and thirteen new flavors of BSD."
|
|