Re: [Libvir] Errors while running make
by dasari dakshina
Hello,
I have tried writing a simple program.
I have compiled it with
cc xmlist.c -L /usr/src/redhat/BUILD/libvir-0.0.1/src/.libs -lvir -o xmlist
But am getting an error on trying after the virConnectOpen call .
Any help would be appreciated .
Rgds,
Dakshina
Here is the code :xmlist.c
#include <stdio.h>
#include <libvir.h>
main(){
virConnectPtr conn;
int *domids ;
int maxids = 20;
int numDoms=-1;
conn=virConnectOpen("");
if(conn == NULL){
printf("Error : Could not open a connection \n");
return(-1);
}
numDoms=virConnectListDomains(conn,domids,maxids);
printf("The number of domains %d\n",numDoms);
printf("The number of domains %d\n", virConnectNumOfDomains(conn));
}
cc xmlist.c -L /usr/src/redhat/BUILD/libvir-0.0.1/src/.libs -lvir -o xmlist
Daniel Veillard <veillard(a)redhat.com> wrote: On Tue, Jan 24, 2006 at 08:46:07PM -0800, dasari dakshina wrote:
> Hello Daniel,
> Thanks so much for the info .I downloaded the Xen
> 3 source and was able to compile without any issues.
> Is there any link where I can look at simple examples
> of the API usage ?
not yet, check http://libvir.org/html/libvir-libvir.html
Please keep discussion on the list,
thanks,
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard(a)redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
---------------------------------
What are the most popular cars? Find out at Yahoo! Autos
18 years, 10 months
[Libvir] Release of libvir 0.0.2
by Daniel Veillard
A new release is availble on libvir.org:
The main change is the mode of operation for most function, now going though
Xend HTTP remote procedure calls instead of hypervisor and xenstore operations.
* Update of the documentation, web site redesign (Diana Fong)
* integration of HTTP xend RPC based on libxend by Anthony Liquori
* Adding Save and Restore APIs
* extended the virsh command line tool (Karel Zak)
* remove xenstore transactions (Anthony Liguori)
* fix the Python bindings bug when domain and connections where freed
Enjoy !
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard(a)redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
18 years, 11 months
[Libvir] [PATCH] Remove XenStore transactions
by Anthony Liguori
XenStore transactions aren't actually needed for our current uses of
XenStore. Moreover, the type of transactions changed recently from an
opaque pointer to an integer type. This breaks the build for newer
changesets. The change also introduced an XBT_NULL type but instead of
using that (which would break older builds), we can just pass 0.
Regards,
Anthony Liguori
# HG changeset patch
# User Anthony Liguori <anthony(a)codemonkey.ws>
# Node ID 9fe0c1f3379e06054ff66a572daad59bbfac3292
# Parent c028398d53b98baf08eb97192d599fbd311e3dd1
Remove transactions as the type has changed recently breaking the build and
more importantly they aren't actually needed here.
diff -r c028398d53b9 -r 9fe0c1f3379e src/libvir.c
--- a/src/libvir.c Thu Jan 26 18:11:32 2006 +0000
+++ b/src/libvir.c Thu Jan 26 17:27:36 2006 -0500
@@ -307,7 +307,6 @@
*/
int
virConnectListDomains(virConnectPtr conn, int *ids, int maxids) {
- struct xs_transaction_handle* t = NULL;
int ret = -1;
unsigned int num, i;
long id;
@@ -330,11 +329,7 @@
goto done;
}
if (conn->xshandle != NULL) {
- t = xs_transaction_start(conn->xshandle);
- if (t == NULL)
- goto done;
-
- idlist = xs_directory(conn->xshandle, t, "/local/domain", &num);
+ idlist = xs_directory(conn->xshandle, 0, "/local/domain", &num);
if (idlist == NULL)
goto done;
@@ -351,8 +346,6 @@
}
done:
- if ((t != NULL) && (conn->xshandle != NULL))
- xs_transaction_end(conn->xshandle, t, 0);
if (idlist != NULL)
free(idlist);
@@ -369,7 +362,6 @@
*/
int
virConnectNumOfDomains(virConnectPtr conn) {
- struct xs_transaction_handle* t;
int ret = -1;
unsigned int num;
char **idlist = NULL;
@@ -391,14 +383,10 @@
}
} else if (conn->xshandle != NULL) {
- t = xs_transaction_start(conn->xshandle);
- if (t) {
- idlist = xs_directory(conn->xshandle, t, "/local/domain", &num);
- if (idlist) {
- free(idlist);
- ret = num;
- }
- xs_transaction_end(conn->xshandle, t, 0);
+ idlist = xs_directory(conn->xshandle, 0, "/local/domain", &num);
+ if (idlist) {
+ free(idlist);
+ ret = num;
}
}
return(ret);
@@ -445,23 +433,11 @@
*/
static char **
virConnectDoStoreList(virConnectPtr conn, const char *path, unsigned int *nb) {
- struct xs_transaction_handle* t;
- char **ret = NULL;
-
if ((conn == NULL) || (conn->xshandle == NULL) || (path == NULL) ||
(nb == NULL))
return(NULL);
- t = xs_transaction_start(conn->xshandle);
- if (t == NULL)
- goto done;
-
- ret = xs_directory(conn->xshandle, t, path, nb);
-
-done:
- if (t != NULL)
- xs_transaction_end(conn->xshandle, t, 0);
- return(ret);
+ return xs_directory(conn->xshandle, 0, path, nb);
}
/**
@@ -475,9 +451,7 @@
*/
static char *
virDomainDoStoreQuery(virDomainPtr domain, const char *path) {
- struct xs_transaction_handle* t;
char s[256];
- char *ret = NULL;
unsigned int len = 0;
if (!VIR_IS_CONNECTED_DOMAIN(domain))
@@ -488,16 +462,7 @@
snprintf(s, 255, "/local/domain/%d/%s", domain->handle, path);
s[255] = 0;
- t = xs_transaction_start(domain->conn->xshandle);
- if (t == NULL)
- goto done;
-
- ret = xs_read(domain->conn->xshandle, t, &s[0], &len);
-
-done:
- if (t != NULL)
- xs_transaction_end(domain->conn->xshandle, t, 0);
- return(ret);
+ return xs_read(domain->conn->xshandle, 0, &s[0], &len);
}
@@ -514,7 +479,6 @@
static int
virDomainDoStoreWrite(virDomainPtr domain, const char *path,
const char *value) {
- struct xs_transaction_handle* t;
char s[256];
int ret = -1;
@@ -529,16 +493,9 @@
snprintf(s, 255, "/local/domain/%d/%s", domain->handle, path);
s[255] = 0;
- t = xs_transaction_start(domain->conn->xshandle);
- if (t == NULL)
- goto done;
-
- if (xs_write(domain->conn->xshandle, t, &s[0], value, strlen(value)))
+ if (xs_write(domain->conn->xshandle, 0, &s[0], value, strlen(value)))
ret = 0;
-done:
- if (t != NULL)
- xs_transaction_end(domain->conn->xshandle, t, 0);
return(ret);
}
@@ -553,7 +510,6 @@
char *
virDomainGetVM(virDomainPtr domain)
{
- struct xs_transaction_handle* t;
char *vm;
char query[200];
unsigned int len;
@@ -563,18 +519,11 @@
if (domain->conn->xshandle == NULL)
return(NULL);
- t = xs_transaction_start(domain->conn->xshandle);
- if (t == NULL)
- return(NULL);
-
snprintf(query, 199, "/local/domain/%d/vm",
virDomainGetID(domain));
query[199] = 0;
- vm = xs_read(domain->conn->xshandle, t, &query[0], &len);
-
- if (t != NULL)
- xs_transaction_end(domain->conn->xshandle, t, 0);
+ vm = xs_read(domain->conn->xshandle, 0, &query[0], &len);
return(vm);
}
@@ -593,7 +542,6 @@
char *
virDomainGetVMInfo(virDomainPtr domain, const char *vm,
const char *name) {
- struct xs_transaction_handle* t;
char s[256];
char *ret = NULL;
unsigned int len = 0;
@@ -606,15 +554,8 @@
snprintf(s, 255, "%s/%s", vm, name);
s[255] = 0;
- t = xs_transaction_start(domain->conn->xshandle);
- if (t == NULL)
- goto done;
-
- ret = xs_read(domain->conn->xshandle, t, &s[0], &len);
-
-done:
- if (t != NULL)
- xs_transaction_end(domain->conn->xshandle, t, 0);
+ ret = xs_read(domain->conn->xshandle, 0, &s[0], &len);
+
return(ret);
}
@@ -696,7 +637,6 @@
*/
virDomainPtr
virDomainLookupByName(virConnectPtr conn, const char *name) {
- struct xs_transaction_handle* t = NULL;
virDomainPtr ret = NULL;
unsigned int num, i, len;
long id = -1;
@@ -722,11 +662,7 @@
/* then though the XenStore */
if (conn->xshandle != NULL) {
- t = xs_transaction_start(conn->xshandle);
- if (t == NULL)
- goto done;
-
- idlist = xs_directory(conn->xshandle, t, "/local/domain", &num);
+ idlist = xs_directory(conn->xshandle, 0, "/local/domain", &num);
if (idlist == NULL)
goto done;
@@ -739,7 +675,7 @@
continue;
snprintf(prop, 199, "/local/domain/%s/name", idlist[i]);
prop[199] = 0;
- tmp = xs_read(conn->xshandle, t, prop, &len);
+ tmp = xs_read(conn->xshandle, 0, prop, &len);
if (tmp != NULL) {
found = !strcmp(name, tmp);
free(tmp);
@@ -768,8 +704,6 @@
done:
if (xenddomain != NULL)
free(xenddomain);
- if (t != NULL)
- xs_transaction_end(conn->xshandle, t, 0);
if (idlist != NULL)
free(idlist);
@@ -1121,7 +1055,6 @@
virDomainSetMaxMemory(virDomainPtr domain, unsigned long memory) {
int ret;
char s[256], v[30];
- struct xs_transaction_handle* t;
if (!VIR_IS_CONNECTED_DOMAIN(domain))
return(-1);
@@ -1146,12 +1079,8 @@
snprintf(v, 29, "%lu", memory);
v[30] = 0;
- t = xs_transaction_start(domain->conn->xshandle);
- if (t == NULL)
- return(0);
-
- xs_write(domain->conn->xshandle, t, &s[0], &v[0], strlen(v));
- xs_transaction_end(domain->conn->xshandle, t, 0);
+ if (!xs_write(domain->conn->xshandle, 0, &s[0], &v[0], strlen(v)))
+ ret = -1;
return(ret);
}
diff -r c028398d53b9 -r 9fe0c1f3379e src/xml.c
--- a/src/xml.c Thu Jan 26 18:11:32 2006 +0000
+++ b/src/xml.c Thu Jan 26 17:27:36 2006 -0500
@@ -146,25 +146,14 @@
static char *
virDomainGetXMLDeviceInfo(virDomainPtr domain, const char *sub,
long dev, const char *name) {
- struct xs_transaction_handle* t;
char s[256];
- char *ret = NULL;
unsigned int len = 0;
snprintf(s, 255, "/local/domain/0/backend/%s/%d/%ld/%s",
sub, domain->handle, dev, name);
s[255] = 0;
- t = xs_transaction_start(domain->conn->xshandle);
- if (t == NULL)
- goto done;
-
- ret = xs_read(domain->conn->xshandle, t, &s[0], &len);
-
-done:
- if (t != NULL)
- xs_transaction_end(domain->conn->xshandle, t, 0);
- return(ret);
+ return xs_read(domain->conn->xshandle, 0, &s[0], &len);
}
/**
@@ -240,7 +229,6 @@
*/
static int
virDomainGetXMLDevices(virDomainPtr domain, virBufferPtr buf) {
- struct xs_transaction_handle* t;
int ret = -1;
unsigned int num, i;
long id;
@@ -253,14 +241,10 @@
conn = domain->conn;
- t = xs_transaction_start(conn->xshandle);
- if (t == NULL)
- goto done;
-
snprintf(backend, 199, "/local/domain/0/backend/vbd/%d",
virDomainGetID(domain));
backend[199] = 0;
- list = xs_directory(conn->xshandle, t, backend, &num);
+ list = xs_directory(conn->xshandle, 0, backend, &num);
ret = 0;
if (list == NULL)
goto done;
@@ -275,8 +259,6 @@
}
done:
- if (t != NULL)
- xs_transaction_end(conn->xshandle, t, 0);
if (list != NULL)
free(list);
@@ -343,7 +325,6 @@
*/
static int
virDomainGetXMLInterfaces(virDomainPtr domain, virBufferPtr buf) {
- struct xs_transaction_handle* t;
int ret = -1;
unsigned int num, i;
long id;
@@ -356,14 +337,10 @@
conn = domain->conn;
- t = xs_transaction_start(conn->xshandle);
- if (t == NULL)
- goto done;
-
snprintf(backend, 199, "/local/domain/0/backend/vif/%d",
virDomainGetID(domain));
backend[199] = 0;
- list = xs_directory(conn->xshandle, t, backend, &num);
+ list = xs_directory(conn->xshandle, 0, backend, &num);
ret = 0;
if (list == NULL)
goto done;
@@ -378,8 +355,6 @@
}
done:
- if (t != NULL)
- xs_transaction_end(conn->xshandle, t, 0);
if (list != NULL)
free(list);
18 years, 11 months
[Libvir] Errors while running make
by dasari dakshina
Hello,
I wish to use the Xen API.
I downloaded the tar and extracted it as was told.
The configure script also went through.
But when I ran make ,I came across these errors.
Could you please help ?
Rgds,
Dakshina
make
make all-recursive
make[1]: Entering directory `/downloads/libvir-0.0.1'
Making all in src
make[2]: Entering directory `/downloads/libvir-0.0.1/src'
if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I./include -g -O -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall -MT libvir.lo -MD -MP -MF ".deps/libvir.Tpo" -c -o libvir.lo libvir.c; \
then mv -f ".deps/libvir.Tpo" ".deps/libvir.Plo"; else rm -f ".deps/libvir.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I./include -g -O -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall -MT libvir.lo -MD -MP -MF .deps/libvir.Tpo -c libvir.c -fPIC -DPIC -o .libs/libvir.o
In file included from /usr/include/xen/xen.h:13,
from /usr/include/xen/dom0_ops.h:14,
from xen_internal.h:17,
from libvir.c:13:
/usr/include/xen/arch-x86_32.h:74: error: syntax error before 'u8'
/usr/include/xen/arch-x86_32.h:76: error: syntax error before 'cs'
/usr/include/xen/arch-x86_32.h:78: error: syntax error before '}' token
/usr/include/xen/arch-x86_32.h:81: error: syntax error before 'u32'
/usr/include/xen/arch-x86_32.h:83: error: syntax error before 'edx'
/usr/include/xen/arch-x86_32.h:84: error: syntax error before 'esi'
/usr/include/xen/arch-x86_32.h:85: error: syntax error before 'edi'
/usr/include/xen/arch-x86_32.h:86: error: syntax error before 'ebp'
/usr/include/xen/arch-x86_32.h:87: error: syntax error before 'eax'
/usr/include/xen/arch-x86_32.h:88: error: syntax error before 'error_code'
/usr/include/xen/arch-x86_32.h:89: error: syntax error before 'entry_vector'
/usr/include/xen/arch-x86_32.h:90: error: syntax error before 'eip'
/usr/include/xen/arch-x86_32.h:91: error: syntax error before 'cs'
/usr/include/xen/arch-x86_32.h:92: error: syntax error before 'saved_upcall_mask'
/usr/include/xen/arch-x86_32.h:93: error: syntax error before '_pad0'
/usr/include/xen/arch-x86_32.h:94: error: syntax error before 'eflags'
/usr/include/xen/arch-x86_32.h:95: error: syntax error before 'esp'
/usr/include/xen/arch-x86_32.h:96: error: syntax error before 'ss'
/usr/include/xen/arch-x86_32.h:97: error: syntax error before 'es'
/usr/include/xen/arch-x86_32.h:98: error: syntax error before 'ds'
.............
libvir.c: At top level:
libvir.c:967: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c: In function 'virDomainGetInfo':
libvir.c:1018: error: syntax error before 'dominfo'
libvir.c:1020: error: 'dominfo' undeclared (first use in this function)
make[2]: *** [libvir.lo] Error 1
make[2]: Leaving directory `/downloads/libvir-0.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/downloads/libvir-0.0.1'
make: *** [all] Error 2
#
---------------------------------
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
18 years, 11 months
[Libvir] Error while running make
by dasari dakshina
Hello,
I wish to use the Xen API.
I have downloaded the tar libvir-0.0.1.tar.gz
i extracted the files and Ran
./configure --in the libvir directory .It went through.
On running make however ,I have come across these errors.
Any help would be appreciated.
Rgds,
Dakshina
Entering directory `/downloads/libvir-0.0.1'
Making all in src
make[2]: Entering directory `/downloads/libvir-0.0.1/src'
if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I./include -g -O -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall -MT libvir.lo -MD -MP -MF ".deps/libvir.Tpo" -c -o libvir.lo libvir.c; \
then mv -f ".deps/libvir.Tpo" ".deps/libvir.Plo"; else rm -f ".deps/libvir.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I./include -g -O -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall -MT libvir.lo -MD -MP -MF .deps/libvir.Tpo -c libvir.c -fPIC -DPIC -o .libs/libvir.o
In file included from /usr/include/xen/xen.h:13,
from /usr/include/xen/dom0_ops.h:14,
from xen_internal.h:17,
from libvir.c:13:
/usr/include/xen/arch-x86_32.h:74: error: syntax error before 'u8'
/usr/include/xen/arch-x86_32.h:76: error: syntax error before 'cs'
/usr/include/xen/arch-x86_32.h:78: error: syntax error before '}' token
/usr/include/xen/arch-x86_32.h:81: error: syntax error before 'u32'
/usr/include/xen/arch-x86_32.h:83: error: syntax error before 'edx'
/usr/include/xen/arch-x86_32.h:84: error: syntax error before 'esi'
/usr/include/xen/arch-x86_32.h:85: error: syntax error before 'edi'
/usr/include/xen/arch-x86_32.h:86: error: syntax error before 'ebp'
/usr/include/xen/arch-x86_32.h:87: error: syntax error before 'eax'
/usr/include/xen/arch-x86_32.h:88: error: syntax error before 'error_code'
/usr/include/xen/arch-x86_32.h:89: error: syntax error before 'entry_vector'
/usr/include/xen/arch-x86_32.h:90: error: syntax error before 'eip'
/usr/include/xen/arch-x86_32.h:91: error: syntax error before 'cs'
/usr/include/xen/arch-x86_32.h:92: error: syntax error before 'saved_upcall_mask'
/usr/include/xen/arch-x86_32.h:93: error: syntax error before '_pad0'
/usr/include/xen/arch-x86_32.h:94: error: syntax error before 'eflags'
/usr/include/xen/arch-x86_32.h:95: error: syntax error before 'esp'
/usr/include/xen/arch-x86_32.h:96: error: syntax error before 'ss'
/usr/include/xen/arch-x86_32.h:97: error: syntax error before 'es'
/usr/include/xen/arch-x86_32.h:98: error: syntax error before 'ds'
/usr/include/xen/arch-x86_32.h:99: error: syntax error before 'fs'
/usr/include/xen/arch-x86_32.h:100: error: syntax error before 'gs'
/usr/include/xen/arch-x86_32.h:101: error: syntax error before '}' token
/usr/include/xen/arch-x86_32.h:103: error: syntax error before 'tsc_timestamp_t'
/usr/include/xen/arch-x86_32.h:116: error: syntax error before 'cpu_user_regs_t'
/usr/include/xen/arch-x86_32.h:128: error: syntax error before '}' token
/usr/include/xen/arch-x86_32.h:132: error: syntax error before 'u64'
In file included from /usr/include/xen/dom0_ops.h:14,
from xen_internal.h:17,
from libvir.c:13:
/usr/include/xen/xen.h:245: error: syntax error before 'domid_t'
/usr/include/xen/xen.h:278: error: syntax error before 'u64'
/usr/include/xen/xen.h:325: error: syntax error before 'u8'
/usr/include/xen/xen.h:327: error: syntax error before 'evtchn_pending_sel'
/usr/include/xen/xen.h:343: error: syntax error before 'u32'
/usr/include/xen/xen.h:345: error: syntax error before 'system_time'
/usr/include/xen/xen.h:352: error: syntax error before 'tsc_to_system_mul'
/usr/include/xen/xen.h:353: error: syntax error before 'tsc_shift'
/usr/include/xen/xen.h:361: error: syntax error before 'vcpu_info_t'
/usr/include/xen/xen.h:365: error: syntax error before 'n_vcpu'
/usr/include/xen/xen.h:398: error: syntax error before 'evtchn_pending'
/usr/include/xen/xen.h:399: error: syntax error before 'evtchn_mask'
/usr/include/xen/xen.h:405: error: syntax error before 'wc_version'
/usr/include/xen/xen.h:406: error: syntax error before 'wc_sec'
/usr/include/xen/xen.h:407: error: syntax error before 'wc_nsec'
/usr/include/xen/xen.h:409: error: syntax error before 'arch'
/usr/include/xen/xen.h:443: error: syntax error before 'u32'
/usr/include/xen/xen.h:451: error: syntax error before 'cmd_line'
/usr/include/xen/xen.h:453: error: syntax error before 'store_evtchn'
/usr/include/xen/xen.h:463: error: syntax error before '*' token
/usr/include/xen/xen.h:465: error: syntax error before 'cpumap_t'
In file included from /usr/include/xen/dom0_ops.h:15,
from xen_internal.h:17,
from libvir.c:13:
/usr/include/xen/sched_ctl.h:23: error: syntax error before 'u32'
/usr/include/xen/sched_ctl.h:27: error: syntax error before 'u32'
/usr/include/xen/sched_ctl.h:29: error: syntax error before '}' token
/usr/include/xen/sched_ctl.h:30: error: syntax error before '}' token
/usr/include/xen/sched_ctl.h:33: error: syntax error before 'u32'
/usr/include/xen/sched_ctl.h:35: error: syntax error before 'domain'
/usr/include/xen/sched_ctl.h:39: error: syntax error before 'u32'
/usr/include/xen/sched_ctl.h:41: error: syntax error before 'warpvalue'
/usr/include/xen/sched_ctl.h:44: error: syntax error before '}' token
/usr/include/xen/sched_ctl.h:48: error: syntax error before 'u64'
/usr/include/xen/sched_ctl.h:50: error: syntax error before 'latency'
/usr/include/xen/sched_ctl.h:51: error: syntax error before 'extratime'
/usr/include/xen/sched_ctl.h:52: error: syntax error before 'weight'
/usr/include/xen/sched_ctl.h:55: error: syntax error before '}' token
/usr/include/xen/sched_ctl.h:56: error: syntax error before '}' token
In file included from xen_internal.h:17,
from libvir.c:13:
/usr/include/xen/dom0_ops.h:29: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:34: error: syntax error before '}' token
/usr/include/xen/dom0_ops.h:47: error: syntax error before 'u32'
/usr/include/xen/dom0_ops.h:56: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:62: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:68: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:74: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:89: error: syntax error before 'cpu_time'
/usr/include/xen/dom0_ops.h:90: error: syntax error before 'n_vcpu'
/usr/include/xen/dom0_ops.h:91: error: syntax error before 'vcpu_to_cpu'
/usr/include/xen/dom0_ops.h:92: error: syntax error before 'cpumap'
/usr/include/xen/dom0_ops.h:93: error: syntax error before 'ssidref'
/usr/include/xen/dom0_ops.h:99: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:102: error: syntax error before '*' token
/usr/include/xen/dom0_ops.h:103: error: syntax error before '}' token
/usr/include/xen/dom0_ops.h:108: error: syntax error before 'u32'
/usr/include/xen/dom0_ops.h:110: error: syntax error before 'msr'
/usr/include/xen/dom0_ops.h:111: error: syntax error before 'in1'
/usr/include/xen/dom0_ops.h:112: error: syntax error before 'in2'
/usr/include/xen/dom0_ops.h:114: error: syntax error before 'out1'
/usr/include/xen/dom0_ops.h:115: error: syntax error before 'out2'
/usr/include/xen/dom0_ops.h:121: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:123: error: syntax error before 'in1'
/usr/include/xen/dom0_ops.h:124: error: syntax error before 'in2'
/usr/include/xen/dom0_ops.h:125: error: syntax error before 'in3'
/usr/include/xen/dom0_ops.h:126: error: syntax error before 'in4'
/usr/include/xen/dom0_ops.h:128: error: syntax error before 'status'
/usr/include/xen/dom0_ops.h:129: error: syntax error before 'out1'
/usr/include/xen/dom0_ops.h:130: error: syntax error before 'out2'
/usr/include/xen/dom0_ops.h:140: error: syntax error before 'u32'
/usr/include/xen/dom0_ops.h:142: error: syntax error before 'system_time'
/usr/include/xen/dom0_ops.h:159: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:171: error: syntax error before 'u32'
/usr/include/xen/dom0_ops.h:173: error: conflicting types for 'buffer'
/usr/include/xen/dom0_ops.h:31: error: previous declaration of 'buffer' was here
/usr/include/xen/dom0_ops.h:174: error: syntax error before 'count'
/usr/include/xen/dom0_ops.h:183: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:185: error: syntax error before '*' token
/usr/include/xen/dom0_ops.h:185: error: conflicting types for 'cpumap'
/usr/include/xen/dom0_ops.h:92: error: previous declaration of 'cpumap' was here
/usr/include/xen/dom0_ops.h:186: error: syntax error before '}' token
/usr/include/xen/dom0_ops.h:195: error: syntax error before 'u8'
/usr/include/xen/dom0_ops.h:197: error: conflicting types for 'cpu_mask'
/usr/include/xen/dom0_ops.h:109: error: previous declaration of 'cpu_mask' was here
/usr/include/xen/dom0_ops.h:198: error: syntax error before 'evt_mask'
/usr/include/xen/dom0_ops.h:201: error: syntax error before 'size'
/usr/include/xen/dom0_ops.h:209: error: syntax error before 'u32'
/usr/include/xen/dom0_ops.h:211: error: syntax error before 'sockets_per_node'
/usr/include/xen/dom0_ops.h:212: error: syntax error before 'nr_nodes'
/usr/include/xen/dom0_ops.h:213: error: syntax error before 'cpu_khz'
/usr/include/xen/dom0_ops.h:216: error: syntax error before '}' token
/usr/include/xen/dom0_ops.h:224: error: syntax error before 'u32'
/usr/include/xen/dom0_ops.h:243: error: syntax error before 'u32'
/usr/include/xen/dom0_ops.h:245: error: syntax error before 'dirty_net_count'
/usr/include/xen/dom0_ops.h:246: error: syntax error before 'dirty_block_count'/usr/include/xen/dom0_ops.h:251: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:257: error: syntax error before 'stats'
/usr/include/xen/dom0_ops.h:263: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:265: error: syntax error before '}' token
/usr/include/xen/dom0_ops.h:270: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:274: error: syntax error before '}' token
/usr/include/xen/dom0_ops.h:288: error: syntax error before 'u32'
/usr/include/xen/dom0_ops.h:291: error: syntax error before 'reg'
/usr/include/xen/dom0_ops.h:304: error: syntax error before 'u32'
/usr/include/xen/dom0_ops.h:312: error: syntax error before 'u32'
/usr/include/xen/dom0_ops.h:316: error: syntax error before 'type'
/usr/include/xen/dom0_ops.h:325: error: syntax error before 'u8'
/usr/include/xen/dom0_ops.h:327: error: syntax error before 'vals'
/usr/include/xen/dom0_ops.h:328: error: syntax error before '}' token
/usr/include/xen/dom0_ops.h:331: error: syntax error before 'u32'
/usr/include/xen/dom0_ops.h:334: error: syntax error before '*' token
/usr/include/xen/dom0_ops.h:335: error: syntax error before '}' token
/usr/include/xen/dom0_ops.h:341: error: syntax error before 'u32'
/usr/include/xen/dom0_ops.h:346: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:348: error: syntax error before 'nr_ports'
/usr/include/xen/dom0_ops.h:349: error: syntax error before 'allow_access'
/usr/include/xen/dom0_ops.h:354: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:356: error: syntax error before '*' token
/usr/include/xen/dom0_ops.h:357: error: syntax error before 'cpu_time'
/usr/include/xen/dom0_ops.h:363: error: syntax error before 'domid_t'
/usr/include/xen/dom0_ops.h:365: error: syntax error before '*' token
/usr/include/xen/dom0_ops.h:365: error: conflicting types for 'buffer'
/usr/include/xen/dom0_ops.h:31: error: previous declaration of 'buffer' was here
/usr/include/xen/dom0_ops.h:368: error: syntax error before '}' token
/usr/include/xen/dom0_ops.h:378: error: syntax error before 'u32'
/usr/include/xen/dom0_ops.h:381: error: syntax error before 'dom0_createdomain_t'
/usr/include/xen/dom0_ops.h:383: error: syntax error before 'unpausedomain'
/usr/include/xen/dom0_ops.h:384: error: syntax error before 'destroydomain'
/usr/include/xen/dom0_ops.h:385: error: syntax error before 'getmemlist'
/usr/include/xen/dom0_ops.h:388: error: syntax error before 'setdomaininfo'
/usr/include/xen/dom0_ops.h:389: error: syntax error before 'getdomaininfo'
/usr/include/xen/dom0_ops.h:390: error: syntax error before 'getpageframeinfo'
/usr/include/xen/dom0_ops.h:391: error: syntax error before 'msr'
/usr/include/xen/dom0_ops.h:392: error: syntax error before 'debug'
/usr/include/xen/dom0_ops.h:393: error: syntax error before 'settime'
/usr/include/xen/dom0_ops.h:394: error: syntax error before 'readconsole'
/usr/include/xen/dom0_ops.h:395: error: syntax error before 'pincpudomain'
/usr/include/xen/dom0_ops.h:396: error: syntax error before 'tbufcontrol'
/usr/include/xen/dom0_ops.h:397: error: syntax error before 'physinfo'
/usr/include/xen/dom0_ops.h:398: error: syntax error before 'sched_id'
/usr/include/xen/dom0_ops.h:399: error: syntax error before 'shadow_control'
/usr/include/xen/dom0_ops.h:400: error: syntax error before 'setdomainmaxmem'
/usr/include/xen/dom0_ops.h:401: error: syntax error before 'getpageframeinfo2'/usr/include/xen/dom0_ops.h:402: error: syntax error before 'add_memtype'
/usr/include/xen/dom0_ops.h:403: error: syntax error before 'del_memtype'
/usr/include/xen/dom0_ops.h:404: error: syntax error before 'read_memtype'
/usr/include/xen/dom0_ops.h:405: error: syntax error before 'perfccontrol'
/usr/include/xen/dom0_ops.h:406: error: syntax error before 'microcode'
/usr/include/xen/dom0_ops.h:407: error: syntax error before 'ioport_permission'/usr/include/xen/dom0_ops.h:408: error: syntax error before 'getvcpucontext'
/usr/include/xen/dom0_ops.h:409: error: syntax error before 'getdomaininfolist'/usr/include/xen/dom0_ops.h:411: error: syntax error before '}' token
/usr/include/xen/dom0_ops.h:412: error: syntax error before '}' token
In file included from libvir.c:13:
xen_internal.h:24: warning: declaration of 'handle' shadows a global declaration
/usr/include/xen/dom0_ops.h:290: warning: shadowed declaration is here
xen_internal.h:25: warning: declaration of 'handle' shadows a global declaration
/usr/include/xen/dom0_ops.h:290: warning: shadowed declaration is here
xen_internal.h:26: warning: declaration of 'handle' shadows a global declaration
/usr/include/xen/dom0_ops.h:290: warning: shadowed declaration is here
xen_internal.h:27: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
xen_internal.h:28: warning: declaration of 'handle' shadows a global declaration
/usr/include/xen/dom0_ops.h:290: warning: shadowed declaration is here
xen_internal.h:29: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
xen_internal.h:30: warning: declaration of 'handle' shadows a global declaration
/usr/include/xen/dom0_ops.h:290: warning: shadowed declaration is here
xen_internal.h:31: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
xen_internal.h:32: warning: declaration of 'handle' shadows a global declaration
/usr/include/xen/dom0_ops.h:290: warning: shadowed declaration is here
xen_internal.h:33: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
xen_internal.h:34: error: syntax error before 'dom0_getdomaininfo_t'
xen_internal.h:34: warning: function declaration isn't a prototype
xen_internal.h:35: warning: declaration of 'handle' shadows a global declaration
/usr/include/xen/dom0_ops.h:290: warning: shadowed declaration is here
xen_internal.h:36: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
In file included from /usr/include/xc.h:26,
from /usr/include/xs_lib.h:25,
from /usr/include/xs.h:23,
from libvir.c:18:
/usr/include/xen/event_channel.h:20: error: syntax error before 'domid_t'
/usr/include/xen/event_channel.h:23: error: syntax error before '}' token
/usr/include/xen/event_channel.h:48: error: syntax error before 'domid_t'
/usr/include/xen/event_channel.h:51: error: syntax error before '}' token
/usr/include/xen/event_channel.h:108: error: syntax error before 'domid_t'
/usr/include/xen/event_channel.h:111: error: syntax error before '}' token
/usr/include/xen/event_channel.h:135: error: syntax error before 'domid_t'
/usr/include/xen/event_channel.h:144: error: conflicting types for 'status'
/usr/include/xen/dom0_ops.h:128: error: previous declaration of 'status' was here
/usr/include/xen/event_channel.h:145: error: conflicting types for 'vcpu'
/usr/include/xen/dom0_ops.h:355: error: previous declaration of 'vcpu' was here/usr/include/xen/event_channel.h:148: error: syntax error before 'domid_t'
/usr/include/xen/event_channel.h:151: error: syntax error before 'domid_t'
/usr/include/xen/event_channel.h:153: error: syntax error before '}' token
/usr/include/xen/event_channel.h:156: error: syntax error before '}' token
/usr/include/xen/event_channel.h:157: error: syntax error before '}' token
/usr/include/xen/event_channel.h:179: error: syntax error before 'evtchn_alloc_unbound_t'
/usr/include/xen/event_channel.h:184: error: syntax error before 'close'
/usr/include/xen/event_channel.h:186: error: syntax error before 'status'
/usr/include/xen/event_channel.h:188: error: syntax error before '}' token
/usr/include/xen/event_channel.h:189: error: syntax error before '}' token
In file included from /usr/include/xs_lib.h:25,
from /usr/include/xs.h:23,
from libvir.c:18:
/usr/include/xc.h:137: error: syntax error before 'cpumap_t'
/usr/include/xc.h:140: error: syntax error before 'xc_domaininfo_t'
/usr/include/xc.h:186: error: syntax error before 'cpumap_t'
/usr/include/xc.h:205: error: syntax error before 'xc_dominfo_t'
/usr/include/xc.h:223: error: syntax error before 'xc_domaininfo_t'
/usr/include/xc.h:239: error: syntax error before 'vcpu_guest_context_t'
/usr/include/xc.h:245: error: syntax error before 'domid_t'
/usr/include/xc.h:249: error: syntax error before 'xc_shadow_control_stats_t'
/usr/include/xc.h:255: error: syntax error before 'xc_shadow_control_stats_t'
/usr/include/xc.h:344: error: syntax error before 'xc_evtchn_status_t'
/usr/include/xc.h:419: error: syntax error before 'xc_evtchn_status_t'
/usr/include/xc.h:433: error: syntax error before 'xc_physinfo_t'
/usr/include/xc.h:435: error: syntax error before 'xc_physinfo_t'
/usr/include/xc.h:448: error: syntax error before 'xc_perfc_desc_t'
/usr/include/xc.h:452: error: syntax error before 'xc_perfc_desc_t'
/usr/include/xc.h:547: error: syntax error before 'dom0_op_t'
In file included from /usr/include/xs.h:23,
from libvir.c:18:
/usr/include/xs_lib.h:39: error: syntax error before 'domid_t'
/usr/include/xs_lib.h:41: error: syntax error before '}' token
In file included from libvir.c:18:
/usr/include/xs.h:128: error: syntax error before 'domid_t'
/usr/include/xs.h:134: error: syntax error before 'domid_t'
In file included from internal.h:8,
from libvir.c:19:
hash.h:39: warning: declaration of 'size' shadows a global declaration
/usr/include/xen/dom0_ops.h:201: warning: shadowed declaration is here
In file included from libvir.c:19:
internal.h:105: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
internal.h:106: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c:47: warning: declaration of 'type' shadows a global declaration
/usr/include/xen/dom0_ops.h:316: warning: shadowed declaration is here
libvir.c: In function 'virConnectOpen':
libvir.c:84: warning: declaration of 'handle' shadows a global declaration
/usr/include/xen/dom0_ops.h:290: warning: shadowed declaration is here
libvir.c: In function 'virConnectCheckStoreID':
libvir.c:175: error: syntax error before 'dominfo'
libvir.c:178: error: 'dominfo' undeclared (first use in this function)
libvir.c:178: error: (Each undeclared identifier is reported only once
libvir.c:178: error: for each function it appears in.)
libvir.c: At top level:
libvir.c:195: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c: In function 'virConnectListDomains':
libvir.c:288: warning: declaration of 'num' shadows a global declaration
/usr/include/xen/dom0_ops.h:271: warning: shadowed declaration is here
libvir.c:298: error: too few arguments to function 'xs_transaction_start'
libvir.c:302: warning: passing argument 2 of 'xs_directory' from incompatible pointer type
libvir.c:302: warning: passing argument 3 of 'xs_directory' from incompatible pointer type
libvir.c:302: error: too many arguments to function 'xs_directory'
libvir.c:320: error: too many arguments to function 'xs_transaction_end'
libvir.c: In function 'virConnectNumOfDomains':
libvir.c:339: warning: declaration of 'num' shadows a global declaration
/usr/include/xen/dom0_ops.h:271: warning: shadowed declaration is here
libvir.c:345: error: too few arguments to function 'xs_transaction_start'
libvir.c:347: warning: passing argument 2 of 'xs_directory' from incompatible pointer type
libvir.c:347: warning: passing argument 3 of 'xs_directory' from incompatible pointer type
libvir.c:347: error: too many arguments to function 'xs_directory'
libvir.c:352: error: too many arguments to function 'xs_transaction_end'
libvir.c: At top level:
libvir.c:376: warning: declaration of 'flags' shadows a global declaration
/usr/include/xen/dom0_ops.h:85: warning: shadowed declaration is here
libvir.c: In function 'virConnectDoStoreList':
libvir.c:431: error: too few arguments to function 'xs_transaction_start'
libvir.c:435: warning: passing argument 2 of 'xs_directory' from incompatible pointer type
libvir.c:435: warning: passing argument 3 of 'xs_directory' from incompatible pointer type
libvir.c:435: error: too many arguments to function 'xs_directory'
libvir.c:439: error: too many arguments to function 'xs_transaction_end'
libvir.c: At top level:
libvir.c:453: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c: In function 'virDomainDoStoreQuery':
libvir.c:465: error: too few arguments to function 'xs_transaction_start'
libvir.c:469: warning: passing argument 2 of 'xs_read' from incompatible pointer type
libvir.c:469: warning: passing argument 3 of 'xs_read' from incompatible pointer type
libvir.c:469: error: too many arguments to function 'xs_read'
libvir.c:473: error: too many arguments to function 'xs_transaction_end'
libvir.c: At top level:
libvir.c:489: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c: In function 'virDomainDoStoreWrite':
libvir.c:504: error: too few arguments to function 'xs_transaction_start'
libvir.c:508: warning: passing argument 2 of 'xs_write' from incompatible pointer type
libvir.c:508: warning: passing argument 4 of 'xs_write' makes integer from pointer without a cast
libvir.c:513: error: too many arguments to function 'xs_transaction_end'
libvir.c: At top level:
libvir.c:526: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c: In function 'virDomainGetVM':
libvir.c:536: error: too few arguments to function 'xs_transaction_start'
libvir.c:544: warning: passing argument 2 of 'xs_read' from incompatible pointer type
libvir.c:544: warning: passing argument 3 of 'xs_read' from incompatible pointer type
libvir.c:544: error: too many arguments to function 'xs_read'
libvir.c:547: error: too many arguments to function 'xs_transaction_end'
libvir.c: At top level:
libvir.c:564: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c: In function 'virDomainGetVMInfo':
libvir.c:577: error: too few arguments to function 'xs_transaction_start'
libvir.c:581: warning: passing argument 2 of 'xs_read' from incompatible pointer type
libvir.c:581: warning: passing argument 3 of 'xs_read' from incompatible pointer type
libvir.c:581: error: too many arguments to function 'xs_read'
libvir.c:585: error: too many arguments to function 'xs_transaction_end'
libvir.c: In function 'virDomainLookupByID':
libvir.c:608: warning: implicit declaration of function 'xs_get_domain_path'
libvir.c:608: warning: nested extern declaration of 'xs_get_domain_path'
libvir.c:608: warning: assignment makes pointer from integer without a cast
libvir.c: In function 'virDomainLookupByName':
libvir.c:644: warning: declaration of 'num' shadows a global declaration
/usr/include/xen/dom0_ops.h:271: warning: shadowed declaration is here
libvir.c:655: error: too few arguments to function 'xs_transaction_start'
libvir.c:659: warning: passing argument 2 of 'xs_directory' from incompatible pointer type
libvir.c:659: warning: passing argument 3 of 'xs_directory' from incompatible pointer type
libvir.c:659: error: too many arguments to function 'xs_directory'
libvir.c:672: warning: passing argument 2 of 'xs_read' from incompatible pointer type
libvir.c:672: warning: passing argument 3 of 'xs_read' from incompatible pointer type
libvir.c:672: error: too many arguments to function 'xs_read'
libvir.c:687: warning: assignment makes pointer from integer without a cast
libvir.c:693: error: too many arguments to function 'xs_transaction_end'
libvir.c: At top level:
libvir.c:713: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c:735: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c:761: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c:778: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c:797: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c:824: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c:839: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c:854: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c:879: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c: In function 'virDomainGetMaxMemory':
libvir.c:894: error: syntax error before 'dominfo'
libvir.c:897: error: 'dominfo' undeclared (first use in this function)
libvir.c: At top level:
libvir.c:919: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c: In function 'virDomainSetMaxMemory':
libvir.c:945: error: too few arguments to function 'xs_transaction_start'
libvir.c:949: warning: passing argument 2 of 'xs_write' from incompatible pointer type
libvir.c:949: warning: passing argument 4 of 'xs_write' makes integer from pointer without a cast
libvir.c:950: error: too many arguments to function 'xs_transaction_end'
libvir.c: At top level:
libvir.c:967: warning: declaration of 'domain' shadows a global declaration
/usr/include/xen/dom0_ops.h:50: warning: shadowed declaration is here
libvir.c: In function 'virDomainGetInfo':
libvir.c:1018: error: syntax error before 'dominfo'
libvir.c:1020: error: 'dominfo' undeclared (first use in this function)
make[2]: *** [libvir.lo] Error 1
make[2]: Leaving directory `/downloads/libvir-0.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/downloads/libvir-0.0.1'
---------------------------------
What are the most popular cars? Find out at Yahoo! Autos
18 years, 11 months
[Libvir] Persistent Configurations?
by Anthony Liguori
Howdy,
Thought I'd try to start up a discussion on a topic that I know I've
discussed a lot with people in the past.
Xend currently stores its configurations in python files somewhere on
the file system (usually in /etc/xen). This is problematic from a
management tool perspective because the python files may contain
arbitrary python code (requiring a python interpreter to read) and
there's no central location which makes enumerating possible domains
quite difficult.
If you think about a typical use-case (or at least, my typical use-case
:-)), a user is likely to have a larger number of domains than what are
running (say a domain for a bunch of different distros for testing). It
would be nice if any management tools could see those domains and easily
start them up.
I think we could achieve this with the following requirements:
1) Allow domain creation based on an opaque configuration object
2) Allow storing and retrieval of these configuration objects from the
XenStore (using a user-specified path)
I think this isolates the state well enough that it leaves the majority
of the library stateless. Just some random thoughts...
Regards,
Anthony Liguori
18 years, 11 months
[Libvir] ruby bindings
by Fraser Campbell
Hi,
Is there any chance you are considering the addition of ruby bindings
for libvir?
I have been considering writing my own ruby wrappers around Xen's
lowlevel libraries but if libvir is a higher-level more stable API
perhaps it would make more sense for me to wrap around libvir. If you
are not working on ruby bindings I will do so myself and eventually
provide patches.
Are you in a position to state yet whether libvir is likely to be
continually developed and a key part of the Fedora/RHEL virtualization?
I immediately see some missing functionality (migration), I assume the
eventual goal is to support all features of Xen and that it is just
missing because of the very young state of the project?
Thanks!
18 years, 11 months