Error doing make install for libvirt-cim

Hi, 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 "/home/dpkshetty/usr/lib/cmpi" /bin/bash ../libtool --mode=install /usr/bin/install -c libVirt_ComputerSystem.la libVirt_Device.la libVirt_RASD.la libVirt_HostSystem.la libVirt_VSSD.la libVirt_EnabledLogicalElementCapabilities.la libVirt_DevicePool.la libVirt_RegisteredProfile.la libVirt_VSMigrationCapabilities.la libVirt_VSMigrationSettingData.la libVirt_VirtualSystemSnapshotServiceCapabilities.la libVirt_SystemDevice.la libVirt_ComputerSystemIndication.la libVirt_ResourceAllocationSettingDataIndication.la libVirt_SwitchService.la libVirt_ComputerSystemMigrationIndication.la libVirt_VirtualSystemManagementCapabilities.la libVirt_AllocationCapabilities.la libVirt_ReferencedProfile.la libVirt_VirtualSystemSnapshotService.la libVirt_VirtualSystemManagementService.la libVirt_ResourcePoolConfigurationService.la libVirt_ResourcePoolConfigurationCapabilities.la libVirt_VSMigrationService.la libVirt_ConsoleRedirectionService.la libVirt_ConsoleRedirectionServiceCapabilities.la libVirt_KVMRedirectionSAP.la libVirt_SettingsDefineCapabilities.la libVirt_HostedDependency.la libVirt_ElementConformsToProfile.la libVirt_HostedResourcePool.la libVirt_ElementCapabilities.la libVirt_VSSDComponent.la libVirt_SettingsDefineState.la libVirt_ResourceAllocationFromPool.la libVirt_ElementAllocatedFromPool.la libVirt_HostedService.la libVirt_ElementSettingData.la libVirt_ConcreteComponent.la libVirt_ServiceAffectsElement.la libVirt_HostedAccessPoint.la libVirt_ServiceAccessBySAP.la libVirt_SAPAvailableForElement.la libVirt_FilterList.la libVirt_FilterEntry.la libVirt_EntriesInFilterList.la libVirt_NestedFilterList.la libVirt_HostedFilterList.la libVirt_AppliedFilterList.la '/home/dpkshetty/usr/lib/cmpi' *libtool: install: warning: relinking `libVirt_ComputerSystem.la'* 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/libxkutil.la -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 libVirt_ComputerSystem.la -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 `libVirt_ComputerSystem.la' with the above command before installing it make[2]: *** [install-providerLTLIBRARIES] Error 1 make[2]: Leaving directory `/home/dpkshetty/work/libvirt-cim/libvirt-cim/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/dpkshetty/work/libvirt-cim/libvirt-cim/src' make: *** [install-recursive] Error 1

