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: Fri, 3 Nov 2000 20:12:35 +0100
Reply-to: thue@xxxxxxx

On Thu, 02 Nov 2000 23:51:05 Tuomas Airaksinen wrote:
> On Thu, Nov 02, 2000 at 11:25:26AM +0100, Thue wrote:
> > 
> > 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.
> 
> Thank you Thue, that really was the case. But why don't ldd show 
> ncurses dependency then?

I assume it has to be set when the lib is installed/compiled. I don't know how
:).
But it cannot be freeciv's job to figure out whether and to what further
readline dependencies to link; that varies across OS's and readline versions.
So send RH a bug report :)

btw, this should be added to the FAQ and maybe the install instructions.

-Thue



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