Hi Rich

I'm sure that this is some dependeny  issue.
libtinfo-dev is already installed.

I have install libcunit1-ncurses-dev,libncurses5

However the package ncurses-devel is nor present in ubuntu.

apt-cache search ncurses-devel returns nothing

Thanks for the quick reply


On Thu, May 29, 2014 at 5:18 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Thu, May 29, 2014 at 05:05:30PM +0530, abhishek jain wrote:
> Hi
>
> I'm getting following error while compiling libguestfs-1.26.1...
>
>  CCLD     guestfish
> guestfish-progress.o: In function `progress_bar_init':
> /home/ubuntu/libguestfs-1.26.1/fish/progress.c:123: undefined reference to
> `tgetent'
> guestfish-progress.o: In function `progress_bar_set':
> /home/ubuntu/libguestfs-1.26.1/fish/progress.c:282: undefined reference to
> `tgetnum'
> /home/ubuntu/libguestfs-1.26.1/fish/progress.c:297: undefined reference to
> `UP'
> guestfish-progress.o: In function `fprintf':
> /usr/include/powerpc-linux-gnu/bits/stdio2.h:97: undefined reference to `UP'
> collect2: error: ld returned 1 exit status

These symbols are provided by 'libtinfo' which is part of ncurses.

So you'll probably need to install that library, eg:

  yum install ncurses-devel
  apt-get install libtinfo-dev

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top