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, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Trivial Build Problem (PR#597)
From: Thue <thue@xxxxxxx>
Date: Thu, 9 Nov 2000 17:28:16 +0100
Reply-to: thue@xxxxxxx

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



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