Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2000:
[Freeciv-Dev] Re: Readline doesn't work under RH7
Home

[Freeciv-Dev] Re: Readline doesn't work under RH7

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Tuomas Airaksinen <tuma@xxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Readline doesn't work under RH7
From: Thue <thue@xxxxxxx>
Date: Thu, 2 Nov 2000 11:25:26 +0100
Reply-to: thue@xxxxxxx

On Sun, 29 Oct 2000 11:21:36 Tuomas Airaksinen wrote:
> It worked until I installed Redhat 7.0. But no more. 
> I have readline and readline-devel packages installed, but
> Freeciv doesn't compile with readline support. 
> 
> checking for gethostbyname... (cached) yes
> checking for connect... (cached) yes
> checking for rl_callback_handler_install in -lreadline... (cached) no
> configure: error: Specified --with-readline but did not find library.
> 
> In config.log, there have not been written anything special for that.
> 
> [tuma@paaskyniemi /tuma]$ locate libreadline
> /usr/lib/libreadline.so.4
> /usr/lib/libreadline.so.4.1
> /usr/lib/libreadline.a
> /usr/lib/libreadline.so
> 
> Hmm... What's wrong?
> 
> Readline version is 4.1.

Readline depends on libncurses. Try doing

bash-2.04$ ldd /usr/lib/libreadline.so 
        libncurses.so.5 => /lib/libncurses.so.5 (0x40030000)
        libc.so.6 => /lib/libc.so.6 (0x4006e000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

If ldd doesn't show libreadline.so to require libncurses, the test linking
./configure does will fail. It is a bug in RH7 I guess.
I you really want to compile with readline support then edit configure.in to
not test for readline and add -lncurses to the server link libs.

-Thue



[Prev in Thread] Current Thread [Next in Thread]