[Libguestfs] compile libguestfs 1.19.35
Richard W.M. Jones
rjones at redhat.com
Tue Sep 4 11:33:32 UTC 2012
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
More information about the Libguestfs
mailing list