[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] compile libguestfs 1.19.35




i have installed ncurses-devel, but the libtinfo.so.5.9 path is :
/usr/lib/libtinfo.so.5.9
 
$ nm -D /usr/lib/libtinfo.so.5.9 | grep tgetnum
4cec7ab0 T tgetnum
$ nm -D /usr/lib/libtinfo.so.5.9 | grep UP
4cedb884 B UP
 

周涛
 
Date: 2012-09-04 19:33
To: 周涛
Subject: Re: Re: compile libguestfs 1.19.35
 
On Tue, Sep 04, 2012 at 07:24:14PM +0800, 周涛 wrote:
> after change the source file dbdump.c, "make" leads to :
> make  all-am
> make[3]: Entering directory `/home/libguest_test/libguestfs-1.19.35/fish'
> make -C ../generator stamp-generator
> make[4]: Entering directory `/home/libguest_test/libguestfs-1.19.35/generator'
> make[4]: `stamp-generator' is up to date.
> make[4]: Leaving directory `/home/libguest_test/libguestfs-1.19.35/generator'
>   CCLD   guestfish
> guestfish-progress.o: In function `progress_bar_init':
> /home/libguest_test/libguestfs-1.19.35/fish/progress.c:121: undefined reference to `tgetent'
> guestfish-progress.o: In function `progress_bar_set':
> /home/libguest_test/libguestfs-1.19.35/fish/progress.c:274: undefined reference to `tgetnum'
> /home/libguest_test/libguestfs-1.19.35/fish/progress.c:279: undefined reference to `UP'
> /home/libguest_test/libguestfs-1.19.35/fish/progress.c:279: undefined reference to `tputs'
> collect2: error: ld returned 1 exit status
 
This one's quite common -- it should probably be a FAQ.
 
It happens because you have the libtinfo library missing:
 
$ nm -D /usr/lib64/libtinfo.so.5.9 | grep tgetnum
0000003520012350 T tgetnum
$ nm -D /usr/lib64/libtinfo.so.5.9 | grep UP
0000003520228e68 B UP
 
This library is part of ncurses.  Make sure ncurses-devel is installed
(or whatever the equivalent is on your distro, maybe libncurses-dev),
and then you *must* rerun ./configure.
 
Rich.
 
-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]