
dear everyone, I am a student from china, i am studying the SVPC and libvirt-cim, I have successed in installing the Xen, libvirt API and openwbem on Ubuntu, but when I tried to compile the libvirt-cim, I got some problems. First, when I carried out the ./configure, it tells CANNOT FIND THE CMPI HEADERS, I tried to add the header files to the corresponding lib folder, and it's OK. Next, when i carry out "make" instruction, i met another problem, i lis ted here... gcc -DHAVE_CONFIG_H -I. -I.. -DCMPI_VERSION=100 -I/usr/include/openwbem -I/usr/include/libxml2 -I/usr/local/include/libcmpiutil -g -O2 -D_FORTIFY_SOURCE=2 -D_GNU_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=\"\" -DLIBVIRT_CIM_RV=\"\" -I../libxkutil -Werror -c Virt_ComputerSystem.c -fPIC -DPIC -o .libs/Virt_ComputerSystem.o Virt_ComputerSystem.c:903: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CMPIInstanceMI’ Virt_ComputerSystem.c:922: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CMPIMethodMI’ make[3]: *** [Virt_ComputerSystem.lo] Error 1 make[3]: Leaving directory `/opt/libvirt-cim-bbcd58a5a44a/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/libvirt-cim-bbcd58a5a44a/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/libvirt-cim-bbcd58a5a44a' make: *** [all] Error 2 i am eager to solve the problem, thank all of you for your kind advices! best wishes! hope good health! sinceresly sean_ggz from Shanghai China

SG> Virt_ComputerSystem.c:903: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CMPIInstanceMI’ SG> Virt_ComputerSystem.c:922: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CMPIMethodMI’ Both of these errors are pointing to the MI macros, which makes it hard to determine what the problem is without closer inspection. Do you need to use openwbem? Someone fixed up some openwbem issues for us at one point, so it used to work, but a lot has changed since then. Can you try Pegasus or SFCB? Those are the two we test on regularly. Thanks! -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com

Dear sir Thank you for your reply, and I will try it using SFCB. Appreciate your help, thanks again! Sean_ggz ----- 原始邮件 ----- 发件人: Dan Smith <danms@us.ibm.com> 日期: 2008年 7月 15日, 星期二, 下午9:37 主题: Re: [Libvirt-cim] help for libvirt-cim 收件人: List for discussion and development of libvirt CIM <libvirt-cim@redhat.com>
SG> Virt_ComputerSystem.c:903: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CMPIInstanceMI’ SG> Virt_ComputerSystem.c:922: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CMPIMethodMI’
Both of these errors are pointing to the MI macros, which makes it hard to determine what the problem is without closer inspection.
Do you need to use openwbem? Someone fixed up some openwbem issues for us at one point, so it used to work, but a lot has changed since then. Can you try Pegasus or SFCB? Those are the two we test on regularly.
Thanks!
-- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com _______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
participants (2)
-
072021096
-
Dan Smith