libvirt-cim compil errors

Hello, I have compile errors when installing libvirt-cim from sources on UBUNTU 13.10 (amd-64 platform) I am using openpegasus as cimom, and i installed libcmpiutil successfully Bellow are the errors i get after make command (i followed instructions on the website http://wiki.libvirt.org/page/Libvirt-cim_setup) ..... make[2]: Entering directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3/src' CC Virt_VirtualSystemManagementService.lo Virt_VirtualSystemManagementService.c: In function '_update_resources_for': Virt_VirtualSystemManagementService.c:2936:17: warning: implicit declaration of function 'cu_merge_instances' [-Wimplicit-function-declaration] s = cu_merge_instances(rasd, orig_inst); ^ Virt_VirtualSystemManagementService.c:2936:19: error: incompatible types when assigning to type 'CMPIStatus' from type 'int' s = cu_merge_instances(rasd, orig_inst); ^ make[2]: *** [Virt_VirtualSystemManagementService.lo] Error 1 make[2]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3' make: *** [all] Error 2 ... PS: the following commands do not working: $ hg clone http://libvirt.org/hg/libcmpiutil/ $ hg clone http://libvirt.org/hg/libvirt-cim/ the server says : abort: HTTP Error 404: Not Found Best Regards Amine Bouabid

On 01/27/2014 04:06 PM, Bouabid Mohamed Amine wrote:
Hello,
I have compile errors when installing libvirt-cim from sources on UBUNTU 13.10 (amd-64 platform)
I am using openpegasus as cimom, and i installed libcmpiutil successfully
Bellow are the errors i get after make command (i followed instructions on the websitehttp://wiki.libvirt.org/page/Libvirt-cim_setup)
..... make[2]: Entering directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3/src' CC Virt_VirtualSystemManagementService.lo Virt_VirtualSystemManagementService.c: In function '_update_resources_for': Virt_VirtualSystemManagementService.c:2936:17: warning: implicit declaration of function 'cu_merge_instances' [-Wimplicit-function-declaration] s = cu_merge_instances(rasd, orig_inst); ^ Virt_VirtualSystemManagementService.c:2936:19: error: incompatible types when assigning to type 'CMPIStatus' from type 'int' s = cu_merge_instances(rasd, orig_inst); ^ make[2]: *** [Virt_VirtualSystemManagementService.lo] Error 1 make[2]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3' make: *** [all] Error 2 ...
PS: the following commands do not working:
$ hg clonehttp://libvirt.org/hg/libcmpiutil/ $ hg clonehttp://libvirt.org/hg/libvirt-cim/
the server says : abort: HTTP Error 404: Not Found
libvirt-cim is hosted by git server, check out: git clone git://libvirt.org/libvirt-cim.git
Best Regards Amine Bouabid
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

Thanks for the response, but i get again the same errors: Virt_VirtualSystemManagementService.c: In function '_update_resources_for': Virt_VirtualSystemManagementService.c:3292:17: warning: implicit declaration of function 'cu_merge_instances' [-Wimplicit-function-declaration] s = cu_merge_instances(rasd, orig_inst); ^ Virt_VirtualSystemManagementService.c:3292:19: error: incompatible types when assigning to type 'CMPIStatus' from type 'int' s = cu_merge_instances(rasd, orig_inst); ^ make[2]: *** [Virt_VirtualSystemManagementService.lo] Error 1 make[2]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim' make: *** [all] Error 2 On 27/01/2014 09:19, Jincheng Miao wrote:
On 01/27/2014 04:06 PM, Bouabid Mohamed Amine wrote:
Hello,
I have compile errors when installing libvirt-cim from sources on UBUNTU 13.10 (amd-64 platform)
I am using openpegasus as cimom, and i installed libcmpiutil successfully
Bellow are the errors i get after make command (i followed instructions on the websitehttp://wiki.libvirt.org/page/Libvirt-cim_setup)
..... make[2]: Entering directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3/src' CC Virt_VirtualSystemManagementService.lo Virt_VirtualSystemManagementService.c: In function '_update_resources_for': Virt_VirtualSystemManagementService.c:2936:17: warning: implicit declaration of function 'cu_merge_instances' [-Wimplicit-function-declaration] s = cu_merge_instances(rasd, orig_inst); ^ Virt_VirtualSystemManagementService.c:2936:19: error: incompatible types when assigning to type 'CMPIStatus' from type 'int' s = cu_merge_instances(rasd, orig_inst); ^ make[2]: *** [Virt_VirtualSystemManagementService.lo] Error 1 make[2]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3' make: *** [all] Error 2 ...
PS: the following commands do not working:
$ hg clonehttp://libvirt.org/hg/libcmpiutil/ $ hg clonehttp://libvirt.org/hg/libvirt-cim/
the server says : abort: HTTP Error 404: Not Found
libvirt-cim is hosted by git server, check out: git clone git://libvirt.org/libvirt-cim.git
Best Regards Amine Bouabid
_______________________________________________ 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

On 01/27/2014 04:41 PM, Bouabid Amine wrote:
Thanks for the response, but i get again the same errors:
Virt_VirtualSystemManagementService.c: In function '_update_resources_for': Virt_VirtualSystemManagementService.c:3292:17: warning: implicit declaration of function 'cu_merge_instances' [-Wimplicit-function-declaration] s = cu_merge_instances(rasd, orig_inst); ^ Virt_VirtualSystemManagementService.c:3292:19: error: incompatible types when assigning to type 'CMPIStatus' from type 'int' s = cu_merge_instances(rasd, orig_inst); ^ make[2]: *** [Virt_VirtualSystemManagementService.lo] Error 1 make[2]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim' make: *** [all] Error 2
I am not sure about this, do you install your new built libcmpiutil? This cu_merge_instances() will return CMPIStatus, but the error seems it return int.
On 27/01/2014 09:19, Jincheng Miao wrote:
On 01/27/2014 04:06 PM, Bouabid Mohamed Amine wrote:
Hello,
I have compile errors when installing libvirt-cim from sources on UBUNTU 13.10 (amd-64 platform)
I am using openpegasus as cimom, and i installed libcmpiutil successfully
Bellow are the errors i get after make command (i followed instructions on the websitehttp://wiki.libvirt.org/page/Libvirt-cim_setup)
..... make[2]: Entering directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3/src' CC Virt_VirtualSystemManagementService.lo Virt_VirtualSystemManagementService.c: In function '_update_resources_for': Virt_VirtualSystemManagementService.c:2936:17: warning: implicit declaration of function 'cu_merge_instances' [-Wimplicit-function-declaration] s = cu_merge_instances(rasd, orig_inst); ^ Virt_VirtualSystemManagementService.c:2936:19: error: incompatible types when assigning to type 'CMPIStatus' from type 'int' s = cu_merge_instances(rasd, orig_inst); ^ make[2]: *** [Virt_VirtualSystemManagementService.lo] Error 1 make[2]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3' make: *** [all] Error 2 ...
PS: the following commands do not working:
$ hg clonehttp://libvirt.org/hg/libcmpiutil/ $ hg clonehttp://libvirt.org/hg/libvirt-cim/
the server says : abort: HTTP Error 404: Not Found
libvirt-cim is hosted by git server, check out: git clone git://libvirt.org/libvirt-cim.git
Best Regards Amine Bouabid
_______________________________________________ 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
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

Thank you again, I have an old version of libcmpiutil headers installed, The compile process is working fine, I have to create a symbolic link of the /usr/lib64/include/libcmpiutil to /usr/local/include/libncmpiutil default headers dirctory search Best regards Amine Bouabid On 27/01/2014 10:20, Jincheng Miao wrote:
On 01/27/2014 04:41 PM, Bouabid Amine wrote:
Thanks for the response, but i get again the same errors:
Virt_VirtualSystemManagementService.c: In function '_update_resources_for': Virt_VirtualSystemManagementService.c:3292:17: warning: implicit declaration of function 'cu_merge_instances' [-Wimplicit-function-declaration] s = cu_merge_instances(rasd, orig_inst); ^ Virt_VirtualSystemManagementService.c:3292:19: error: incompatible types when assigning to type 'CMPIStatus' from type 'int' s = cu_merge_instances(rasd, orig_inst); ^ make[2]: *** [Virt_VirtualSystemManagementService.lo] Error 1 make[2]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim' make: *** [all] Error 2
I am not sure about this, do you install your new built libcmpiutil? This cu_merge_instances() will return CMPIStatus, but the error seems it return int.
On 27/01/2014 09:19, Jincheng Miao wrote:
On 01/27/2014 04:06 PM, Bouabid Mohamed Amine wrote:
Hello,
I have compile errors when installing libvirt-cim from sources on UBUNTU 13.10 (amd-64 platform)
I am using openpegasus as cimom, and i installed libcmpiutil successfully
Bellow are the errors i get after make command (i followed instructions on the websitehttp://wiki.libvirt.org/page/Libvirt-cim_setup)
..... make[2]: Entering directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3/src' CC Virt_VirtualSystemManagementService.lo Virt_VirtualSystemManagementService.c: In function '_update_resources_for': Virt_VirtualSystemManagementService.c:2936:17: warning: implicit declaration of function 'cu_merge_instances' [-Wimplicit-function-declaration] s = cu_merge_instances(rasd, orig_inst); ^ Virt_VirtualSystemManagementService.c:2936:19: error: incompatible types when assigning to type 'CMPIStatus' from type 'int' s = cu_merge_instances(rasd, orig_inst); ^ make[2]: *** [Virt_VirtualSystemManagementService.lo] Error 1 make[2]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/libvirt-cim/libvirt-cim-0.6.3' make: *** [all] Error 2 ...
PS: the following commands do not working:
$ hg clonehttp://libvirt.org/hg/libcmpiutil/ $ hg clonehttp://libvirt.org/hg/libvirt-cim/
the server says : abort: HTTP Error 404: Not Found
libvirt-cim is hosted by git server, check out: git clone git://libvirt.org/libvirt-cim.git
Best Regards Amine Bouabid
_______________________________________________ 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
_______________________________________________ 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

Hello, I installed libvirt from UBUNTU repository (using apt-get command) version: 1.1.1-0ubuntu8 And i just installed libvirt-cim from sources, is there a risk of incompatibility between the two ? Best Regards

Once you have things working... patches are always welcome! Updating the web pages has been on a todo list of mine for a while, but it's never reached the top of the list. As for your install question - how did you 'install' your built version of libvirt-cim? Via the 'make install'? or from a built rpm? John

Ok, I installed libvirt from built APT (my machine is under ubuntu 13.10) Amine Bouabid On 27/01/2014 12:30, John Ferlan wrote:
Once you have things working... patches are always welcome!
Updating the web pages has been on a todo list of mine for a while, but it's never reached the top of the list.
As for your install question - how did you 'install' your built version of libvirt-cim? Via the 'make install'? or from a built rpm?
John
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

On 01/27/2014 07:31 AM, Bouabid Amine wrote:
Ok, I installed libvirt from built APT (my machine is under ubuntu 13.10) Amine Bouabid On 27/01/2014 12:30, John Ferlan wrote:
Once you have things working... patches are always welcome!
Updating the web pages has been on a todo list of mine for a while, but it's never reached the top of the list.
As for your install question - how did you 'install' your built version of libvirt-cim? Via the 'make install'? or from a built rpm?
I'm not familiar with apt, but I think you should be OK - that is the rpm (and I assume apt) process will replace the existing installation with the new one completely and restart the tog-pegasus server. I wasn't as confident the 'make install' processing would do all the right steps. In my Fedora environment I will use make rpm, then remove the existing via rpm -e libvirt-cim, and replace with the new via yum install <path to my local install area created by the rpmbuild>. I do this quite frequently when I'm making changes/adjustments to the code without bumping version numbers in the libvirt-cim.spec file. John

Hello, I succeeded to install libvirt-cim and i verified this using some wbemcli requests (i am using the latest GITHUB version) I am testing now libvirt-cim using cimtest and i get errors like this: -------------------------------------------------------------------------------------------------------------------------- #:/usr/local/src/libvirt/cimtest# ./runtests libvirt-cim -g ComputerSystem -t 03_defineVS.py Starting test suite: libvirt-cim Testing Xen hypervisor -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Unable to parse embedded object with return code 1 ERROR - Failed to define a domain with the name domU1 from virsh InvokeMethod(DefineSystem): CIM_ERR_FAILED: Unable to parse embedded object -------------------------------------------------------------------- Unable to determine hypervisior version -------------------------------------------------------------------------------------------------------------------------- Actually i am interested in using libvirt-cim to manage VMs life cycle (define, create, destroy etc.) Best regards Amine Bouabid

Hello, Please do not consider my last mail, th problem was in my libvirt-cim installation Now cimtest works fine fore me Best regards Amine Bouabid On Wed, Jan 29, 2014 at 4:15 PM, Bouabid Amine <bouabid.medamine@gmail.com>wrote:
Hello,
I succeeded to install libvirt-cim and i verified this using some wbemcli requests (i am using the latest GITHUB version)
I am testing now libvirt-cim using cimtest and i get errors like this:
------------------------------------------------------------ -------------------------------------------------------------- #:/usr/local/src/libvirt/cimtest# ./runtests libvirt-cim -g ComputerSystem -t 03_defineVS.py Starting test suite: libvirt-cim
Testing Xen hypervisor -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Unable to parse embedded object with return code 1 ERROR - Failed to define a domain with the name domU1 from virsh InvokeMethod(DefineSystem): CIM_ERR_FAILED: Unable to parse embedded object --------------------------------------------------------------------
Unable to determine hypervisior version ------------------------------------------------------------ --------------------------------------------------------------
Actually i am interested in using libvirt-cim to manage VMs life cycle (define, create, destroy etc.)
Best regards
Amine Bouabid
participants (4)
-
Bouabid Amine
-
Bouabid Mohamed Amine
-
Jincheng Miao
-
John Ferlan