pls have a try for following commands with CIMOM tog-pegasus installed: ./autoconfiscate.sh ./configure make rpm 于 2011-10-29 19:46, Deepak Shetty 写道:
Hi, 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 "/home/dpkshetty/usr/lib/cmpi" /bin/bash ../libtool --mode=install /usr/bin/install -c libVirt_ComputerSystem.la libVirt_Device.la libVirt_RASD.la libVirt_HostSystem.la libVirt_VSSD.la libVirt_EnabledLogicalElementCapabilities.la libVirt_DevicePool.la libVirt_RegisteredProfile.la libVirt_VSMigrationCapabilities.la libVirt_VSMigrationSettingData.la libVirt_VirtualSystemSnapshotServiceCapabilities.la libVirt_SystemDevice.la libVirt_ComputerSystemIndication.la libVirt_ResourceAllocationSettingDataIndication.la libVirt_SwitchService.la libVirt_ComputerSystemMigrationIndication.la libVirt_VirtualSystemManagementCapabilities.la libVirt_AllocationCapabilities.la libVirt_ReferencedProfile.la libVirt_VirtualSystemSnapshotService.la libVirt_VirtualSystemManagementService.la libVirt_ResourcePoolConfigurationService.la libVirt_ResourcePoolConfigurationCapabilities.la libVirt_VSMigrationService.la libVirt_ConsoleRedirectionService.la libVirt_ConsoleRedirectionServiceCapabilities.la libVirt_KVMRedirectionSAP.la libVirt_SettingsDefineCapabilities.la libVirt_HostedDependency.la libVirt_ElementConformsToProfile.la libVirt_HostedResourcePool.la libVirt_ElementCapabilities.la libVirt_VSSDComponent.la libVirt_SettingsDefineState.la libVirt_ResourceAllocationFromPool.la libVirt_ElementAllocatedFromPool.la libVirt_HostedService.la libVirt_ElementSettingData.la libVirt_ConcreteComponent.la libVirt_ServiceAffectsElement.la libVirt_HostedAccessPoint.la libVirt_ServiceAccessBySAP.la libVirt_SAPAvailableForElement.la libVirt_FilterList.la libVirt_FilterEntry.la libVirt_EntriesInFilterList.la libVirt_NestedFilterList.la libVirt_HostedFilterList.la libVirt_AppliedFilterList.la '/home/dpkshetty/usr/lib/cmpi' *libtool: install: warning: relinking `libVirt_ComputerSystem.la'* 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/libxkutil.la <http://libxkutil.la> -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 libVirt_ComputerSystem.la -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 `libVirt_ComputerSystem.la' with the above command before installing it make[2]: *** [install-providerLTLIBRARIES] Error 1 make[2]: Leaving directory `/home/dpkshetty/work/libvirt-cim/libvirt-cim/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/dpkshetty/work/libvirt-cim/libvirt-cim/src' make: *** [install-recursive] Error 1
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Best Regards Wayne Xia mail:xiawenc@linux.vnet.ibm.com tel:86-010-82450803

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 <xiawenc@linux.vnet.ibm.com>wrote:
pls have a try for following commands with CIMOM tog-pegasus installed: ./autoconfiscate.sh ./configure make rpm
于 2011-10-29 19:46, Deepak Shetty 写道:
Hi, 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 "/home/dpkshetty/usr/lib/cmpi" /bin/bash ../libtool --mode=install /usr/bin/install -c libVirt_ComputerSystem.la libVirt_Device.la libVirt_RASD.la libVirt_HostSystem.la libVirt_VSSD.la libVirt_**EnabledLogicalElementCapabilit**ies.la libVirt_DevicePool.la libVirt_RegisteredProfile.la libVirt_**VSMigrationCapabilities.la libVirt_**VSMigrationSettingData.la libVirt_**VirtualSystemSnapshotServiceCa**pabilities.la libVirt_SystemDevice.la libVirt_**ComputerSystemIndication.la libVirt_**ResourceAllocationSettingDataI**ndication.la libVirt_SwitchService.la libVirt_**ComputerSystemMigrationIndicat**ion.la libVirt_**VirtualSystemManagementCapabil**ities.la libVirt_**AllocationCapabilities.la libVirt_ReferencedProfile.la libVirt_**VirtualSystemSnapshotService.**la libVirt_**VirtualSystemManagementService**.la libVirt_**ResourcePoolConfigurationServi**ce.la libVirt_**ResourcePoolConfigurationCapab**ilities.la libVirt_VSMigrationService.la libVirt_**ConsoleRedirectionService.la libVirt_**ConsoleRedirectionServiceCapab**ilities.la libVirt_KVMRedirectionSAP.la libVirt_**SettingsDefineCapabilities.la libVirt_HostedDependency.la libVirt_**ElementConformsToProfile.la libVirt_HostedResourcePool.la libVirt_ElementCapabilities.la libVirt_VSSDComponent.la libVirt_SettingsDefineState.la libVirt_**ResourceAllocationFromPool.la libVirt_**ElementAllocatedFromPool.la libVirt_HostedService.la libVirt_ElementSettingData.la libVirt_ConcreteComponent.la libVirt_ServiceAffectsElement.**la libVirt_HostedAccessPoint.la libVirt_ServiceAccessBySAP.la libVirt_**SAPAvailableForElement.la libVirt_FilterList.la libVirt_FilterEntry.la libVirt_EntriesInFilterList.la libVirt_NestedFilterList.la libVirt_HostedFilterList.la libVirt_AppliedFilterList.la '/home/dpkshetty/usr/lib/cmpi' *libtool: install: warning: relinking `libVirt_ComputerSystem.la'*
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/libxkutil.la <http://libxkutil.la>
-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 libVirt_ComputerSystem.la -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 `libVirt_ComputerSystem.la' with the above command before installing it make[2]: *** [install-providerLTLIBRARIES] Error 1 make[2]: Leaving directory `/home/dpkshetty/work/libvirt-**cim/libvirt-cim/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/dpkshetty/work/libvirt-**cim/libvirt-cim/src' make: *** [install-recursive] Error 1
______________________________**_________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/**mailman/listinfo/libvirt-cim<https://www.redhat.com/mailman/listinfo/libvirt-cim>
-- Best Regards
Wayne Xia mail:xiawenc@linux.vnet.ibm.**com <mail%3Axiawenc@linux.vnet.ibm.com> tel:86-010-82450803

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/libVirt_VirtualSystemSnapshotService.so.0.5.14 /home/dpkshetty/usr/lib/cmpi/libVirt_VirtualSystemSnapshotService.so.0.5.14 2) cd /home/dpkshetty/usr/lib/cmpi/ 3) ln -s -f libVirt_VirtualSystemSnapshotService.so.0.5.14 libVirt_VirtualSystemSnapshotService.so.0 4) ln -s -f libVirt_VirtualSystemSnapshotService.so.0.5.14 libVirt_VirtualSystemSnapshotService.so 5) cd /home/dpkshetty/work/libvirt-cim/libvirt-cim/src/ 6) /usr/bin/install -c .libs/libVirt_VirtualSystemSnapshotService.lai /home/dpkshetty/usr/lib/cmpi/libVirt_VirtualSystemSnapshotService.la 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 <dpkshetty@gmail.com> 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 <xiawenc@linux.vnet.ibm.com>wrote:
pls have a try for following commands with CIMOM tog-pegasus installed: ./autoconfiscate.sh ./configure make rpm
于 2011-10-29 19:46, Deepak Shetty 写道:
Hi, 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 "/home/dpkshetty/usr/lib/cmpi" /bin/bash ../libtool --mode=install /usr/bin/install -c libVirt_ComputerSystem.la libVirt_Device.la libVirt_RASD.la libVirt_HostSystem.la libVirt_VSSD.la libVirt_**EnabledLogicalElementCapabilit**ies.la libVirt_DevicePool.la libVirt_RegisteredProfile.la libVirt_**VSMigrationCapabilities.la libVirt_**VSMigrationSettingData.la libVirt_**VirtualSystemSnapshotServiceCa**pabilities.la libVirt_SystemDevice.la libVirt_**ComputerSystemIndication.la libVirt_**ResourceAllocationSettingDataI**ndication.la libVirt_SwitchService.la libVirt_**ComputerSystemMigrationIndicat** ion.la libVirt_**VirtualSystemManagementCapabil**ities.la libVirt_**AllocationCapabilities.la libVirt_ReferencedProfile.la libVirt_**VirtualSystemSnapshotService.**la libVirt_**VirtualSystemManagementService**.la libVirt_**ResourcePoolConfigurationServi**ce.la libVirt_**ResourcePoolConfigurationCapab**ilities.la libVirt_VSMigrationService.la libVirt_**ConsoleRedirectionService.la libVirt_**ConsoleRedirectionServiceCapab**ilities.la libVirt_KVMRedirectionSAP.la libVirt_**SettingsDefineCapabilities.la libVirt_HostedDependency.la libVirt_**ElementConformsToProfile.la libVirt_HostedResourcePool.la libVirt_ElementCapabilities.la libVirt_VSSDComponent.la libVirt_SettingsDefineState.la libVirt_**ResourceAllocationFromPool.la libVirt_**ElementAllocatedFromPool.la libVirt_HostedService.la libVirt_ElementSettingData.la libVirt_ConcreteComponent.la libVirt_ServiceAffectsElement.**la libVirt_HostedAccessPoint.la libVirt_ServiceAccessBySAP.la libVirt_**SAPAvailableForElement.la libVirt_FilterList.la libVirt_FilterEntry.la libVirt_EntriesInFilterList.la libVirt_NestedFilterList.la libVirt_HostedFilterList.la libVirt_AppliedFilterList.la '/home/dpkshetty/usr/lib/cmpi' *libtool: install: warning: relinking `libVirt_ComputerSystem.la'*
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/libxkutil.la <http://libxkutil.la>
-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 libVirt_ComputerSystem.la -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 `libVirt_ComputerSystem.la' with the above command before installing it make[2]: *** [install-providerLTLIBRARIES] Error 1 make[2]: Leaving directory `/home/dpkshetty/work/libvirt-**cim/libvirt-cim/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/dpkshetty/work/libvirt-**cim/libvirt-cim/src' make: *** [install-recursive] Error 1
______________________________**_________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/**mailman/listinfo/libvirt-cim<https://www.redhat.com/mailman/listinfo/libvirt-cim>
-- Best Regards
Wayne Xia mail:xiawenc@linux.vnet.ibm.**com <mail%3Axiawenc@linux.vnet.ibm.com> tel:86-010-82450803

Deepak, I have not tried Ubuntu. But have used RH and SuSE, and never had to do any of the manual steps you mentioned here. I recommend, on a fresh system installing libcmpiutil and then get libvirt-cim and run - 1. autoconfiscate.sh 2. configure 3. make Let me know if that does not work for you. Regards, Sharad Mishra Open Virtualization Linux Technology Center IBM libvirt-cim-bounces@redhat.com wrote on 10/31/2011 01:21:26 AM:
Deepak Shetty <dpkshetty@gmail.com> Sent by: libvirt-cim-bounces@redhat.com
10/31/2011 01:21 AM
Please respond to List for discussion and development of libvirt CIM <libvirt-cim@redhat.com>
To
Wayne Xia <xiawenc@linux.vnet.ibm.com>
cc
List for discussion and development of libvirt CIM <libvirt-cim@redhat.com>
Subject
Re: [Libvirt-cim] Error doing make install for libvirt-cim
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/ libVirt_VirtualSystemSnapshotService.so.0.5.14 /home/dpkshetty/usr/ lib/cmpi/libVirt_VirtualSystemSnapshotService.so.0.5.14 2) cd /home/dpkshetty/usr/lib/cmpi/ 3) ln -s -f libVirt_VirtualSystemSnapshotService.so.0.5.14 libVirt_VirtualSystemSnapshotService.so.0 4) ln -s -f libVirt_VirtualSystemSnapshotService.so.0.5.14 libVirt_VirtualSystemSnapshotService.so 5) cd /home/dpkshetty/work/libvirt-cim/libvirt-cim/src/ 6) /usr/bin/install -c .libs/ libVirt_VirtualSystemSnapshotService.lai /home/dpkshetty/usr/lib/ cmpi/libVirt_VirtualSystemSnapshotService.la 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 <dpkshetty@gmail.com> 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 <xiawenc@linux.vnet.ibm.com> wrote: pls have a try for following commands with CIMOM tog-pegasus installed: ./autoconfiscate.sh ./configure make rpm
于 2011-10-29 19:46, Deepak Shetty 写道: Hi, 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 "/home/dpkshetty/usr/lib/cmpi" /bin/bash ../libtool --mode=install /usr/bin/install -c libVirt_ComputerSystem.la libVirt_Device.la libVirt_RASD.la libVirt_HostSystem.la libVirt_VSSD.la libVirt_EnabledLogicalElementCapabilities.la libVirt_DevicePool.la libVirt_RegisteredProfile.la libVirt_VSMigrationCapabilities.la libVirt_VSMigrationSettingData.la libVirt_VirtualSystemSnapshotServiceCapabilities.la libVirt_SystemDevice.la libVirt_ComputerSystemIndication.la libVirt_ResourceAllocationSettingDataIndication.la libVirt_SwitchService.la libVirt_ComputerSystemMigrationIndication.la libVirt_VirtualSystemManagementCapabilities.la libVirt_AllocationCapabilities.la libVirt_ReferencedProfile.la libVirt_VirtualSystemSnapshotService.la libVirt_VirtualSystemManagementService.la libVirt_ResourcePoolConfigurationService.la libVirt_ResourcePoolConfigurationCapabilities.la libVirt_VSMigrationService.la libVirt_ConsoleRedirectionService.la libVirt_ConsoleRedirectionServiceCapabilities.la libVirt_KVMRedirectionSAP.la libVirt_SettingsDefineCapabilities.la libVirt_HostedDependency.la libVirt_ElementConformsToProfile.la libVirt_HostedResourcePool.la libVirt_ElementCapabilities.la libVirt_VSSDComponent.la libVirt_SettingsDefineState.la libVirt_ResourceAllocationFromPool.la libVirt_ElementAllocatedFromPool.la libVirt_HostedService.la libVirt_ElementSettingData.la libVirt_ConcreteComponent.la libVirt_ServiceAffectsElement.la libVirt_HostedAccessPoint.la libVirt_ServiceAccessBySAP.la libVirt_SAPAvailableForElement.la libVirt_FilterList.la libVirt_FilterEntry.la libVirt_EntriesInFilterList.la libVirt_NestedFilterList.la libVirt_HostedFilterList.la libVirt_AppliedFilterList.la '/home/dpkshetty/usr/lib/cmpi' *libtool: install: warning: relinking `libVirt_ComputerSystem.la'*
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/libxkutil.la <http://libxkutil.la>
-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 libVirt_ComputerSystem.la -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 `libVirt_ComputerSystem.la' with the above command before installing it make[2]: *** [install-providerLTLIBRARIES] Error 1 make[2]: Leaving directory `/home/dpkshetty/work/libvirt-cim/libvirt-cim/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/dpkshetty/work/libvirt-cim/libvirt-cim/src' make: *** [install-recursive] Error 1
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Best Regards
Wayne Xia mail:xiawenc@linux.vnet.ibm.com tel:86-010-82450803
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

Thanks Sharad... I was doing it on a fresh system itself :) I think the make install does not install the libVirt_VirtualSystemSnapshotService library, which is needed before the rest of the install works. Assumign make install is same on all platforms.. i wonder how it wud fail only for Ubuntu. On Tue, Nov 1, 2011 at 11:04 PM, Sharad Mishra <snmishra@us.ibm.com> wrote:
Deepak,
I have not tried Ubuntu. But have used RH and SuSE, and never had to do any of the manual steps you mentioned here. I recommend, on a fresh system installing libcmpiutil and then get libvirt-cim and run - 1. autoconfiscate.sh 2. configure 3. make
Let me know if that does not work for you.
Regards, Sharad Mishra Open Virtualization Linux Technology Center IBM
libvirt-cim-bounces@redhat.com wrote on 10/31/2011 01:21:26 AM:
Deepak Shetty <dpkshetty@gmail.com> Sent by: libvirt-cim-bounces@redhat.com
10/31/2011 01:21 AM
Please respond to List for discussion and development of libvirt CIM <libvirt-cim@redhat.com>
To
Wayne Xia <xiawenc@linux.vnet.ibm.com>
cc
List for discussion and development of libvirt CIM <libvirt-cim@redhat.com>
Subject
Re: [Libvirt-cim] Error doing make install for libvirt-cim
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/ libVirt_VirtualSystemSnapshotService.so.0.5.14 /home/dpkshetty/usr/ lib/cmpi/libVirt_VirtualSystemSnapshotService.so.0.5.14 2) cd /home/dpkshetty/usr/lib/cmpi/ 3) ln -s -f libVirt_VirtualSystemSnapshotService.so.0.5.14 libVirt_VirtualSystemSnapshotService.so.0 4) ln -s -f libVirt_VirtualSystemSnapshotService.so.0.5.14 libVirt_VirtualSystemSnapshotService.so 5) cd /home/dpkshetty/work/libvirt-cim/libvirt-cim/src/ 6) /usr/bin/install -c .libs/ libVirt_VirtualSystemSnapshotService.lai /home/dpkshetty/usr/lib/ cmpi/libVirt_VirtualSystemSnapshotService.la 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 <dpkshetty@gmail.com> 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 <xiawenc@linux.vnet.ibm.com> wrote: pls have a try for following commands with CIMOM tog-pegasus installed: ./autoconfiscate.sh ./configure make rpm
于 2011-10-29 19:46, Deepak Shetty 写道: Hi, 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 "/home/dpkshetty/usr/lib/cmpi" /bin/bash ../libtool --mode=install /usr/bin/install -c libVirt_ComputerSystem.la libVirt_Device.la libVirt_RASD.la libVirt_HostSystem.la libVirt_VSSD.la libVirt_EnabledLogicalElementCapabilities.la libVirt_DevicePool.la libVirt_RegisteredProfile.la libVirt_VSMigrationCapabilities.la libVirt_VSMigrationSettingData.la libVirt_VirtualSystemSnapshotServiceCapabilities.la libVirt_SystemDevice.la libVirt_ComputerSystemIndication.la libVirt_ResourceAllocationSettingDataIndication.la libVirt_SwitchService.la libVirt_ComputerSystemMigrationIndication.la libVirt_VirtualSystemManagementCapabilities.la libVirt_AllocationCapabilities.la libVirt_ReferencedProfile.la libVirt_VirtualSystemSnapshotService.la libVirt_VirtualSystemManagementService.la libVirt_ResourcePoolConfigurationService.la libVirt_ResourcePoolConfigurationCapabilities.la libVirt_VSMigrationService.la libVirt_ConsoleRedirectionService.la libVirt_ConsoleRedirectionServiceCapabilities.la libVirt_KVMRedirectionSAP.la libVirt_SettingsDefineCapabilities.la libVirt_HostedDependency.la libVirt_ElementConformsToProfile.la libVirt_HostedResourcePool.la libVirt_ElementCapabilities.la libVirt_VSSDComponent.la libVirt_SettingsDefineState.la libVirt_ResourceAllocationFromPool.la libVirt_ElementAllocatedFromPool.la libVirt_HostedService.la libVirt_ElementSettingData.la libVirt_ConcreteComponent.la libVirt_ServiceAffectsElement.la libVirt_HostedAccessPoint.la libVirt_ServiceAccessBySAP.la libVirt_SAPAvailableForElement.la libVirt_FilterList.la libVirt_FilterEntry.la libVirt_EntriesInFilterList.la libVirt_NestedFilterList.la libVirt_HostedFilterList.la libVirt_AppliedFilterList.la '/home/dpkshetty/usr/lib/cmpi' *libtool: install: warning: relinking `libVirt_ComputerSystem.la'*
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/libxkutil.la <http://libxkutil.la>
-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 libVirt_ComputerSystem.la -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 `libVirt_ComputerSystem.la' with the above command before installing it make[2]: *** [install-providerLTLIBRARIES] Error 1 make[2]: Leaving directory `/home/dpkshetty/work/libvirt-cim/libvirt-cim/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/dpkshetty/work/libvirt-cim/libvirt-cim/src' make: *** [install-recursive] Error 1
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Best Regards
Wayne Xia mail:xiawenc@linux.vnet.ibm.com tel:86-010-82450803
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

Sorry for response late, been busy in coding a patch these days. It is nice to know you have installed the libvirt-cim on Ubuntu successfully. Also a "make postinstall" is needed to register the classes. Have u tried to make a call for this provider such as wbemcli -nl ein http://root:123456xwc@localhost:5988/root/virt:KVM_ComputerSystem if it returns the instance of VMs you created by libvirt or virt-manager, then the package works in the right way. Look at the rpm making script I think it only works with tog-pegasus, but I have not tried to "make install" it with sfcb instead of tog-pegasus. 于 2011-10-31 16:21, Deepak Shetty 写道:
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/libVirt_VirtualSystemSnapshotService.so.0.5.14 /home/dpkshetty/usr/lib/cmpi/libVirt_VirtualSystemSnapshotService.so.0.5.14 2) cd /home/dpkshetty/usr/lib/cmpi/ 3) ln -s -f libVirt_VirtualSystemSnapshotService.so.0.5.14 libVirt_VirtualSystemSnapshotService.so.0 4) ln -s -f libVirt_VirtualSystemSnapshotService.so.0.5.14 libVirt_VirtualSystemSnapshotService.so 5) cd /home/dpkshetty/work/libvirt-cim/libvirt-cim/src/ 6) /usr/bin/install -c .libs/libVirt_VirtualSystemSnapshotService.lai /home/dpkshetty/usr/lib/cmpi/libVirt_VirtualSystemSnapshotService.la 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 <dpkshetty@gmail.com <mailto:dpkshetty@gmail.com>> 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 <xiawenc@linux.vnet.ibm.com <mailto:xiawenc@linux.vnet.ibm.com>> wrote:
pls have a try for following commands with CIMOM tog-pegasus installed: ./autoconfiscate.sh ./configure make rpm
于 2011-10-29 19:46, Deepak Shetty 写道:
Hi, 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 "/home/dpkshetty/usr/lib/cmpi" /bin/bash ../libtool --mode=install /usr/bin/install -c libVirt_ComputerSystem.la libVirt_Device.la libVirt_RASD.la libVirt_HostSystem.la libVirt_VSSD.la libVirt_ EnabledLogicalElementCapabilit ies.la <http://ies.la> libVirt_DevicePool.la libVirt_RegisteredProfile.la libVirt_ VSMigrationCapabilities.la libVirt_ VSMigrationSettingData.la libVirt_ VirtualSystemSnapshotServiceCa pabilities.la <http://pabilities.la> libVirt_SystemDevice.la libVirt_ ComputerSystemIndication.la libVirt_ ResourceAllocationSettingDataI ndication.la <http://ndication.la> libVirt_SwitchService.la libVirt_ ComputerSystemMigrationIndicat ion.la <http://ion.la> libVirt_ VirtualSystemManagementCapabil ities.la <http://ities.la> libVirt_ AllocationCapabilities.la libVirt_ReferencedProfile.la libVirt_ VirtualSystemSnapshotService. la libVirt_ VirtualSystemManagementService .la libVirt_ ResourcePoolConfigurationServi ce.la <http://ce.la> libVirt_ ResourcePoolConfigurationCapab ilities.la <http://ilities.la> libVirt_VSMigrationService.la libVirt_ ConsoleRedirectionService.la libVirt_ ConsoleRedirectionServiceCapab ilities.la <http://ilities.la> libVirt_KVMRedirectionSAP.la libVirt_ SettingsDefineCapabilities.la libVirt_HostedDependency.la libVirt_ ElementConformsToProfile.la libVirt_HostedResourcePool.la libVirt_ElementCapabilities.la libVirt_VSSDComponent.la libVirt_SettingsDefineState.la libVirt_ ResourceAllocationFromPool.la libVirt_ ElementAllocatedFromPool.la libVirt_HostedService.la libVirt_ElementSettingData.la libVirt_ConcreteComponent.la libVirt_ServiceAffectsElement. la libVirt_HostedAccessPoint.la libVirt_ServiceAccessBySAP.la libVirt_ SAPAvailableForElement.la libVirt_FilterList.la libVirt_FilterEntry.la libVirt_EntriesInFilterList.la libVirt_NestedFilterList.la libVirt_HostedFilterList.la libVirt_AppliedFilterList.la '/home/dpkshetty/usr/lib/cmpi' *libtool: install: warning: relinking `libVirt_ComputerSystem.la'*
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/libxkutil.la <http://libxkutil.la> <http://libxkutil.la>
-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 libVirt_ComputerSystem.la -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 `libVirt_ComputerSystem.la' with the above command before installing it make[2]: *** [install-providerLTLIBRARIES] Error 1 make[2]: Leaving directory `/home/dpkshetty/work/libvirt- cim/libvirt-cim/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/dpkshetty/work/libvirt- cim/libvirt-cim/src' make: *** [install-recursive] Error 1
______________________________ _________________ Libvirt-cim mailing list Libvirt-cim@redhat.com <mailto:Libvirt-cim@redhat.com> https://www.redhat.com/ mailman/listinfo/libvirt-cim <https://www.redhat.com/mailman/listinfo/libvirt-cim>
-- Best Regards
Wayne Xia mail:xiawenc@linux.vnet.ibm. com <mailto:mail%3Axiawenc@linux.vnet.ibm.com> tel:86-010-82450803
-- Best Regards Wayne Xia mail:xiawenc@linux.vnet.ibm.com tel:86-010-82450803

Yes, the wbemcli works fine after make postinstall, i tried ecn (enumerate class names) and it did show the libvirt classes, so I assume its working fine. Also another thing i noticed is that as part of building libvirt-cim, i think it auto wget's and installs sfcb, so i did not ever had the need to look out for pegasus. But i still feel there is a problem with the make install as I saw originally ( see the start of this post)... wondering why you or others don't see it ? I did not do anythign specific to ubuntu in my build process 2011/11/4 Wayne Xia <xiawenc@linux.vnet.ibm.com>
Sorry for response late, been busy in coding a patch these days.
It is nice to know you have installed the libvirt-cim on Ubuntu successfully. Also a "make postinstall" is needed to register the classes. Have u tried to make a call for this provider such as
wbemcli -nl ein http://root:123456xwc@localhost:5988/root/virt:KVM_ComputerSystem
if it returns the instance of VMs you created by libvirt or virt-manager, then the package works in the right way. Look at the rpm making script I think it only works with tog-pegasus, but I have not tried to "make install" it with sfcb instead of tog-pegasus.
于 2011-10-31 16:21, Deepak Shetty 写道:
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/libVirt_VirtualSystemSnapshotService.so.0.5.14
2) cd /home/dpkshetty/usr/lib/cmpi/ 3) ln -s -f libVirt_VirtualSystemSnapshotService.so.0.5.14 libVirt_VirtualSystemSnapshotService.so.0 4) ln -s -f libVirt_VirtualSystemSnapshotService.so.0.5.14 libVirt_VirtualSystemSnapshotService.so 5) cd /home/dpkshetty/work/libvirt-cim/libvirt-cim/src/ 6) /usr/bin/install -c .libs/libVirt_VirtualSystemSnapshotService.lai /home/dpkshetty/usr/lib/cmpi/libVirt_VirtualSystemSnapshotService.la 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 <dpkshetty@gmail.com <mailto:dpkshetty@gmail.com>> 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 <xiawenc@linux.vnet.ibm.com <mailto:xiawenc@linux.vnet.ibm.com>> wrote:
pls have a try for following commands with CIMOM tog-pegasus installed: ./autoconfiscate.sh ./configure make rpm
于 2011-10-29 19:46, Deepak Shetty 写道:
Hi, 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 "/home/dpkshetty/usr/lib/cmpi" /bin/bash ../libtool --mode=install /usr/bin/install -c libVirt_ComputerSystem.la libVirt_Device.la libVirt_RASD.la libVirt_HostSystem.la libVirt_VSSD.la libVirt_ EnabledLogicalElementCapabilit ies.la <http://ies.la> libVirt_DevicePool.la libVirt_RegisteredProfile.la libVirt_ VSMigrationCapabilities.la libVirt_ VSMigrationSettingData.la libVirt_ VirtualSystemSnapshotServiceCa pabilities.la <http://pabilities.la> libVirt_SystemDevice.la libVirt_ ComputerSystemIndication.la libVirt_ ResourceAllocationSettingDataI ndication.la <http://ndication.la> libVirt_SwitchService.la libVirt_ ComputerSystemMigrationIndicat ion.la <http://ion.la> libVirt_ VirtualSystemManagementCapabil ities.la <http://ities.la> libVirt_ AllocationCapabilities.la
/home/dpkshetty/usr/lib/cmpi/libVirt_VirtualSystemSnapshotService.so.0.5.14 libVirt_ReferencedProfile.la
libVirt_ VirtualSystemSnapshotService. la libVirt_ VirtualSystemManagementService .la libVirt_ ResourcePoolConfigurationServi ce.la <http://ce.la> libVirt_ ResourcePoolConfigurationCapab ilities.la <http://ilities.la> libVirt_VSMigrationService.la libVirt_ ConsoleRedirectionService.la libVirt_ ConsoleRedirectionServiceCapab ilities.la <http://ilities.la> libVirt_KVMRedirectionSAP.la libVirt_ SettingsDefineCapabilities.la libVirt_HostedDependency.la libVirt_
ElementConformsToProfile.la
libVirt_HostedResourcePool.la libVirt_ElementCapabilities.la libVirt_VSSDComponent.la libVirt_SettingsDefineState.la libVirt_ ResourceAllocationFromPool.la libVirt_ ElementAllocatedFromPool.la libVirt_HostedService.la libVirt_ElementSettingData.la libVirt_ConcreteComponent.la libVirt_ServiceAffectsElement. la
libVirt_HostedAccessPoint.la
libVirt_ServiceAccessBySAP.la libVirt_
SAPAvailableForElement.la
libVirt_FilterList.la libVirt_FilterEntry.la libVirt_EntriesInFilterList.la libVirt_NestedFilterList.la libVirt_HostedFilterList.la libVirt_AppliedFilterList.la '/home/dpkshetty/usr/lib/cmpi' *libtool: install: warning: relinking `libVirt_ComputerSystem.la'*
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/libxkutil.la <http://libxkutil.la> <http://libxkutil.la>
-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 libVirt_ComputerSystem.la -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 `libVirt_ComputerSystem.la' with the above command before installing it make[2]: *** [install-providerLTLIBRARIES] Error 1 make[2]: Leaving directory `/home/dpkshetty/work/libvirt- cim/libvirt-cim/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/dpkshetty/work/libvirt- cim/libvirt-cim/src' make: *** [install-recursive] Error 1
______________________________ _________________ Libvirt-cim mailing list Libvirt-cim@redhat.com <mailto:Libvirt-cim@redhat.com> https://www.redhat.com/ mailman/listinfo/libvirt-cim <https://www.redhat.com/mailman/listinfo/libvirt-cim>
-- Best Regards
Wayne Xia mail:xiawenc@linux.vnet.ibm. com <mailto:mail%3Axiawenc@linux.vnet.ibm.com> tel:86-010-82450803
-- Best Regards
Wayne Xia mail:xiawenc@linux.vnet.ibm.com tel:86-010-82450803

On 11/04/2011 07:22 AM, Deepak Shetty wrote:
Yes, the wbemcli works fine after make postinstall, i tried ecn (enumerate class names) and it did show the libvirt classes, so I assume its working fine. Also another thing i noticed is that as part of building libvirt-cim, i think it auto wget's and installs sfcb, so i did not ever had the need to look out for pegasus. But i still feel there is a problem with the make install as I saw originally ( see the start of this post)... wondering why you or others don't see it ? I did not do anythign specific to ubuntu in my build process
Well, it looks like the RPM build actually works by chance. We should always ensure that 'make distcheck' gives no errors, which is not the case at the moment (and has not been for quite some time). I am quite sure if that gets fixed you will be able to build the source code without errors. -- Eduardo de Barros Lima Software Engineer, Open Virtualization Linux Technology Center - IBM/Brazil eblima@br.ibm.com

Again, I don't know how its related, since i am on ubuntu, i never have a need to do make rpm. was i supposed to do a make deb or something ? It looks like as part of 'make' one of the library (see my original post - error msg) is probably not copied and/or linked appropraitely, hence make install fails or probably make install has issue in setting up that library correctly and when it tries to relink some other lib with that lib, it fails. 2011/11/4 Eduardo Lima (Etrunko) <eblima@linux.vnet.ibm.com>
On 11/04/2011 07:22 AM, Deepak Shetty wrote:
Yes, the wbemcli works fine after make postinstall, i tried ecn (enumerate class names) and it did show the libvirt classes, so I assume its working fine. Also another thing i noticed is that as part of building libvirt-cim, i think it auto wget's and installs sfcb, so i did not ever had the need to look out for pegasus. But i still feel there is a problem with the make install as I saw originally ( see the start of this post)... wondering why you or others don't see it ? I did not do anythign specific to ubuntu in my build process
Well, it looks like the RPM build actually works by chance. We should always ensure that 'make distcheck' gives no errors, which is not the case at the moment (and has not been for quite some time). I am quite sure if that gets fixed you will be able to build the source code without errors.
-- Eduardo de Barros Lima Software Engineer, Open Virtualization Linux Technology Center - IBM/Brazil eblima@br.ibm.com

Deepak, We actively test with Pegasus, but sfcb should work too. Sharad Mishra Open Virtualization Linux Technology Center IBM libvirt-cim-bounces@redhat.com wrote on 10/30/2011 10:15:45 PM:
Deepak Shetty <dpkshetty@gmail.com> Sent by: libvirt-cim-bounces@redhat.com
10/30/2011 10:15 PM
Please respond to List for discussion and development of libvirt CIM <libvirt-cim@redhat.com>
To
Wayne Xia <xiawenc@linux.vnet.ibm.com>
cc
List for discussion and development of libvirt CIM <libvirt-cim@redhat.com>
Subject
Re: [Libvirt-cim] Error doing make install for libvirt-cim
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 <xiawenc@linux.vnet.ibm.com> wrote: pls have a try for following commands with CIMOM tog-pegasus installed: ./autoconfiscate.sh ./configure make rpm
于 2011-10-29 19:46, Deepak Shetty 写道: Hi, 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 "/home/dpkshetty/usr/lib/cmpi" /bin/bash ../libtool --mode=install /usr/bin/install -c libVirt_ComputerSystem.la libVirt_Device.la libVirt_RASD.la libVirt_HostSystem.la libVirt_VSSD.la libVirt_EnabledLogicalElementCapabilities.la libVirt_DevicePool.la libVirt_RegisteredProfile.la libVirt_VSMigrationCapabilities.la libVirt_VSMigrationSettingData.la libVirt_VirtualSystemSnapshotServiceCapabilities.la libVirt_SystemDevice.la libVirt_ComputerSystemIndication.la libVirt_ResourceAllocationSettingDataIndication.la libVirt_SwitchService.la libVirt_ComputerSystemMigrationIndication.la libVirt_VirtualSystemManagementCapabilities.la libVirt_AllocationCapabilities.la libVirt_ReferencedProfile.la libVirt_VirtualSystemSnapshotService.la libVirt_VirtualSystemManagementService.la libVirt_ResourcePoolConfigurationService.la libVirt_ResourcePoolConfigurationCapabilities.la libVirt_VSMigrationService.la libVirt_ConsoleRedirectionService.la libVirt_ConsoleRedirectionServiceCapabilities.la libVirt_KVMRedirectionSAP.la libVirt_SettingsDefineCapabilities.la libVirt_HostedDependency.la libVirt_ElementConformsToProfile.la libVirt_HostedResourcePool.la libVirt_ElementCapabilities.la libVirt_VSSDComponent.la libVirt_SettingsDefineState.la libVirt_ResourceAllocationFromPool.la libVirt_ElementAllocatedFromPool.la libVirt_HostedService.la libVirt_ElementSettingData.la libVirt_ConcreteComponent.la libVirt_ServiceAffectsElement.la libVirt_HostedAccessPoint.la libVirt_ServiceAccessBySAP.la libVirt_SAPAvailableForElement.la libVirt_FilterList.la libVirt_FilterEntry.la libVirt_EntriesInFilterList.la libVirt_NestedFilterList.la libVirt_HostedFilterList.la libVirt_AppliedFilterList.la '/home/dpkshetty/usr/lib/cmpi' *libtool: install: warning: relinking `libVirt_ComputerSystem.la'*
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/libxkutil.la <http://libxkutil.la>
-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 libVirt_ComputerSystem.la -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 `libVirt_ComputerSystem.la' with the above command before installing it make[2]: *** [install-providerLTLIBRARIES] Error 1 make[2]: Leaving directory `/home/dpkshetty/work/libvirt-cim/libvirt-cim/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/dpkshetty/work/libvirt-cim/libvirt-cim/src' make: *** [install-recursive] Error 1
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Best Regards
Wayne Xia mail:xiawenc@linux.vnet.ibm.com tel:86-010-82450803
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
participants (4)
-
Deepak Shetty
-
Eduardo Lima (Etrunko)
-
Sharad Mishra
-
Wayne Xia