[Freeciv-Dev] Re: Readline doesn't work under RH7
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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?
[tty1 tuma@paaskyniemi /tuma]$ ldd /usr/lib/libreadline.so.4
libc.so.6 => /lib/libc.so.6 (0x40031000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
--
Terveisin Tuomas Airaksinen linux
Kotisivu: http://tuma.cjb.net is all
Sähköposti: tuma@xxxxxxxxxxxx we
Icq: 11870110, IRCnet: tuma need
|
|