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 >
On Thu, May 29, 2014 at 05:31:20PM +0530, abhishek jain wrote:> Hi Rich > > I'm sure that this is some dependeny issue. > libtinfo-dev is already installed.Did you rerun configure after installing the package? This is necessary because the autoconf script changes one of the variable definitions depending on what is installed. If in doubt this should fix things: sudo apt-get install libtinfo-dev rm -f config.cache ./configure make clean make FYI on my Ubuntu 13.10 machine: $ nm -D /usr/lib/x86_64-linux-gnu/libtinfo.so | grep tgetent 00000000000112c0 T tgetent $ dpkg -S /usr/lib/x86_64-linux-gnu/libtinfo.so libtinfo-dev:amd64: /usr/lib/x86_64-linux-gnu/libtinfo.so 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
Hi Rich I using ubuntu 13.10 with powerpc arch. I tried the above stepss and below are the output of the related commands.. nm -D /usr/lib/powerpc-linux-gnu/libtinfo.so | grep tgetent 0000def0 T tgetent ubuntu@t4240-ubuntu1310:~$ dpkg -S /usr/lib/powerpc-linux-gnu/libtinfo.so libtinfo-dev:powerpc: /usr/lib/powerpc-linux-gnu/libtinfo.so However I'm not able to perform rm -f config.cache as there is no config.cache file Thanks for the wonderful support. On Thu, May 29, 2014 at 6:27 PM, Richard W.M. Jones <rjones@redhat.com> wrote:> On Thu, May 29, 2014 at 05:31:20PM +0530, abhishek jain wrote: > > Hi Rich > > > > I'm sure that this is some dependeny issue. > > libtinfo-dev is already installed. > > Did you rerun configure after installing the package? This is > necessary because the autoconf script changes one of the variable > definitions depending on what is installed. > > If in doubt this should fix things: > > sudo apt-get install libtinfo-dev > rm -f config.cache > ./configure > make clean > make > > FYI on my Ubuntu 13.10 machine: > > $ nm -D /usr/lib/x86_64-linux-gnu/libtinfo.so | grep tgetent > 00000000000112c0 T tgetent > $ dpkg -S /usr/lib/x86_64-linux-gnu/libtinfo.so > libtinfo-dev:amd64: /usr/lib/x86_64-linux-gnu/libtinfo.so > > 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 >