<div dir="ltr"><div><div><div><div>hi mr Jones<br><br></div><div>Thank for your quick reply.<br></div>I only run ./configure.<br><br></div>I've just deleted config.cache as you say, but nothing changed.<br><br></div>Even i get new library : libguestfs-1.24.4, still get error.<br>
<br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/5 Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Sun, Jan 05, 2014 at 02:11:21PM +0700, Nguyễn Trường Sơn wrote:<br>
> Hi<br>
><br>
> I want to build libguestfs on my laptop.<br>
> I run Centos 6.4, libguestfs libguestfs-1.24.3.<br>
><br>
> I get this error:<br>
><br>
> Wide character in print at /root/libguestfs-1.24.3/<a href="http://podwrapper.pl" target="_blank">podwrapper.pl</a> line 418.<br>
> <a href="http://podwrapper.pl" target="_blank">podwrapper.pl</a>: wrote guestfish.1<br>
> <a href="http://podwrapper.pl" target="_blank">podwrapper.pl</a>: wrote ../html/guestfish.1.html<br>
> touch stamp-guestfish.pod<br>
>   CCLD     guestfish<br>
> guestfish-progress.o: In function `progress_bar_set':<br>
> /root/libguestfs-1.24.3/fish/progress.c:282: undefined reference to<br>
> `tgetnum'<br>
> guestfish-progress.o: In function `fprintf':<br>
> /usr/include/bits/stdio2.h:98: undefined reference to `UP'<br>
> guestfish-progress.o: In function `progress_bar_init':<br>
> /root/libguestfs-1.24.3/fish/progress.c:123: undefined reference to<br>
> `tgetent'<br>
> collect2: ld returned 1 exit status<br>
> make[3]: *** [guestfish] Error 1<br>
> make[3]: Leaving directory `/root/libguestfs-1.24.3/fish'<br>
> make[2]: *** [all] Error 2<br>
> make[2]: Leaving directory `/root/libguestfs-1.24.3/fish'<br>
> make[1]: *** [all-recursive] Error 1<br>
> make[1]: Leaving directory `/root/libguestfs-1.24.3'<br>
> make: *** [all] Error 2<br>
><br>
><br>
> I've read this page<br>
> <a href="http://www.redhat.com/archives/libguestfs/2012-September/msg00025.html" target="_blank">http://www.redhat.com/archives/libguestfs/2012-September/msg00025.html</a><br>
><br>
> I have libtinfo on my machine:<br>
><br>
> /lib64/libtinfo.so.5<br>
> /lib64/libtinfo.so.5.7<br>
> /usr/lib/libtinfo.so<br>
><br>
> Check the tgetnum, UP, tgetent<br>
><br>
> nm -D /usr/lib64/libtinfo.so | grep tgetnum<br>
> 0000003cd1210c40 T tgetnum<br>
><br>
> nm -D /usr/lib64/libtinfo.so | grep UP<br>
> 0000003cd1420fa8 B UP<br>
><br>
> nm -D /usr/lib64/libtinfo.so | grep tgetent<br>
> 0000003cd1210f00 T tgetent<br>
<br>
</div></div>I think the problem is you have to re-run ./configure after installing<br>
the library, since otherwise it doesn't know to link with the right<br>
library.<br>
<br>
If you're using ./configure -C (ie. caching enabled) you will also<br>
need to delete config.cache before re-running ./configure.<br>
<br>
Rich.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones
virt-top" target="_blank">http://people.redhat.com/~rjones<br>
virt-top</a> is 'top' for virtual machines.  Tiny program with many<br>
powerful monitoring features, net stats, disk stats, logging, etc.<br>
<a href="http://people.redhat.com/~rjones/virt-top" target="_blank">http://people.redhat.com/~rjones/virt-top</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>**************************************<br>Nguyễn Trường Sơn<br>Tin3K50 - Hệ thống thông tin K50 <br>ĐHBK Hà Nội <br>Mobile: 0904010635<br>Y!M: hunters_1094
</div>