Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2000:
[Freeciv-Dev] Re: Trivial Build Problem (PR#597)
Home

[Freeciv-Dev] Re: Trivial Build Problem (PR#597)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ronis@xxxxxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Trivial Build Problem (PR#597)
From: Thue <thue@xxxxxxx>
Date: Thu, 9 Nov 2000 17:40:00 +0100
Reply-to: thue@xxxxxxx

On Thu, 09 Nov 2000 17:33:52 David Ronis wrote:
> Thue writes:
>  > 
>  > On Thu, 09 Nov 2000 17:18:55 you wrote:
>  > > Full_Name: David Ronis
>  > > Version: CURRENT CVS
>  > > Distribution: Built from source
>  > > Client: Gtk+
>  > > OS: linux-2.2.17
>  > > Submission from: (NULL) (132.206.205.91)
>  > > 
>  > > 
>  > > I configure as
>  > > 
>  > > ./configure  --with-x --disable-nls --with-zlib --with-readline
>  > > 
>  > > The server fails to build due to unresolved externals to curses/termcap
>  > > functions.  If I manually add -lncurses it works and the rest of the
build
>  > > completes.
>  > > 
>  > > Here's the log:
>  > > 
>  > > gcc  -O3 -march=i686 -ffast-math -funroll-loops -fomit-frame-pointer
>  > -fforce-mem
>  > > -fforce-addr -malign-jumps=3 -malign-loops=3 -malign-functions=3
>  > > -mpreferred-stack-boundary=3 -Wall  -o civserver  civserver.o
>  > > ../common/libcivcommon.a ../ai/libcivai.a ./libcivserver.a 
>  > > ../common/libcivcommon.a ../ai/libcivai.a ./libcivserver.a -lreadline 
-lz 
>  > > /usr/lib/libreadline.so: undefined reference to `tgetnum'
>  > > /usr/lib/libreadline.so: undefined reference to `tgoto'
>  > > /usr/lib/libreadline.so: undefined reference to `tgetflag'
>  > > /usr/lib/libreadline.so: undefined reference to `BC'
>  > > /usr/lib/libreadline.so: undefined reference to `tputs'
>  > > /usr/lib/libreadline.so: undefined reference to `PC'
>  > > /usr/lib/libreadline.so: undefined reference to `tgetent'
>  > > /usr/lib/libreadline.so: undefined reference to `UP'
>  > > /usr/lib/libreadline.so: undefined reference to `tgetstr'
>  > > collect2: ld returned 1 exit status
>  > 
>  > It is readline that needs termcap. That it is not automatically included
must
>  > mean that the readline lib is not properly installed.
>  > 
>  > 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)
>  > 
>  > At least I hope it is not our responsibility to include readlines
dependensies,
>  > cause they vary with OS and readline version. It wouldn't be logical.
>  > 
>  > This should be added to various FAQs.
>  > 
>  > -Thue
> 
> Well, when I run ldd on libreadline I don't get the ncurses
> dependency.  It should be tested for in the configure step (i.e., do
> you need to link in ncurses explictly); I think that's what other
> applications do.
> 
> David

Another thing; I wonder why ./configure doesn't complain, as it tests the
readline lib by linking it.

If you think other apps do it, can you suggest one to steal GPL code from?

-Thue



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: Trivial Build Problem (PR#597), Thue <=