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