It looks like there is a bug in the ' make install'
I had to manually do the steps below to copy the library onto the right path, before make install could succed
Took clues from the libxkutil.a library install that happens just before this error.

cd /home/dpkshetty/work/libvirt-cim/libvirt-cim/src/

1) /usr/bin/install -c .libs/ /home/dpkshetty/usr/lib/cmpi/
2) cd /home/dpkshetty/usr/lib/cmpi/
3) ln -s -f
4) ln -s -f
5) cd /home/dpkshetty/work/libvirt-cim/libvirt-cim/src/
6) /usr/bin/install -c .libs/libVirt_VirtualSystemSnapshotService.lai /home/dpkshetty/usr/lib/cmpi/
7) /usr/bin/install -c .libs/libVirt_VirtualSystemSnapshotService.a /home/dpkshetty/usr/lib/cmpi/libVirt_VirtualSystemSnapshotService.a
8) chmod 644 /home/dpkshetty/usr/lib/cmpi/libVirt_VirtualSystemSnapshotService.a
9) ranlib /home/dpkshetty/usr/lib/cmpi/libVirt_VirtualSystemSnapshotService.a
10) ldconfig -n /home/dpkshetty/usr/lib/cmpi

After this 'make install' worked fine.

On Mon, Oct 31, 2011 at 10:45 AM, Deepak Shetty <> wrote:
Hello Wayne,
  Thanks for the pointer , will try.
But i am on Ubuntu and did not understand why I should be doing a 'make rpm'.
Also i have sfcb ( Lite weight broker ) installed, will that not work with libvirt-cim ? Is CIMOM pegasus a must ?

On Mon, Oct 31, 2011 at 7:24 AM, Wayne Xia <> wrote:
pls have a try for following commands with CIMOM tog-pegasus installed:
make rpm

于 2011-10-29 19:46, Deepak Shetty 写道:
  I am getting the following error while doing ' make install' for
libvirt-cim. Can someone pls help provide some pointers on what could be
wrong here ?


test -z "/home/dpkshetty/usr/lib/cmpi" || /bin/mkdir -p
 /bin/bash ../libtool   --mode=install /usr/bin/install -c
*libtool: install: warning: relinking `'*

libtool: install: (cd /home/dpkshetty/work/libvirt-cim/libvirt-cim/src;
/bin/bash /home/dpkshetty/work/libvirt-cim/libvirt-cim/libtool  --silent
--tag CC --mode=relink gcc -g -O2 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -Wall -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes -Wpointer-arith -Wformat=2 -Wformat-security
-Wformat-nonliteral -Wno-format-y2k -Wcast-align -Wno-unused-value
-DLIBVIRT_CIM_CS=\"2714b9a5e842\" -DLIBVIRT_CIM_RV=\"1151\"
-I../libxkutil ../libxkutil/ <>

-version-info 5:14:5 -L/home/dpkshetty/usr/lib -lvirt -ldl
-L/home/dpkshetty/usr/lib -lcmpiutil -L/usr/lib/i386-linux-gnu -luuid -o -rpath /home/dpkshetty/usr/lib/cmpi
Virt_ComputerSystem.lo -lVirt_VirtualSystemSnapshotService )
*/usr/bin/ld: cannot find -lVirt_VirtualSystemSnapshotService*

collect2: ld returned 1 exit status
libtool: install: error: relink `' with the
above command before installing it
make[2]: *** [install-providerLTLIBRARIES] Error 1
make[2]: Leaving directory
make[1]: *** [install-am] Error 2
make[1]: Leaving directory
make: *** [install-recursive] Error 1

Libvirt-cim mailing list

Best Regards

Wayne Xia