[libvirt] Libtool problem

Daniel P. Berrange berrange at redhat.com
Thu Jun 4 10:04:44 UTC 2009


On Wed, Jun 03, 2009 at 05:46:37PM -0300, Eduardo Otubo wrote:
> Hello all,
> 
> I found this when compiling the last git commit
> (0a29f59e3b8e2c1fb797d2fa93831f21a3e1711e). This is the first
> compilation from my new Ubuntu instalation (9.04) so I cannot figure out
> if it is a libvirt problem or if it is any configuration problem. I
> configured the compilation with './configure --with-phyp=yes
> --with-xen=no' and the make exit is the following:
> 
> otubo at lisa ~/develop/libvirt/src $ make
> make  all-recursive
> make[1]: Entering directory `/home/otubo/develop/libvirt/src'
> Making all in gnulib/lib
> make[2]: Entering directory `/home/otubo/develop/libvirt/src/gnulib/lib'
> make  all-recursive
> make[3]: Entering directory `/home/otubo/develop/libvirt/src/gnulib/lib'
> make[4]: Entering directory `/home/otubo/develop/libvirt/src/gnulib/lib'
> /bin/bash ../../mylibtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
> -I. -I../..  -I../../intl   -g -O2 -MT c-ctype.lo -MD -MP
> -MF .deps/c-ctype.Tpo -c -o c-ctype.lo c-ctype.c
> (CC) -o c-ctype.lo c-ctype.c
> /home/otubo/develop/libvirt/src/gnulib/lib/../../libtool: line 847:
> X--tag=CC: command not found
> make: *** [all] Error 2

[snip]

> It seems there is a strange error form libtool, it's not recognizing
> some options, or some malformed options there is being passed to
> libtool.

We introduced a wrapper around libtool - see the 'mylibtool' script.
I reckon there's a non-zero chance that it is broken with Ubuntu
because they change /bin/sh to use 'dash' instead of 'bash'. You
might try editting 'mylibtool' and changing the first line to explicitly
call bash and see if it then works

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list