Devel
Threads by month
- ----- 2026 -----
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- 17 participants
- 40169 discussions
14 Dec '07
I think there is a unnecessary code for setting cpus parameter at
xenXMParseXMLToConfig, since the cpus parameter is already set on
the upper code. Because of this, converted cpus string will not be
used. So, can I remove it ?
Regards,
Saori Fukuta
4
4
The detach-disk command does not work for tap device, since
xenStoreDomainGetDiskID is always searching for vbd device from
XenStore. c.f. This is a the related patch:
http://git.et.redhat.com/?p=libvirt.git;a=commit;h=d27506d3a36e12b977f6a896…
So, I changed the searching path to both vbd and tap.
Regards,
Saori Fukuta
4
3
Hi,
Libvirt provides the disk and Network interfaces statistics for each
of the guests configured. Is there a api which tells me how many disk
and network interface are configured per guest so that can make the
corrosponding calls to get the statistics of each the disk/nic (like
virDomainBlockStats and virDomainInterfaceStats).
Thanks,
Vadiraj
3
2
12 Dec '07
< is currently escaped as ≪
I'm guessing it should be <
These are the places where this function is used:
src/xend_internal.c: virBufferEscapeString(buf, "
<cmdline>%s</cmdline>\n", tmp);
src/xend_internal.c: virBufferEscapeString(&buf, "
<bootloader_args>%s</bootloader_args>\n", tmp);
src/xm_internal.c: virBufferEscapeString(buf, "
<bootloader_args>%s</bootloader_args>\n", str);
src/xm_internal.c: virBufferEscapeString(buf, "
<cmdline>%s</cmdline>\n", str);
Rich.
--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
3
2
Hi guys,
I'd like to remove the PYTHON_SUBDIR parameter, but (of course)
still allow configure/build to proceed even when python-devel is
not installed.
Why?
Because with the current code, I was able to build and _try_ to test
a broken distribution tarball.
Here's how it happened:
While I had temporarily removed python-devel, I configured/built
libvirt, ran "make check" to ensure that everything was ok, created a
tarball to test on a remote RHEL5 system, and copied it over. But on
the RHEL5 system, configure failed due to lack of python/Makefile.in.
The entire python/ directory was missing.
With the following change, I've confirmed it works as well as before
(on both rawhide and RHEL5), yet can't cause the trouble I described:
Always build in python/ subdir.
* configure.in (PYTHON_SUBDIR): Don't set. Remove all uses.
* Makefile.am (SUBDIRS): Hard-code "python" here.
(tests): Test equivalent "$(pythondir)", not @PYTHON_SUBDIR@.
---
Makefile.am | 4 ++--
configure.in | 7 -------
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index c49c533..34a1eb5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = gnulib/lib include src qemud proxy docs gnulib/tests \
- @PYTHON_SUBDIR@ tests po scripts
+ python tests po scripts
ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4
@@ -21,7 +21,7 @@ check-local: all tests
tests:
@(cd docs/examples ; $(MAKE) MAKEFLAGS+=--silent tests)
- @(if [ "@PYTHON_SUBDIR@" != "" ] ; then cd python ; \
+ @(if [ "$(pythondir)" != "" ] ; then cd python ; \
$(MAKE) MAKEFLAGS+=--silent tests ; fi)
cov: cov-recursive cov-am
diff --git a/configure.in b/configure.in
index 8e5cca4..d37c0d8 100644
--- a/configure.in
+++ b/configure.in
@@ -568,14 +568,7 @@ else
PYTHON=
fi
AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "")
-if test "$PYTHON_INCLUDES" != ""
-then
- PYTHON_SUBDIR=python
-else
- PYTHON_SUBDIR=
-fi
AC_SUBST(pythondir)
-AC_SUBST(PYTHON_SUBDIR)
AC_SUBST(PYTHON_VERSION)
AC_SUBST(PYTHON_INCLUDES)
AC_SUBST(PYTHON_SITE_PACKAGES)
--
1.5.3.7.1112.g9758e
2
2
12 Dec '07
Since no one objected to my suggestion here:
http://thread.gmane.org/gmane.comp.emulators.libvirt/3956/focus=4039
> Given code like T *var = calloc (n, sizeof (T));
> I prefer this: T *var = calloc (n, sizeof (*var));
I've gone ahead with some first steps.
With the patch below, there are only two .o files with differences.
Mainly for my own reference, here's what I did:
make CFLAGS=-g
mkdir ../obj
for i in $(find . -name '*.o'); do cp -l --parents $i ../obj;done
make clean
patch -p1 < this-patch
make CFLAGS=-g
for i in $(find . -name '*.o'); do cmp $i ../obj/$i;done
The first difference was due to my minor factorization in xmlrpc.c.
That was expected. However, the second was not. The calloc stmt
below (from remote_internal.c) applies sizeof to the wrong type:
static int remoteAuthMakeCredentials(sasl_interact_t *interact,
virConnectCredentialPtr *cred)
{
int ninteract;
if (!cred)
return -1;
for (ninteract = 0 ; interact[ninteract].id != 0 ; ninteract++)
; /* empty */
*cred = calloc(ninteract, sizeof(virConnectCredential));
if (!*cred)
------------------------
We're lucky virConnectCredential is not smaller than sizeof void*.
If it had been, this would have been a real bug, rather than just an
over-allocation.
I've also removed all casts of malloc, realloc, calloc return values
on the touched lines, since they are universally unnecessary.
-----------------------
Subject: [PATCH] Use a variable name as sizeof argument, not a type name.
Given code like: T *var = calloc (n, sizeof (T));
Convert to this: T *var = calloc (n, sizeof (*var));
This first-cut change adjusts all malloc, calloc, and
realloc statements.
The only binary differences are in remote_internal.c
(due to the bug fix) and in xmlrpc.c (due to factorization).
* python/libvir.c: As above.
* qemud/event.c: Likewise.
* qemud/mdns.c: Likewise.
* qemud/qemud.c: Likewise.
* qemud/remote.c: Likewise.
* src/bridge.c: Likewise.
* src/buf.c: Likewise.
* src/conf.c: Likewise.
* src/hash.c: Likewise.
* src/iptables.c: Likewise.
* src/openvz_conf.c: Likewise.
* src/qemu_conf.c: Likewise.
* src/qemu_driver.c: Likewise.
* src/test.c: Likewise.
* src/xen_internal.c: Likewise.
* src/xen_unified.c: Likewise.
* src/xm_internal.c: Likewise.
* src/xml.c: Likewise.
* tests/qemuxml2argvtest.c: Likewise.
* src/xmlrpc.c (xmlRpcValuePtr): Likewise, and minor factorization.
* src/remote_internal.c (remoteAuthMakeCredentials): Use the right
type when allocating space for an array of cred _pointers_.
Signed-off-by: Jim Meyering <meyering(a)redhat.com>
---
ChangeLog | 25 +++++++++++++++++++++++++
python/libvir.c | 12 ++++++------
qemud/event.c | 2 +-
qemud/mdns.c | 12 ++++++------
qemud/qemud.c | 6 +++---
qemud/remote.c | 24 ++++++++++++------------
src/bridge.c | 6 +++---
src/buf.c | 2 +-
src/conf.c | 8 ++++----
src/hash.c | 16 ++++++++--------
src/iptables.c | 10 +++++-----
src/openvz_conf.c | 12 ++++++------
src/qemu_conf.c | 24 ++++++++++++------------
src/qemu_driver.c | 4 ++--
src/remote_internal.c | 14 +++++++-------
src/test.c | 4 ++--
src/xen_internal.c | 22 +++++++++++-----------
src/xen_unified.c | 4 ++--
src/xm_internal.c | 30 +++++++++++++++---------------
src/xml.c | 10 +++++-----
src/xmlrpc.c | 10 ++++++----
tests/qemuxml2argvtest.c | 2 +-
22 files changed, 143 insertions(+), 116 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index efc765b..8a6526c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,28 @@
+2007-12-11 Jim Meyering <meyering(a)redhat.com>
+
+ Change RHS of T *V = *alloc (sizeof (T) to *alloc (sizeof *V)
+ * python/libvir.c:
+ * qemud/event.c:
+ * qemud/mdns.c:
+ * qemud/qemud.c:
+ * qemud/remote.c:
+ * src/bridge.c:
+ * src/buf.c:
+ * src/conf.c:
+ * src/hash.c:
+ * src/iptables.c:
+ * src/openvz_conf.c:
+ * src/qemu_conf.c:
+ * src/qemu_driver.c:
+ * src/remote_internal.c:
+ * src/test.c:
+ * src/xen_internal.c:
+ * src/xen_unified.c:
+ * src/xm_internal.c:
+ * src/xml.c:
+ * src/xmlrpc.c:
+ * tests/qemuxml2argvtest.c:
+
Mon Dec 10 19:25:22 CET 2007 Jim Meyering <meyering(a)redhat.com>
Add gnulib-tool unit tests.
diff --git a/python/libvir.c b/python/libvir.c
index 0edec41..3b41dc1 100644
--- a/python/libvir.c
+++ b/python/libvir.c
@@ -347,7 +347,7 @@ libvirt_virConnectOpenAuth(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
auth.ncredtype = PyList_Size(pycredtype);
if (auth.ncredtype) {
int i;
- auth.credtype = malloc(sizeof(int) * auth.ncredtype);
+ auth.credtype = malloc(sizeof(*auth.credtype) * auth.ncredtype);
if (auth.credtype == NULL) {
Py_INCREF(Py_None);
return (Py_None);
@@ -490,7 +490,7 @@ libvirt_virConnectListDefinedDomains(PyObject *self ATTRIBUTE_UNUSED,
}
if (c_retval) {
- names = malloc(sizeof(char *) * c_retval);
+ names = malloc(sizeof(*names) * c_retval);
if (!names) {
Py_INCREF(Py_None);
return (Py_None);
@@ -670,7 +670,7 @@ libvirt_virConnectListNetworks(PyObject *self ATTRIBUTE_UNUSED,
}
if (c_retval) {
- names = malloc(sizeof(char *) * c_retval);
+ names = malloc(sizeof(*names) * c_retval);
if (!names) {
Py_INCREF(Py_None);
return (Py_None);
@@ -717,7 +717,7 @@ libvirt_virConnectListDefinedNetworks(PyObject *self ATTRIBUTE_UNUSED,
}
if (c_retval) {
- names = malloc(sizeof(char *) * c_retval);
+ names = malloc(sizeof(*names) * c_retval);
if (!names) {
Py_INCREF(Py_None);
return (Py_None);
@@ -863,8 +863,8 @@ PyObject * libvirt_virNodeGetCellsFreeMemory(PyObject *self ATTRIBUTE_UNUSED,
goto error;
conn = (virConnectPtr) PyvirConnect_Get(pyobj_conn);
- freeMems = (unsigned long long *)
- malloc(maxCells * sizeof(unsigned long long));
+ freeMems =
+ malloc(maxCells * sizeof(*freeMems));
if (freeMems == NULL)
goto error;
diff --git a/qemud/event.c b/qemud/event.c
index 1faeaf1..b7d75a0 100644
--- a/qemud/event.c
+++ b/qemud/event.c
@@ -281,7 +281,7 @@ static int virEventMakePollFDs(struct pollfd **retfds) {
}
*retfds = NULL;
/* Setup the poll file handle data structs */
- if (!(fds = malloc(sizeof(struct pollfd) * nfds)))
+ if (!(fds = malloc(sizeof(*fds) * nfds)))
return -1;
for (i = 0, nfds = 0 ; i < eventLoop.handlesCount ; i++) {
diff --git a/qemud/mdns.c b/qemud/mdns.c
index bd1f548..1585b5b 100644
--- a/qemud/mdns.c
+++ b/qemud/mdns.c
@@ -239,7 +239,7 @@ static void libvirtd_mdns_watch_dispatch(int fd, int events, void *opaque)
static AvahiWatch *libvirtd_mdns_watch_new(const AvahiPoll *api ATTRIBUTE_UNUSED,
int fd, AvahiWatchEvent event, AvahiWatchCallback cb, void *userdata) {
- AvahiWatch *w = malloc(sizeof(AvahiWatch));
+ AvahiWatch *w = malloc(sizeof(*w));
if (!w)
return NULL;
@@ -289,7 +289,7 @@ static AvahiTimeout *libvirtd_mdns_timeout_new(const AvahiPoll *api ATTRIBUTE_UN
AvahiTimeoutCallback cb,
void *userdata)
{
- AvahiTimeout *t = malloc(sizeof(AvahiTimeout));
+ AvahiTimeout *t = malloc(sizeof(*t));
struct timeval now;
long long nowms, thenms, timeout;
AVAHI_DEBUG("Add timeout %p TV %p", t, tv);
@@ -359,7 +359,7 @@ static void libvirtd_mdns_timeout_free(AvahiTimeout *t)
static AvahiPoll *libvirtd_create_poll(void)
{
- AvahiPoll *p = malloc(sizeof(AvahiPoll));
+ AvahiPoll *p = malloc(sizeof(*p));
if (!p)
return NULL;
@@ -379,7 +379,7 @@ static AvahiPoll *libvirtd_create_poll(void)
struct libvirtd_mdns *libvirtd_mdns_new(void)
{
- struct libvirtd_mdns *mdns = malloc(sizeof(struct libvirtd_mdns));
+ struct libvirtd_mdns *mdns = malloc(sizeof(*mdns));
if (!mdns)
return NULL;
memset(mdns, 0, sizeof(*mdns));
@@ -408,7 +408,7 @@ int libvirtd_mdns_start(struct libvirtd_mdns *mdns)
}
struct libvirtd_mdns_group *libvirtd_mdns_add_group(struct libvirtd_mdns *mdns, const char *name) {
- struct libvirtd_mdns_group *group = malloc(sizeof(struct libvirtd_mdns_group));
+ struct libvirtd_mdns_group *group = malloc(sizeof(*group));
AVAHI_DEBUG("Adding group '%s'", name);
if (!group)
@@ -444,7 +444,7 @@ void libvirtd_mdns_remove_group(struct libvirtd_mdns *mdns, struct libvirtd_mdns
}
struct libvirtd_mdns_entry *libvirtd_mdns_add_entry(struct libvirtd_mdns_group *group, const char *type, int port) {
- struct libvirtd_mdns_entry *entry = malloc(sizeof(struct libvirtd_mdns_entry));
+ struct libvirtd_mdns_entry *entry = malloc(sizeof(*entry));
AVAHI_DEBUG("Adding entry %s %d to group %s", type, port, group->name);
if (!entry)
diff --git a/qemud/qemud.c b/qemud/qemud.c
index 9794c03..5360cf8 100644
--- a/qemud/qemud.c
+++ b/qemud/qemud.c
@@ -460,7 +460,7 @@ static int qemudWritePidFile(const char *pidFile) {
static int qemudListenUnix(struct qemud_server *server,
const char *path, int readonly, int auth) {
- struct qemud_socket *sock = calloc(1, sizeof(struct qemud_socket));
+ struct qemud_socket *sock = calloc(1, sizeof(*sock));
struct sockaddr_un addr;
mode_t oldmask;
gid_t oldgrp;
@@ -703,7 +703,7 @@ static int qemudInitPaths(struct qemud_server *server,
static struct qemud_server *qemudInitialize(int sigread) {
struct qemud_server *server;
- if (!(server = calloc(1, sizeof(struct qemud_server)))) {
+ if (!(server = calloc(1, sizeof(*server)))) {
qemudLog(QEMUD_ERR, "Failed to allocate struct qemud_server");
return NULL;
}
@@ -1043,7 +1043,7 @@ static int qemudDispatchServer(struct qemud_server *server, struct qemud_socket
return -1;
}
- client = calloc(1, sizeof(struct qemud_client));
+ client = calloc(1, sizeof(*client));
if (client == NULL)
goto cleanup;
client->magic = QEMUD_CLIENT_MAGIC;
diff --git a/qemud/remote.c b/qemud/remote.c
index 8c07b95..b5b0ef6 100644
--- a/qemud/remote.c
+++ b/qemud/remote.c
@@ -639,7 +639,7 @@ remoteDispatchDomainGetSchedulerParameters (struct qemud_server *server ATTRIBUT
remoteDispatchError (client, req, "nparams too large");
return -2;
}
- params = malloc (sizeof (virSchedParameter) * nparams);
+ params = malloc (sizeof (*params) * nparams);
if (params == NULL) {
remoteDispatchError (client, req, "out of memory allocating array");
return -2;
@@ -661,7 +661,7 @@ remoteDispatchDomainGetSchedulerParameters (struct qemud_server *server ATTRIBUT
/* Serialise the scheduler parameters. */
ret->params.params_len = nparams;
- ret->params.params_val = malloc (sizeof (struct remote_sched_param)
+ ret->params.params_val = malloc (sizeof (*(ret->params.params_val))
* nparams);
if (ret->params.params_val == NULL) {
virDomainFree(dom);
@@ -726,7 +726,7 @@ remoteDispatchDomainSetSchedulerParameters (struct qemud_server *server ATTRIBUT
remoteDispatchError (client, req, "nparams too large");
return -2;
}
- params = malloc (sizeof (virSchedParameter) * nparams);
+ params = malloc (sizeof (*params) * nparams);
if (params == NULL) {
remoteDispatchError (client, req, "out of memory allocating array");
return -2;
@@ -1158,8 +1158,8 @@ remoteDispatchDomainGetVcpus (struct qemud_server *server ATTRIBUTE_UNUSED,
}
/* Allocate buffers to take the results. */
- info = calloc (args->maxinfo, sizeof (virVcpuInfo));
- cpumaps = calloc (args->maxinfo * args->maplen, sizeof (unsigned char));
+ info = calloc (args->maxinfo, sizeof (*info));
+ cpumaps = calloc (args->maxinfo * args->maplen, sizeof (*cpumaps));
info_len = virDomainGetVcpus (dom,
info, args->maxinfo,
@@ -1171,7 +1171,7 @@ remoteDispatchDomainGetVcpus (struct qemud_server *server ATTRIBUTE_UNUSED,
/* Allocate the return buffer for info. */
ret->info.info_len = info_len;
- ret->info.info_val = calloc (info_len, sizeof (remote_vcpu_info));
+ ret->info.info_val = calloc (info_len, sizeof (*(ret->info.info_val)));
for (i = 0; i < info_len; ++i) {
ret->info.info_val[i].number = info[i].number;
@@ -1210,7 +1210,7 @@ remoteDispatchDomainMigratePrepare (struct qemud_server *server ATTRIBUTE_UNUSED
dname = args->dname == NULL ? NULL : *args->dname;
/* Wacky world of XDR ... */
- uri_out = calloc (1, sizeof (char *));
+ uri_out = calloc (1, sizeof (*uri_out));
r = __virDomainMigratePrepare (client->conn, &cookie, &cookielen,
uri_in, uri_out,
@@ -1295,7 +1295,7 @@ remoteDispatchListDefinedDomains (struct qemud_server *server ATTRIBUTE_UNUSED,
}
/* Allocate return buffer. */
- ret->names.names_val = calloc (args->maxnames, sizeof (char *));
+ ret->names.names_val = calloc (args->maxnames, sizeof (*(ret->names.names_val)));
ret->names.names_len =
virConnectListDefinedDomains (client->conn,
@@ -1703,7 +1703,7 @@ remoteDispatchListDefinedNetworks (struct qemud_server *server ATTRIBUTE_UNUSED,
}
/* Allocate return buffer. */
- ret->names.names_val = calloc (args->maxnames, sizeof (char *));
+ ret->names.names_val = calloc (args->maxnames, sizeof (*(ret->names.names_val)));
ret->names.names_len =
virConnectListDefinedNetworks (client->conn,
@@ -1729,7 +1729,7 @@ remoteDispatchListDomains (struct qemud_server *server ATTRIBUTE_UNUSED,
}
/* Allocate return buffer. */
- ret->ids.ids_val = calloc (args->maxids, sizeof (int));
+ ret->ids.ids_val = calloc (args->maxids, sizeof (*(ret->ids.ids_val)));
ret->ids.ids_len = virConnectListDomains (client->conn,
ret->ids.ids_val, args->maxids);
@@ -1754,7 +1754,7 @@ remoteDispatchListNetworks (struct qemud_server *server ATTRIBUTE_UNUSED,
}
/* Allocate return buffer. */
- ret->names.names_val = calloc (args->maxnames, sizeof (char *));
+ ret->names.names_val = calloc (args->maxnames, sizeof (*(ret->names.names_val)));
ret->names.names_len =
virConnectListNetworks (client->conn,
@@ -2062,7 +2062,7 @@ remoteDispatchAuthList (struct qemud_server *server ATTRIBUTE_UNUSED,
remote_auth_list_ret *ret)
{
ret->types.types_len = 1;
- if ((ret->types.types_val = calloc (ret->types.types_len, sizeof (remote_auth_type))) == NULL) {
+ if ((ret->types.types_val = calloc (ret->types.types_len, sizeof (*(ret->types.types_val)))) == NULL) {
remoteDispatchSendError(client, req, VIR_ERR_NO_MEMORY, "auth types");
return -2;
}
diff --git a/src/bridge.c b/src/bridge.c
index 5badc21..caa6ebf 100644
--- a/src/bridge.c
+++ b/src/bridge.c
@@ -83,7 +83,7 @@ brInit(brControl **ctlp)
return err;
}
- *ctlp = (brControl *)malloc(sizeof(struct _brControl));
+ *ctlp = malloc(sizeof(**ctlp));
if (!*ctlp) {
close(fd);
return ENOMEM;
@@ -680,7 +680,7 @@ brSetForwardDelay(brControl *ctl ATTRIBUTE_UNUSED,
snprintf(delayStr, sizeof(delayStr), "%d", delay);
- if (!(argv = (char **)calloc(n + 1, sizeof(char *))))
+ if (!(argv = calloc(n + 1, sizeof(*argv))))
goto error;
n = 0;
@@ -737,7 +737,7 @@ brSetEnableSTP(brControl *ctl ATTRIBUTE_UNUSED,
1 + /* brige name */
1; /* value */
- if (!(argv = (char **)calloc(n + 1, sizeof(char *))))
+ if (!(argv = calloc(n + 1, sizeof(*argv))))
goto error;
n = 0;
diff --git a/src/buf.c b/src/buf.c
index 5b7f15d..0229be9 100644
--- a/src/buf.c
+++ b/src/buf.c
@@ -40,7 +40,7 @@ virBufferGrow(virBufferPtr buf, unsigned int len)
size = buf->use + len + 1000;
- newbuf = (char *) realloc(buf->content, size);
+ newbuf = realloc(buf->content, size);
if (newbuf == NULL) return -1;
buf->content = newbuf;
buf->size = size;
diff --git a/src/conf.c b/src/conf.c
index 4c725bf..8190de1 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -152,7 +152,7 @@ __virConfNew(void)
{
virConfPtr ret;
- ret = (virConfPtr) calloc(1, sizeof(virConf));
+ ret = calloc(1, sizeof(*ret));
if (ret == NULL) {
virConfError(NULL, VIR_ERR_NO_MEMORY, _("allocating configuration"), 0);
return(NULL);
@@ -201,7 +201,7 @@ virConfAddEntry(virConfPtr conf, char *name, virConfValuePtr value, char *comm)
if ((comm == NULL) && (name == NULL))
return(NULL);
- ret = (virConfEntryPtr) calloc(1, sizeof(virConfEntry));
+ ret = calloc(1, sizeof(*ret));
if (ret == NULL) {
virConfError(NULL, VIR_ERR_NO_MEMORY, _("allocating configuration"), 0);
return(NULL);
@@ -486,7 +486,7 @@ virConfParseValue(virConfParserCtxtPtr ctxt)
ctxt->line);
return(NULL);
}
- ret = (virConfValuePtr) calloc(1, sizeof(virConfValue));
+ ret = calloc(1, sizeof(*ret));
if (ret == NULL) {
virConfError(NULL, VIR_ERR_NO_MEMORY, _("allocating configuration"), 0);
if (str != NULL)
@@ -837,7 +837,7 @@ __virConfSetValue (virConfPtr conf,
}
if (!cur) {
- if (!(cur = malloc(sizeof(virConfEntry)))) {
+ if (!(cur = malloc(sizeof(*cur)))) {
virConfFreeValue(value);
return (-1);
}
diff --git a/src/hash.c b/src/hash.c
index b7962d9..8f322f1 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -87,11 +87,11 @@ virHashCreate(int size)
if (size <= 0)
size = 256;
- table = malloc(sizeof(virHashTable));
+ table = malloc(sizeof(*table));
if (table) {
table->size = size;
table->nbElems = 0;
- table->table = calloc(1, size * sizeof(virHashEntry));
+ table->table = calloc(1, size * sizeof(*(table->table)));
if (table->table) {
return (table);
}
@@ -133,7 +133,7 @@ virHashGrow(virHashTablePtr table, int size)
if (oldtable == NULL)
return (-1);
- table->table = calloc(1, size * sizeof(virHashEntry));
+ table->table = calloc(1, size * sizeof(*(table->table)));
if (table->table == NULL) {
table->table = oldtable;
return (-1);
@@ -279,7 +279,7 @@ virHashAddEntry(virHashTablePtr table, const char *name, void *userdata)
if (insert == NULL) {
entry = &(table->table[key]);
} else {
- entry = malloc(sizeof(virHashEntry));
+ entry = malloc(sizeof(*entry));
if (entry == NULL)
return (-1);
}
@@ -352,7 +352,7 @@ virHashUpdateEntry(virHashTablePtr table, const char *name,
if (insert == NULL) {
entry = &(table->table[key]);
} else {
- entry = malloc(sizeof(virHashEntry));
+ entry = malloc(sizeof(*entry));
if (entry == NULL)
return (-1);
}
@@ -661,7 +661,7 @@ virConnectPtr
virGetConnect(void) {
virConnectPtr ret;
- ret = (virConnectPtr) calloc(1, sizeof(virConnect));
+ ret = calloc(1, sizeof(*ret));
if (ret == NULL) {
virHashError(NULL, VIR_ERR_NO_MEMORY, _("allocating connection"));
goto failed;
@@ -768,7 +768,7 @@ __virGetDomain(virConnectPtr conn, const char *name, const unsigned char *uuid)
/*
* not found, allocate a new one
*/
- ret = (virDomainPtr) calloc(1, sizeof(virDomain));
+ ret = calloc(1, sizeof(*ret));
if (ret == NULL) {
virHashError(conn, VIR_ERR_NO_MEMORY, _("allocating domain"));
goto error;
@@ -901,7 +901,7 @@ __virGetNetwork(virConnectPtr conn, const char *name, const unsigned char *uuid)
/*
* not found, allocate a new one
*/
- ret = (virNetworkPtr) calloc(1, sizeof(virNetwork));
+ ret = calloc(1, sizeof(*ret));
if (ret == NULL) {
virHashError(conn, VIR_ERR_NO_MEMORY, _("allocating network"));
goto error;
diff --git a/src/iptables.c b/src/iptables.c
index ee92796..26794d2 100644
--- a/src/iptables.c
+++ b/src/iptables.c
@@ -215,7 +215,7 @@ iptRulesAppend(iptRules *rules,
{
iptRule *r;
- if (!(r = (iptRule *)realloc(rules->rules, sizeof(iptRule) * (rules->nrules+1)))) {
+ if (!(r = realloc(rules->rules, sizeof(*r) * (rules->nrules+1)))) {
int i = 0;
while (argv[i])
free(argv[i++]);
@@ -319,7 +319,7 @@ iptRulesNew(const char *table,
{
iptRules *rules;
- if (!(rules = (iptRules *)calloc(1, sizeof (iptRules))))
+ if (!(rules = calloc(1, sizeof (*rules))))
return NULL;
if (!(rules->table = strdup(table)))
@@ -400,7 +400,7 @@ iptablesAddRemoveChain(iptRules *rules, int action)
2 + /* --table foo */
2; /* --new-chain bar */
- if (!(argv = (char **)calloc(n + 1, sizeof(char *))))
+ if (!(argv = calloc(n + 1, sizeof(*argv))))
goto error;
n = 0;
@@ -458,7 +458,7 @@ iptablesAddRemoveRule(iptRules *rules, int action, const char *arg, ...)
va_end(args);
- if (!(argv = (char **)calloc(n + 1, sizeof(char *))))
+ if (!(argv = calloc(n + 1, sizeof(*argv))))
goto error;
if (!(rule = (char *)malloc(rulelen)))
@@ -549,7 +549,7 @@ iptablesContextNew(void)
{
iptablesContext *ctx;
- if (!(ctx = (iptablesContext *) calloc(1, sizeof (iptablesContext))))
+ if (!(ctx = calloc(1, sizeof (*ctx))))
return NULL;
if (!(ctx->input_filter = iptRulesNew("filter", IPTABLES_PREFIX "INPUT")))
diff --git a/src/openvz_conf.c b/src/openvz_conf.c
index 0502a1d..a886001 100644
--- a/src/openvz_conf.c
+++ b/src/openvz_conf.c
@@ -246,7 +246,7 @@ openvzAssignVMDef(virConnectPtr conn,
return vm;
}
- if (!(vm = calloc(1, sizeof(struct openvz_vm)))) {
+ if (!(vm = calloc(1, sizeof(*vm)))) {
openvzFreeVMDef(def);
error(conn, VIR_ERR_NO_MEMORY, "vm");
return NULL;
@@ -298,7 +298,7 @@ static struct openvz_vm_def
struct ovz_ip *ovzIp;
struct ovz_ns *ovzNs;
- if (!(def = calloc(1, sizeof(struct openvz_vm_def)))) {
+ if (!(def = calloc(1, sizeof(*def)))) {
error(conn, VIR_ERR_NO_MEMORY, "xmlXPathContext");
return NULL;
}
@@ -393,7 +393,7 @@ static struct openvz_vm_def
error(conn, VIR_ERR_INTERNAL_ERROR, errorMessage);
goto bail_out;
}
- if (!(ovzIp = calloc(1, sizeof(struct ovz_ip)))) {
+ if (!(ovzIp = calloc(1, sizeof(*ovzIp)))) {
openvzLog(OPENVZ_ERR, "Failed to Create Memory for 'ovz_ip' structure");
goto bail_out;
}
@@ -465,7 +465,7 @@ static struct openvz_vm_def
error(conn, VIR_ERR_INTERNAL_ERROR, errorMessage);
goto bail_out;
}
- if (!(ovzNs = calloc(1, sizeof(struct ovz_ns)))) {
+ if (!(ovzNs = calloc(1, sizeof(*ovzNs)))) {
openvzLog(OPENVZ_ERR, "Failed to Create Memory for 'ovz_ns' structure");
goto bail_out;
}
@@ -527,7 +527,7 @@ openvzGetVPSInfo(virConnectPtr conn) {
}
pnext = &vm;
while(!feof(fp)) {
- *pnext = calloc(1, sizeof(struct openvz_vm));
+ *pnext = calloc(1, sizeof(**pnext));
if(!*pnext) {
error(conn, VIR_ERR_INTERNAL_ERROR, "calloc failed");
goto error;
@@ -557,7 +557,7 @@ openvzGetVPSInfo(virConnectPtr conn) {
(*pnext)->vpsid = -1;
}
- vmdef = calloc(1, sizeof(struct openvz_vm_def));
+ vmdef = calloc(1, sizeof(*vmdef));
if(!vmdef) {
error(conn, VIR_ERR_INTERNAL_ERROR, "calloc failed");
free(*pnext);
diff --git a/src/qemu_conf.c b/src/qemu_conf.c
index 2d003af..2b87c88 100644
--- a/src/qemu_conf.c
+++ b/src/qemu_conf.c
@@ -918,7 +918,7 @@ static struct qemud_vm_def *qemudParseXML(virConnectPtr conn,
int i;
struct qemud_vm_def *def;
- if (!(def = calloc(1, sizeof(struct qemud_vm_def)))) {
+ if (!(def = calloc(1, sizeof(*def)))) {
qemudReportError(conn, NULL, NULL, VIR_ERR_NO_MEMORY, "xmlXPathContext");
return NULL;
}
@@ -1264,7 +1264,7 @@ static struct qemud_vm_def *qemudParseXML(virConnectPtr conn,
(obj->nodesetval != NULL) && (obj->nodesetval->nodeNr >= 0)) {
struct qemud_vm_disk_def *prev = NULL;
for (i = 0; i < obj->nodesetval->nodeNr; i++) {
- struct qemud_vm_disk_def *disk = calloc(1, sizeof(struct qemud_vm_disk_def));
+ struct qemud_vm_disk_def *disk = calloc(1, sizeof(*disk));
if (!disk) {
qemudReportError(conn, NULL, NULL, VIR_ERR_NO_MEMORY, "disk");
goto error;
@@ -1292,7 +1292,7 @@ static struct qemud_vm_def *qemudParseXML(virConnectPtr conn,
(obj->nodesetval != NULL) && (obj->nodesetval->nodeNr >= 0)) {
struct qemud_vm_net_def *prev = NULL;
for (i = 0; i < obj->nodesetval->nodeNr; i++) {
- struct qemud_vm_net_def *net = calloc(1, sizeof(struct qemud_vm_net_def));
+ struct qemud_vm_net_def *net = calloc(1, sizeof(*net));
if (!net) {
qemudReportError(conn, NULL, NULL, VIR_ERR_NO_MEMORY, "net");
goto error;
@@ -1319,7 +1319,7 @@ static struct qemud_vm_def *qemudParseXML(virConnectPtr conn,
(obj->nodesetval != NULL) && (obj->nodesetval->nodeNr >= 0)) {
struct qemud_vm_input_def *prev = NULL;
for (i = 0; i < obj->nodesetval->nodeNr; i++) {
- struct qemud_vm_input_def *input = calloc(1, sizeof(struct qemud_vm_input_def));
+ struct qemud_vm_input_def *input = calloc(1, sizeof(*input));
if (!input) {
qemudReportError(conn, NULL, NULL, VIR_ERR_NO_MEMORY, "input");
goto error;
@@ -1359,7 +1359,7 @@ static struct qemud_vm_def *qemudParseXML(virConnectPtr conn,
}
if (!hasPS2mouse) {
- input = calloc(1, sizeof(struct qemud_vm_input_def));
+ input = calloc(1, sizeof(*input));
if (!input) {
qemudReportError(conn, NULL, NULL, VIR_ERR_NO_MEMORY, "input");
goto error;
@@ -1454,7 +1454,7 @@ qemudNetworkIfaceConnect(virConnectPtr conn,
if (!(retval = strdup(tapfdstr)))
goto no_memory;
- if (!(tapfds = realloc(vm->tapfds, sizeof(int) * (vm->ntapfds+2))))
+ if (!(tapfds = realloc(vm->tapfds, sizeof(*tapfds) * (vm->ntapfds+2))))
goto no_memory;
vm->tapfds = tapfds;
@@ -1554,7 +1554,7 @@ int qemudBuildCommandLine(virConnectPtr conn,
snprintf(memory, sizeof(memory), "%d", vm->def->memory/1024);
snprintf(vcpus, sizeof(vcpus), "%d", vm->def->vcpus);
- if (!(*argv = malloc(sizeof(char *) * (len+1))))
+ if (!(*argv = malloc(sizeof(**argv) * (len+1))))
goto no_memory;
if (!((*argv)[++n] = strdup(vm->def->os.binary)))
goto no_memory;
@@ -1899,7 +1899,7 @@ qemudParseVMDeviceDef(virConnectPtr conn,
{
xmlDocPtr xml;
xmlNodePtr node;
- struct qemud_vm_device_def *dev = calloc(1, sizeof(struct qemud_vm_device_def));
+ struct qemud_vm_device_def *dev = calloc(1, sizeof(*dev));
if (!(xml = xmlReadDoc(BAD_CAST xmlStr, "device.xml", NULL,
XML_PARSE_NOENT | XML_PARSE_NONET |
@@ -1981,7 +1981,7 @@ qemudAssignVMDef(virConnectPtr conn,
return vm;
}
- if (!(vm = calloc(1, sizeof(struct qemud_vm)))) {
+ if (!(vm = calloc(1, sizeof(*vm)))) {
qemudReportError(conn, NULL, NULL, VIR_ERR_NO_MEMORY, "vm");
return NULL;
}
@@ -2180,7 +2180,7 @@ static int qemudParseDhcpRangesXML(virConnectPtr conn,
continue;
}
- if (!(range = calloc(1, sizeof(struct qemud_dhcp_range_def)))) {
+ if (!(range = calloc(1, sizeof(*range)))) {
qemudReportError(conn, NULL, NULL, VIR_ERR_NO_MEMORY, "range");
return 0;
}
@@ -2272,7 +2272,7 @@ static struct qemud_network_def *qemudParseNetworkXML(virConnectPtr conn,
xmlXPathObjectPtr obj = NULL, tmp = NULL;
struct qemud_network_def *def;
- if (!(def = calloc(1, sizeof(struct qemud_network_def)))) {
+ if (!(def = calloc(1, sizeof(*def)))) {
qemudReportError(conn, NULL, NULL, VIR_ERR_NO_MEMORY, "network_def");
return NULL;
}
@@ -2433,7 +2433,7 @@ qemudAssignNetworkDef(virConnectPtr conn,
return network;
}
- if (!(network = calloc(1, sizeof(struct qemud_network)))) {
+ if (!(network = calloc(1, sizeof(*network)))) {
qemudReportError(conn, NULL, NULL, VIR_ERR_NO_MEMORY, "network");
return NULL;
}
diff --git a/src/qemu_driver.c b/src/qemu_driver.c
index 8c3e0af..f792eba 100644
--- a/src/qemu_driver.c
+++ b/src/qemu_driver.c
@@ -158,7 +158,7 @@ qemudStartup(void) {
char *base = NULL;
char driverConf[PATH_MAX];
- if (!(qemu_driver = calloc(1, sizeof(struct qemud_driver)))) {
+ if (!(qemu_driver = calloc(1, sizeof(*qemu_driver)))) {
return -1;
}
@@ -838,7 +838,7 @@ qemudBuildDnsmasqArgv(virConnectPtr conn,
(2 * network->def->nranges) + /* --dhcp-range 10.0.0.2,10.0.0.254 */
1; /* NULL */
- if (!(*argv = calloc(len, sizeof(char *))))
+ if (!(*argv = calloc(len, sizeof(**argv))))
goto no_memory;
#define APPEND_ARG(v, n, s) do { \
diff --git a/src/remote_internal.c b/src/remote_internal.c
index 8174ba5..b6513fb 100644
--- a/src/remote_internal.c
+++ b/src/remote_internal.c
@@ -661,7 +661,7 @@ doRemoteOpen (virConnectPtr conn,
// Generate the final command argv[] array.
// ssh -p $port [-l $username] $hostname $netcat -U $sockname [NULL]
- cmd_argv = malloc (nr_args * sizeof (char *));
+ cmd_argv = malloc (nr_args * sizeof (*cmd_argv));
if (cmd_argv == NULL) {
error (conn, VIR_ERR_SYSTEM_ERROR, strerror (errno));
goto failed;
@@ -724,7 +724,7 @@ doRemoteOpen (virConnectPtr conn,
// Run the external process.
if (!cmd_argv) {
- cmd_argv = malloc (2 * sizeof (char *));
+ cmd_argv = malloc (2 * sizeof (*cmd_argv));
if (cmd_argv == NULL) {
error (conn, VIR_ERR_SYSTEM_ERROR, strerror (errno));
goto failed;
@@ -833,7 +833,7 @@ remoteOpen (virConnectPtr conn,
if (inside_daemon)
return VIR_DRV_OPEN_DECLINED;
- priv = malloc (sizeof(struct private_data));
+ priv = malloc (sizeof(*priv));
if (!priv) {
error (conn, VIR_ERR_NO_MEMORY, "struct private_data");
return VIR_DRV_OPEN_ERROR;
@@ -2381,7 +2381,7 @@ remoteDomainSetSchedulerParameters (virDomainPtr domain,
/* Serialise the scheduler parameters. */
args.params.params_len = nparams;
- args.params.params_val = malloc (sizeof (struct remote_sched_param)
+ args.params.params_val = malloc (sizeof (*args.params.params_val)
* nparams);
if (args.params.params_val == NULL) {
error (domain->conn, VIR_ERR_RPC, "out of memory allocating array");
@@ -2513,7 +2513,7 @@ remoteNetworkOpen (virConnectPtr conn,
* use the UNIX transport. This handles Xen driver
* which doesn't have its own impl of the network APIs.
*/
- struct private_data *priv = malloc (sizeof(struct private_data));
+ struct private_data *priv = malloc (sizeof(*priv));
int ret, rflags = 0;
if (!priv) {
error (conn, VIR_ERR_NO_MEMORY, "struct private_data");
@@ -3088,7 +3088,7 @@ static int remoteAuthCredSASL2Vir(int vircred)
*/
static sasl_callback_t *remoteAuthMakeCallbacks(int *credtype, int ncredtype)
{
- sasl_callback_t *cbs = calloc(ncredtype+1, sizeof (sasl_callback_t));
+ sasl_callback_t *cbs = calloc(ncredtype+1, sizeof (*cbs));
int i, n;
if (!cbs) {
return NULL;
@@ -3125,7 +3125,7 @@ static int remoteAuthMakeCredentials(sasl_interact_t *interact,
for (ninteract = 0 ; interact[ninteract].id != 0 ; ninteract++)
; /* empty */
- *cred = calloc(ninteract, sizeof(virConnectCredential));
+ *cred = calloc(ninteract, sizeof(*cred));
if (!*cred)
return -1;
diff --git a/src/test.c b/src/test.c
index 0e85f73..825707c 100644
--- a/src/test.c
+++ b/src/test.c
@@ -592,7 +592,7 @@ static int testLoadNetworkFromFile(virConnectPtr conn,
static int testOpenDefault(virConnectPtr conn) {
int u;
struct timeval tv;
- testConnPtr privconn = malloc(sizeof(testConn));
+ testConnPtr privconn = malloc(sizeof(*privconn));
if (!privconn) {
testError(conn, NULL, NULL, VIR_ERR_NO_MEMORY, "testConn");
return VIR_DRV_OPEN_ERROR;
@@ -678,7 +678,7 @@ static int testOpenFromFile(virConnectPtr conn,
xmlNodePtr *domains, *networks = NULL;
xmlXPathContextPtr ctxt = NULL;
virNodeInfoPtr nodeInfo;
- testConnPtr privconn = malloc(sizeof(testConn));
+ testConnPtr privconn = malloc(sizeof(*privconn));
if (!privconn) {
testError(NULL, NULL, NULL, VIR_ERR_NO_MEMORY, "testConn");
return VIR_DRV_OPEN_ERROR;
diff --git a/src/xen_internal.c b/src/xen_internal.c
index 58ac677..20cf408 100644
--- a/src/xen_internal.c
+++ b/src/xen_internal.c
@@ -1,7 +1,7 @@
/*
* xen_internal.c: direct access to Xen hypervisor level
*
- * Copyright (C) 2005, 2006 Red Hat, Inc.
+ * Copyright (C) 2005, 2006, 2007 Red Hat, Inc.
*
* See COPYING.LIB for the License of this software
*
@@ -220,10 +220,10 @@ typedef struct xen_v2s4_availheap xen_v2s4_availheap;
#define XEN_GETDOMAININFOLIST_ALLOC(domlist, size) \
(hypervisor_version < 2 ? \
- ((domlist.v0 = malloc(sizeof(xen_v0_getdomaininfo)*(size))) != NULL) : \
+ ((domlist.v0 = malloc(sizeof(*domlist.v0)*(size))) != NULL) : \
(dom_interface_version < 5 ? \
- ((domlist.v2 = malloc(sizeof(xen_v2_getdomaininfo)*(size))) != NULL) : \
- ((domlist.v2d5 = malloc(sizeof(xen_v2d5_getdomaininfo)*(size))) != NULL)))
+ ((domlist.v2 = malloc(sizeof(*domlist.v2)*(size))) != NULL) : \
+ ((domlist.v2d5 = malloc(sizeof(*domlist.v2d5)*(size))) != NULL)))
#define XEN_GETDOMAININFOLIST_FREE(domlist) \
(hypervisor_version < 2 ? \
@@ -232,12 +232,12 @@ typedef struct xen_v2s4_availheap xen_v2s4_availheap;
free(domlist.v2) : \
free(domlist.v2d5)))
-#define XEN_GETDOMAININFOLIST_CLEAR(domlist, size) \
- (hypervisor_version < 2 ? \
- memset(domlist.v0, 0, sizeof(xen_v0_getdomaininfo) * size) : \
- (dom_interface_version < 5 ? \
- memset(domlist.v2, 0, sizeof(xen_v2_getdomaininfo) * size) : \
- memset(domlist.v2d5, 0, sizeof(xen_v2d5_getdomaininfo) * size)))
+#define XEN_GETDOMAININFOLIST_CLEAR(domlist, size) \
+ (hypervisor_version < 2 ? \
+ memset(domlist.v0, 0, sizeof(*domlist.v0) * size) : \
+ (dom_interface_version < 5 ? \
+ memset(domlist.v2, 0, sizeof(*domlist.v2) * size) : \
+ memset(domlist.v2d5, 0, sizeof(*domlist.v2d5) * size)))
#define XEN_GETDOMAININFOLIST_DOMAIN(domlist, n) \
(hypervisor_version < 2 ? \
@@ -1964,7 +1964,7 @@ xenHypervisorInit(void)
*/
hypervisor_version = 2;
- ipt = malloc(sizeof(virVcpuInfo));
+ ipt = malloc(sizeof(*ipt));
if (ipt == NULL){
#ifdef DEBUG
fprintf(stderr, "Memory allocation failed at xenHypervisorInit()\n");
diff --git a/src/xen_unified.c b/src/xen_unified.c
index 520424c..99f99ce 100644
--- a/src/xen_unified.c
+++ b/src/xen_unified.c
@@ -168,10 +168,10 @@ xenDomainUsedCpus(virDomainPtr dom)
if (xenUnifiedNodeGetInfo(dom->conn, &nodeinfo) < 0)
return(NULL);
- cpulist = (char *) calloc(nb_cpu, sizeof(char));
+ cpulist = calloc(nb_cpu, sizeof(*cpulist));
if (cpulist == NULL)
goto done;
- cpuinfo = malloc(sizeof(virVcpuInfo) * nb_vcpu);
+ cpuinfo = malloc(sizeof(*cpuinfo) * nb_vcpu);
if (cpuinfo == NULL)
goto done;
cpumaplen = VIR_CPU_MAPLEN(VIR_NODEINFO_MAXCPUS(nodeinfo));
diff --git a/src/xm_internal.c b/src/xm_internal.c
index 07abbb1..7d9eccd 100644
--- a/src/xm_internal.c
+++ b/src/xm_internal.c
@@ -231,7 +231,7 @@ static int xenXMConfigEnsureIdentity(virConfPtr conf, const char *filename) {
/* Had better have a name...*/
if (xenXMConfigGetString(conf, "name", &name) < 0) {
virConfValuePtr value;
- value = malloc(sizeof(virConfValue));
+ value = malloc(sizeof(*value));
if (!value) {
return (-1);
}
@@ -252,7 +252,7 @@ static int xenXMConfigEnsureIdentity(virConfPtr conf, const char *filename) {
virConfValuePtr value;
char uuidstr[VIR_UUID_STRING_BUFLEN];
- value = malloc(sizeof(virConfValue));
+ value = malloc(sizeof(*value));
if (!value) {
return (-1);
}
@@ -401,7 +401,7 @@ static int xenXMConfigCacheRefresh (virConnectPtr conn) {
entry->conf = NULL;
} else { /* Completely new entry */
newborn = 1;
- if (!(entry = malloc(sizeof(xenXMConfCache)))) {
+ if (!(entry = malloc(sizeof(*entry)))) {
xenXMError (conn, VIR_ERR_NO_MEMORY, strerror (errno));
goto cleanup;
}
@@ -1081,7 +1081,7 @@ int xenXMDomainSetMemory(virDomainPtr domain, unsigned long memory) {
if (!(entry = virHashLookup(configCache, filename)))
return (-1);
- if (!(value = malloc(sizeof(virConfValue))))
+ if (!(value = malloc(sizeof(*value))))
return (-1);
value->type = VIR_CONF_LONG;
@@ -1123,7 +1123,7 @@ int xenXMDomainSetMaxMemory(virDomainPtr domain, unsigned long memory) {
if (!(entry = virHashLookup(configCache, filename)))
return (-1);
- if (!(value = malloc(sizeof(virConfValue))))
+ if (!(value = malloc(sizeof(*value))))
return (-1);
value->type = VIR_CONF_LONG;
@@ -1196,7 +1196,7 @@ int xenXMDomainSetVcpus(virDomainPtr domain, unsigned int vcpus) {
if (!(entry = virHashLookup(configCache, filename)))
return (-1);
- if (!(value = malloc(sizeof(virConfValue))))
+ if (!(value = malloc(sizeof(*value))))
return (-1);
value->type = VIR_CONF_LONG;
@@ -1481,7 +1481,7 @@ static
int xenXMConfigSetInt(virConfPtr conf, const char *setting, long l) {
virConfValuePtr value = NULL;
- if (!(value = malloc(sizeof(virConfValue))))
+ if (!(value = malloc(sizeof(*value))))
return -1;
value->type = VIR_CONF_LONG;
@@ -1496,7 +1496,7 @@ static
int xenXMConfigSetString(virConfPtr conf, const char *setting, const char *str) {
virConfValuePtr value = NULL;
- if (!(value = malloc(sizeof(virConfValue))))
+ if (!(value = malloc(sizeof(*value))))
return -1;
value->type = VIR_CONF_STRING;
@@ -2112,7 +2112,7 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
obj = xmlXPathEval(BAD_CAST "/domain/devices/graphics", ctxt);
if ((obj != NULL) && (obj->type == XPATH_NODESET) &&
(obj->nodesetval != NULL) && (obj->nodesetval->nodeNr >= 0)) {
- if (!(vfb = malloc(sizeof(virConfValue)))) {
+ if (!(vfb = malloc(sizeof(*vfb)))) {
xenXMError(conn, VIR_ERR_NO_MEMORY, "config");
goto error;
}
@@ -2177,7 +2177,7 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
xmlFree(type);
if (val) {
virConfValuePtr disp;
- if (!(disp = malloc(sizeof(virConfValue)))) {
+ if (!(disp = malloc(sizeof(*disp)))) {
free(val);
xenXMError(conn, VIR_ERR_NO_MEMORY, "config");
goto error;
@@ -2199,7 +2199,7 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
if ((obj != NULL) && (obj->type == XPATH_NODESET) &&
(obj->nodesetval != NULL) && (obj->nodesetval->nodeNr >= 0)) {
virConfValuePtr disks;
- if (!(disks = malloc(sizeof(virConfValue)))) {
+ if (!(disks = malloc(sizeof(*disks)))) {
xenXMError(conn, VIR_ERR_NO_MEMORY, "config");
goto error;
}
@@ -2211,7 +2211,7 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
if (xenXMParseXMLDisk(obj->nodesetval->nodeTab[i], hvm, priv->xendConfigVersion, &disk) < 0)
goto error;
if (disk) {
- if (!(thisDisk = malloc(sizeof(virConfValue)))) {
+ if (!(thisDisk = malloc(sizeof(*thisDisk)))) {
free(disk);
xenXMError(conn, VIR_ERR_NO_MEMORY, "config");
goto error;
@@ -2231,7 +2231,7 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
if ((obj != NULL) && (obj->type == XPATH_NODESET) &&
(obj->nodesetval != NULL) && (obj->nodesetval->nodeNr >= 0)) {
virConfValuePtr vifs;
- if (!(vifs = malloc(sizeof(virConfValue)))) {
+ if (!(vifs = malloc(sizeof(*vifs)))) {
xenXMError(conn, VIR_ERR_NO_MEMORY, "config");
goto error;
}
@@ -2242,7 +2242,7 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
char *vif = xenXMParseXMLVif(conn, obj->nodesetval->nodeTab[i], hvm);
if (!vif)
goto error;
- if (!(thisVif = malloc(sizeof(virConfValue)))) {
+ if (!(thisVif = malloc(sizeof(*thisVif)))) {
if (vif)
free(vif);
xenXMError(conn, VIR_ERR_NO_MEMORY, "config");
@@ -2377,7 +2377,7 @@ virDomainPtr xenXMDomainDefineXML(virConnectPtr conn, const char *xml) {
goto error;
}
- if (!(entry = calloc(1, sizeof(xenXMConfCache)))) {
+ if (!(entry = calloc(1, sizeof(*entry)))) {
xenXMError(conn, VIR_ERR_NO_MEMORY, "config");
goto error;
}
diff --git a/src/xml.c b/src/xml.c
index c75b0ce..c698889 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -322,7 +322,7 @@ virParseXenCpuTopology(virConnectPtr conn, virBufferPtr xml,
if ((str == NULL) || (xml == NULL) || (maxcpu <= 0) || (maxcpu > 100000))
return (-1);
- cpuset = malloc(maxcpu * sizeof(char));
+ cpuset = malloc(maxcpu * sizeof(*cpuset));
if (cpuset == NULL)
goto memory_error;
@@ -433,7 +433,7 @@ virConvertCpuSet(virConnectPtr conn, const char *str, int maxcpu) {
if (maxcpu <= 0)
maxcpu = 4096;
- cpuset = calloc(maxcpu, sizeof(char));
+ cpuset = calloc(maxcpu, sizeof(*cpuset));
if (cpuset == NULL) {
virXMLError(conn, VIR_ERR_NO_MEMORY, _("allocate buffer"), 0);
return(NULL);
@@ -676,11 +676,11 @@ virXPathNodeSet(const char *xpath, xmlXPathContextPtr ctxt,
ret = obj->nodesetval->nodeNr;
if (list != NULL) {
- *list = malloc(ret * sizeof(xmlNodePtr));
+ *list = malloc(ret * sizeof(**list));
if (*list == NULL) {
virXMLError(NULL, VIR_ERR_NO_MEMORY,
_("allocate string array"),
- ret * sizeof(xmlNodePtr));
+ ret * sizeof(**list));
} else {
memcpy(*list, obj->nodesetval->nodeTab,
ret * sizeof(xmlNodePtr));
@@ -1636,7 +1636,7 @@ virDomainParseXMLDesc(virConnectPtr conn, const char *xmldesc, char **name,
* it in a range format guaranteed to be understood by Xen.
*/
if (maxcpu > 0) {
- cpuset = malloc(maxcpu * sizeof(char));
+ cpuset = malloc(maxcpu * sizeof(*cpuset));
if (cpuset != NULL) {
res = virParseCpuSet(conn, &cur, 0, cpuset, maxcpu);
if (res > 0) {
diff --git a/src/xmlrpc.c b/src/xmlrpc.c
index d65a7a9..b433ef5 100644
--- a/src/xmlrpc.c
+++ b/src/xmlrpc.c
@@ -153,6 +153,7 @@ static xmlRpcValuePtr xmlRpcValueUnmarshalArray(xmlNodePtr node)
xmlRpcValuePtr ret = xmlRpcValueNew(XML_RPC_ARRAY);
xmlNodePtr cur;
int n_elements = 0;
+ xmlRpcValuePtr *elems;
if (!ret)
return NULL;
@@ -160,19 +161,20 @@ static xmlRpcValuePtr xmlRpcValueUnmarshalArray(xmlNodePtr node)
for (cur = xmlFirstElement(node); cur; cur = xmlNextElement(cur))
n_elements += 1;
- ret->value.array.elements = malloc(n_elements * sizeof(xmlRpcValue));
- if (!ret->value.array.elements) {
+ elems = malloc(n_elements * sizeof(*elems));
+ if (!elems) {
xmlRpcError(VIR_ERR_NO_MEMORY, _("allocate value array"),
- n_elements * sizeof(xmlRpcValue));
+ n_elements * sizeof(*elems));
free(ret);
return NULL;
}
n_elements = 0;
for (cur = xmlFirstElement(node); cur; cur = xmlNextElement(cur)) {
- ret->value.array.elements[n_elements] = xmlRpcValueUnmarshal(cur);
+ elems[n_elements] = xmlRpcValueUnmarshal(cur);
n_elements += 1;
}
+ ret->value.array.elements = elems;
ret->value.array.n_elements = n_elements;
return ret;
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
index 95b4679..d4e39b2 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -60,7 +60,7 @@ static int testCompareXMLToArgvFiles(const char *xml, const char *cmd) {
len += strlen(*tmp) + 1;
tmp++;
}
- actualargv = malloc(sizeof(char)*len);
+ actualargv = malloc(sizeof(*actualargv)*len);
actualargv[0] = '\0';
tmp = argv;
len = 0;
--
1.5.3.7.1116.gae2a9
2
2
Until now, there has been no coverage of libvirtd's config-processing code.
In adding this, (and esp. in comparing actual/expected diagnostics),
I noticed and fixed a trivial inconsistency: for a parameter expecting
a string value, an invalid values, you'd get a different diagnostic for
the four config parameters that are parsed via remoteConfigGetAuth than
for all of the other config parameters (which go through checkType).
This fixes that, too:
Test libvirtd's config-processing code.
And remove a minor diagnostic inconsistency.
* tests/daemon-conf: New test.
* tests/Makefile.am (TESTS_ENVIRONMENT): Prepend qemud/ to PATH,
so we can invoke libvirtd without an absolute name.
(test_scripts): Add daemon-conf.
* qemud/qemud.c (remoteConfigGetAuth): Use checkType,
rather than open-coding it with a different diagnostic.
Signed-off-by: Jim Meyering <meyering(a)redhat.com>
---
qemud/qemud.c | 4 +--
tests/Makefile.am | 3 ++
tests/daemon-conf | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 68 insertions(+), 3 deletions(-)
create mode 100755 tests/daemon-conf
diff --git a/qemud/qemud.c b/qemud/qemud.c
index 9794c03..f15cadd 100644
--- a/qemud/qemud.c
+++ b/qemud/qemud.c
@@ -1783,10 +1783,8 @@ static int remoteConfigGetAuth(virConfPtr conf, const char *key, int *auth, cons
if (!p)
return 0;
- if (p->type != VIR_CONF_STRING) {
- qemudLog (QEMUD_ERR, "remoteReadConfigFile: %s: %s: should be a string\n", filename, key);
+ if (checkType (p, filename, key, VIR_CONF_STRING) < 0)
return -1;
- }
if (!p->str)
return 0;
diff --git a/tests/Makefile.am b/tests/Makefile.am
index bec8b05..a918bcc 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -47,7 +47,9 @@ noinst_PROGRAMS = xmlrpctest xml2sexprtest sexpr2xmltest virshtest conftest \
nodeinfotest
test_scripts = \
+ daemon-conf \
int-overflow
+
EXTRA_DIST += $(test_scripts)
TESTS = xml2sexprtest sexpr2xmltest virshtest test_conf.sh xmconfigtest \
@@ -63,6 +65,7 @@ endif
TESTS_ENVIRONMENT = \
abs_top_builddir=`pwd`/'$(top_builddir)' \
abs_top_srcdir=`pwd`/'$(top_srcdir)' \
+ PATH='$(abs_top_builddir)/qemud$(PATH_SEPARATOR)'"$$PATH" \
$(VG)
valgrind:
diff --git a/tests/daemon-conf b/tests/daemon-conf
new file mode 100755
index 0000000..db1f0d3
--- /dev/null
+++ b/tests/daemon-conf
@@ -0,0 +1,64 @@
+#!/bin/sh
+# Get coverage of libvirtd's config-parsing code.
+
+# Boilerplate code to set up a test directory, cd into it,
+# and to ensure we remove it upon completion.
+this_test_() { echo "./$0" | sed 's,.*/,,'; }
+t_=$(this_test_)-$$
+init_cwd_=$(pwd)
+trap 'st=$?; d='"$t_"';
+ cd '"$init_cwd_"' && chmod -R u+rwx "$d" && rm -rf "$d" && exit $st' 0
+trap '(exit $?); exit $?' 1 2 13 15
+mkdir "$t_" || fail=1
+cd "$t_" || fail=1
+
+# Start with the sample libvirtd.conf file, uncommenting all real directives.
+sed -n 's/^#\([^ #]\)/\1/p' $abs_top_srcdir/qemud/libvirtd.conf > tmp.conf
+
+# Iterate through that list of directives, corrupting one RHS at a
+# time and running libvirtd with the resulting config. Each libvirtd
+# invocation must fail.
+n=$(wc -l < tmp.conf)
+i=1
+while :; do
+ param_name=$(sed -n "$i"'s/ = .*//p' tmp.conf)
+ rhs=$(sed -n "$i"'s/.* = \(.*\)/\1/p' tmp.conf)
+ f=in$i.conf
+ # Change an RHS that starts with '"' or '[' to "3".
+ # Change an RHS that starts with 0 or 1 to the string '"foo"'.
+ sed "$i"'s/ = [["].*/ = 3/;'"$i"'s/ = [01].*/ = "foo"/' tmp.conf > $f
+ libvirtd --config=$f 2> err && fail=1
+ case $rhs in
+ # '"'*) msg='should be a string';;
+ '"'*) msg='invalid type: got long; expected string';;
+ [01]*) msg='invalid type: got string; expected long';;
+ '['*) msg='must be a string or list of strings';;
+ *) echo "unexpected RHS: $rhs" 1>&2; fail=1;;
+ esac
+
+ test $i = $n && break
+
+ # Filter out this diagnostic.
+ sed '/^Cannot set group when not running as root$/d' err > k && mv k err
+
+ printf '%s\n\n' "remoteReadConfigFile: $f: $param_name: $msg" > expected-err
+ diff -u expected-err err || fail=1
+
+ i=$(expr $i + 1)
+done
+
+# Run with the unmodified config file.
+libvirtd --config=tmp.conf > log 2>&1 & pid=$!
+sleep 2
+kill $pid
+
+# Expect an orderly shut-down and successful exit.
+wait $pid || fail=1
+
+# "cat log" would print this for non-root:
+# Cannot set group when not running as root
+# Shutting down on signal 15
+# And normally, we'd require that output, but obviously
+# it'd be different for root.
+
+exit $fail
--
1.5.3.7.1116.gae2a9
2
3
My libvirtd.config testing relied on automake-1.10
in that it used $(abs_top_builddir). And while that
variable is defined just prior to the new use, the
variable is a *shell* variable, not a make one.
This fixes it to use the shell variable instead.
Portability is ugly.
Accommodate automake-1.9.
* tests/Makefile.am (TESTS_ENVIRONMENT): Adjust PATH setting
to work also with automake-1.9. Can't use $(abs_top_builddir).
---
ChangeLog | 6 ++++++
tests/Makefile.am | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ea5b85b..cf1085b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-12-11 Jim Meyering <meyering(a)redhat.com>
+
+ Accommodate automake-1.9.
+ * tests/Makefile.am (TESTS_ENVIRONMENT): Adjust PATH setting
+ to work also with automake-1.9. Can't use $(abs_top_builddir).
+
Tue Dec 11 22:19:22 CET 2007 Jim Meyering <meyering(a)redhat.com>
Test libvirtd's config-processing code.
diff --git a/tests/Makefile.am b/tests/Makefile.am
index a918bcc..dfd9e34 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -65,7 +65,7 @@ endif
TESTS_ENVIRONMENT = \
abs_top_builddir=`pwd`/'$(top_builddir)' \
abs_top_srcdir=`pwd`/'$(top_srcdir)' \
- PATH='$(abs_top_builddir)/qemud$(PATH_SEPARATOR)'"$$PATH" \
+ PATH="$$abs_top_builddir/qemud$(PATH_SEPARATOR)$$PATH" \
$(VG)
valgrind:
--
1.5.3.7.1116.gae2a9
2
2
Katti, Vadiraj (STSD-Openview) wrote:
> Hi Richard,
>
> DOMFLAGS_DYING is available in dom0_ops.h
>
> # find /usr/include -name '*.h' | xargs grep DOMFLAGS_DYING
> /usr/include/xen/dom0_ops.h:#define DOMFLAGS_DYING (1<<0) /* Domain
> is scheduled to die. */
I'm pretty certain this is a bug in libvirt, introduced by this patch:
http://www.redhat.com/archives/libvir-list/2007-April/msg00078.html
I think Dan's probably the best one to tell us what's going on here, but
from my understanding the patch above is wrong and should have instead
added this:
#ifndef DOMFLAGS_HVM
#define DOMFLAGS_HVM (1<<1)
#endif
//...
#ifdef DOMFLAGS_HVM
domain_flags &= ~DOMFLAGS_HVM; /* Mask out HVM flags */
#endif
> The versions of xen I'm running are :
> # rpm -qa |grep -i xen
> xen-3.0.4_13138-0.40
> xen-doc-html-3.0.4_13138-0.40
> xen-devel-3.0_8259-0.1
> xen-libs-3.0.4_13138-0.40
> kernel-xen-2.6.16.46-0.12
> xen-tools-ioemu-3.0.4_13138-0.40
> xen-doc-pdf-3.0.4_13138-0.40
> xen-tools-3.0.4_13138-0.40
>
> xenstored and xend both of them are running.
> # ps -ef|grep xenstored
> root 32458 1 0 09:36 ? 00:00:00 xenstored --pid-file
> /var/run/xenstore.pid
> Now info1 fails with the following error
> # ./info1
> failed to find libvirt_proxy
> Domains 0: 4 CPUs
> This was error I had encountered earlier, which is why I wanted to know
> what libvirt_proxy does.
I think if the Xen driver can be correctly built then you won't need the
proxy.
Rich.
--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
2
1
Since Bruno Haible quickly added support in gnulib-tool
to do what I wanted, the least I can do is to re-add the
tests in libvirt. This does it:
The manual changes in this delta are very small:
just the first few files listed below.
I've also included some induced diffs, due to libvirt-prompted
fixes in gnulib.
I've omitted the 2000+ lines of diffs for all of the added files.
FYI, this is using stock gnulib-tool with one addition:
the m4_foreach_w patch for which I'm still awaiting feedback.
Add gnulib-tool unit tests.
* bootstrap: Re-add --with-tests, now that gnulib-tool
arranges to use separate libraries for lib/ and tests/.
* configure.in (AC_OUTPUT): Add gnulib/tests/Makefile.in.
* Makefile.am (SUBDIRS): Add gnulib/tests.
* gnulib/tests/Makefile.am: New file.
* gnulib/lib/.cvsignore: Sort.
* gnulib/lib/Makefile.am, gnulib/m4/getdelim.m4, gnulib/m4/getline.m4:
* gnulib/m4/gnulib-cache.m4, gnulib/m4/gnulib-comp.m4: Regenerate.
* gnulib/tests/test-alloca-opt.c: New file, from gnulib.
* gnulib/tests/test-arpa_inet.c: Likewise.
* gnulib/tests/test-fseeko.c: Likewise.
* gnulib/tests/test-fseeko.sh: Likewise.
* gnulib/tests/test-getaddrinfo.c: Likewise.
* gnulib/tests/test-getdelim.c: Likewise.
* gnulib/tests/test-getline.c: Likewise.
* gnulib/tests/test-lseek.c: Likewise.
* gnulib/tests/test-lseek.sh: Likewise.
* gnulib/tests/test-netinet_in.c: Likewise.
* gnulib/tests/test-snprintf.c: Likewise.
* gnulib/tests/test-stdbool.c: Likewise.
* gnulib/tests/test-stdint.c: Likewise.
* gnulib/tests/test-stdio.c: Likewise.
* gnulib/tests/test-stdlib.c: Likewise.
* gnulib/tests/test-string.c: Likewise.
* gnulib/tests/test-sys_select.c: Likewise.
* gnulib/tests/test-sys_socket.c: Likewise.
* gnulib/tests/test-sys_stat.c: Likewise.
* gnulib/tests/test-sys_time.c: Likewise.
* gnulib/tests/test-unistd.c: Likewise.
* gnulib/tests/test-vasnprintf.c: Likewise.
* gnulib/tests/test-vasprintf.c: Likewise.
* gnulib/tests/test-wchar.c: Likewise.
* gnulib/tests/dummy.c: Likewise.
* gnulib/tests/intprops.h: Likewise.
* gnulib/tests/verify.h: Likewise.
---
Makefile.am | 2 +-
bootstrap | 1 +
configure.in | 1 +
gnulib/lib/.cvsignore | 8 +-
gnulib/lib/Makefile.am | 2 +-
gnulib/m4/getdelim.m4 | 4 +-
gnulib/m4/getline.m4 | 4 +-
gnulib/m4/gnulib-cache.m4 | 3 +-
gnulib/m4/gnulib-comp.m4 | 87 +++++++++-
gnulib/tests/Makefile.am | 271 +++++++++++++++++++++++++++++
gnulib/tests/dummy.c | 42 +++++
gnulib/tests/intprops.h | 77 +++++++++
gnulib/tests/test-alloca-opt.c | 62 +++++++
gnulib/tests/test-arpa_inet.c | 27 +++
gnulib/tests/test-fseeko.c | 35 ++++
gnulib/tests/test-fseeko.sh | 5 +
gnulib/tests/test-getaddrinfo.c | 137 +++++++++++++++
gnulib/tests/test-getdelim.c | 89 ++++++++++
gnulib/tests/test-getline.c | 89 ++++++++++
gnulib/tests/test-lseek.c | 102 +++++++++++
gnulib/tests/test-lseek.sh | 17 ++
gnulib/tests/test-netinet_in.c | 27 +++
gnulib/tests/test-snprintf.c | 71 ++++++++
gnulib/tests/test-stdbool.c | 95 +++++++++++
gnulib/tests/test-stdint.c | 356 +++++++++++++++++++++++++++++++++++++++
gnulib/tests/test-stdio.c | 30 ++++
gnulib/tests/test-stdlib.c | 37 ++++
gnulib/tests/test-string.c | 27 +++
gnulib/tests/test-sys_select.c | 27 +++
gnulib/tests/test-sys_socket.c | 47 +++++
gnulib/tests/test-sys_stat.c | 260 ++++++++++++++++++++++++++++
gnulib/tests/test-sys_time.c | 29 +++
gnulib/tests/test-unistd.c | 44 +++++
gnulib/tests/test-vasnprintf.c | 127 ++++++++++++++
gnulib/tests/test-vasprintf.c | 88 ++++++++++
gnulib/tests/test-wchar.c | 27 +++
gnulib/tests/verify.h | 140 +++++++++++++++
37 files changed, 2486 insertions(+), 11 deletions(-)
create mode 100644 gnulib/tests/Makefile.am
create mode 100644 gnulib/tests/dummy.c
create mode 100644 gnulib/tests/intprops.h
create mode 100644 gnulib/tests/test-alloca-opt.c
create mode 100644 gnulib/tests/test-arpa_inet.c
create mode 100644 gnulib/tests/test-fseeko.c
create mode 100755 gnulib/tests/test-fseeko.sh
create mode 100644 gnulib/tests/test-getaddrinfo.c
create mode 100644 gnulib/tests/test-getdelim.c
create mode 100644 gnulib/tests/test-getline.c
create mode 100644 gnulib/tests/test-lseek.c
create mode 100755 gnulib/tests/test-lseek.sh
create mode 100644 gnulib/tests/test-netinet_in.c
create mode 100644 gnulib/tests/test-snprintf.c
create mode 100644 gnulib/tests/test-stdbool.c
create mode 100644 gnulib/tests/test-stdint.c
create mode 100644 gnulib/tests/test-stdio.c
create mode 100644 gnulib/tests/test-stdlib.c
create mode 100644 gnulib/tests/test-string.c
create mode 100644 gnulib/tests/test-sys_select.c
create mode 100644 gnulib/tests/test-sys_socket.c
create mode 100644 gnulib/tests/test-sys_stat.c
create mode 100644 gnulib/tests/test-sys_time.c
create mode 100644 gnulib/tests/test-unistd.c
create mode 100644 gnulib/tests/test-vasnprintf.c
create mode 100644 gnulib/tests/test-vasprintf.c
create mode 100644 gnulib/tests/test-wchar.c
create mode 100644 gnulib/tests/verify.h
diff --git a/Makefile.am b/Makefile.am
index d12f3aa..c49c533 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
-SUBDIRS = gnulib/lib include src qemud proxy docs \
+SUBDIRS = gnulib/lib include src qemud proxy docs gnulib/tests \
@PYTHON_SUBDIR@ tests po scripts
ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4
diff --git a/bootstrap b/bootstrap
index d61d2e3..751b244 100755
--- a/bootstrap
+++ b/bootstrap
@@ -71,6 +71,7 @@ gnulib_tool=$GNULIB_SRCDIR/gnulib-tool
$gnulib_tool \
--lgpl=2 \
+ --with-tests \
--m4-base=gnulib/m4 \
--source-base=gnulib/lib \
--tests-base=gnulib/tests \
diff --git a/configure.in b/configure.in
index 425bb4c..8e5cca4 100644
--- a/configure.in
+++ b/configure.in
@@ -678,6 +678,7 @@ AC_OUTPUT(Makefile src/Makefile include/Makefile docs/Makefile \
docs/examples/Makefile docs/devhelp/Makefile \
docs/examples/python/Makefile \
gnulib/lib/Makefile \
+ gnulib/tests/Makefile \
libvirt.pc libvirt.spec \
po/Makefile.in scripts/Makefile \
include/libvirt/Makefile include/libvirt/libvirt.h \
diff --git a/gnulib/lib/.cvsignore b/gnulib/lib/.cvsignore
index 99e7fab..0f10d7f 100644
--- a/gnulib/lib/.cvsignore
+++ b/gnulib/lib/.cvsignore
@@ -1,11 +1,11 @@
-alloca.h
-.deps
-float.h
*.la
-.libs
*.lo
+.deps
+.libs
Makefile
Makefile.in
+alloca.h
+float.h
netinet_in.h
poll.h
stdbool.h
diff --git a/gnulib/lib/Makefile.am b/gnulib/lib/Makefile.am
index f1c4fa0..a94ed2d 100644
--- a/gnulib/lib/Makefile.am
+++ b/gnulib/lib/Makefile.am
@@ -9,7 +9,7 @@
# the same distribution terms as the rest of that program.
#
# Generated by gnulib-tool.
-# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib/lib --m4-base=gnulib/m4 --doc-base=doc --aux-dir=build-aux --lgpl=2 --libtool --macro-prefix=gl getaddrinfo getpass gettext physmem poll strndup strsep sys_stat vasprintf
+# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib/lib --m4-base=gnulib/m4 --doc-base=doc --aux-dir=build-aux --with-tests --lgpl=2 --libtool --macro-prefix=gl getaddrinfo getpass gettext physmem poll strndup strsep sys_stat vasprintf
AUTOMAKE_OPTIONS = 1.5 gnits
diff --git a/gnulib/m4/getdelim.m4 b/gnulib/m4/getdelim.m4
index 5563227..18b96be 100644
--- a/gnulib/m4/getdelim.m4
+++ b/gnulib/m4/getdelim.m4
@@ -1,4 +1,4 @@
-# getdelim.m4 serial 4
+# getdelim.m4 serial 5
dnl Copyright (C) 2005, 2006, 2007 Free Software dnl Foundation, Inc.
dnl
@@ -6,6 +6,8 @@ dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
+AC_PREREQ([2.59])
+
AC_DEFUN([gl_FUNC_GETDELIM],
[
AC_REQUIRE([gl_STDIO_H_DEFAULTS])
diff --git a/gnulib/m4/getline.m4 b/gnulib/m4/getline.m4
index e4ccd12..57625da 100644
--- a/gnulib/m4/getline.m4
+++ b/gnulib/m4/getline.m4
@@ -1,4 +1,4 @@
-# getline.m4 serial 17
+# getline.m4 serial 18
dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007 Free
dnl Software Foundation, Inc.
@@ -7,6 +7,8 @@ dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
+AC_PREREQ([2.59])
+
dnl See if there's a working, system-supplied version of the getline function.
dnl We can't just do AC_REPLACE_FUNCS(getline) because some systems
dnl have a function by that name in -linet that doesn't have anything
diff --git a/gnulib/m4/gnulib-cache.m4 b/gnulib/m4/gnulib-cache.m4
index 05a4503..d55e07a 100644
--- a/gnulib/m4/gnulib-cache.m4
+++ b/gnulib/m4/gnulib-cache.m4
@@ -15,7 +15,7 @@
# Specification in the form of a command-line invocation:
-# gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib/lib --m4-base=gnulib/m4 --doc-base=doc --aux-dir=build-aux --lgpl=2 --libtool --macro-prefix=gl getaddrinfo getpass gettext physmem poll strndup strsep sys_stat vasprintf
+# gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib/lib --m4-base=gnulib/m4 --doc-base=doc --aux-dir=build-aux --with-tests --lgpl=2 --libtool --macro-prefix=gl getaddrinfo getpass gettext physmem poll strndup strsep sys_stat vasprintf
# Specification in the form of a few gnulib-tool.m4 macro invocations:
gl_LOCAL_DIR([])
@@ -26,6 +26,7 @@ gl_M4_BASE([gnulib/m4])
gl_PO_BASE([])
gl_DOC_BASE([doc])
gl_TESTS_BASE([gnulib/tests])
+gl_WITH_TESTS
gl_LIB([libgnu])
gl_LGPL([2])
gl_MAKEFILE_NAME([])
diff --git a/gnulib/m4/gnulib-comp.m4 b/gnulib/m4/gnulib-comp.m4
index 259e28b..d92a377 100644
--- a/gnulib/m4/gnulib-comp.m4
+++ b/gnulib/m4/gnulib-comp.m4
@@ -34,11 +34,11 @@ AC_DEFUN([gl_EARLY],
# "Check for header files, types and library functions".
AC_DEFUN([gl_INIT],
[
+ AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
+ gl_cond_libtool=true
m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
- AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
- gl_cond_libtool=true
gl_source_base='gnulib/lib'
gl_FUNC_ALLOCA
gl_HEADER_ARPA_INET
@@ -120,6 +120,34 @@ AC_DEFUN([gl_INIT],
AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
])
+ gltests_libdeps=
+ gltests_ltlibdeps=
+ m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
+ m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
+ m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
+ gl_source_base='gnulib/tests'
+ gt_TYPE_WCHAR_T
+ gt_TYPE_WINT_T
+ AC_CHECK_FUNCS([shutdown])
+ m4_popdef([AC_LIBSOURCES])
+ m4_popdef([AC_REPLACE_FUNCS])
+ m4_popdef([AC_LIBOBJ])
+ AC_CONFIG_COMMANDS_PRE([
+ gltests_libobjs=
+ gltests_ltlibobjs=
+ if test -n "$gltests_LIBOBJS"; then
+ # Remove the extension.
+ sed_drop_objext='s/\.o$//;s/\.obj$//'
+ for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
+ gltests_libobjs="$gltests_libobjs $i.$ac_objext"
+ gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
+ done
+ fi
+ AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
+ AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
+ ])
+ LIBTESTS_LIBDEPS="$gltests_libdeps"
+ AC_SUBST([LIBTESTS_LIBDEPS])
])
# Like AC_LIBOBJ, except that the module name goes
@@ -150,6 +178,34 @@ AC_DEFUN([gl_LIBSOURCES], [
])
])
+# Like AC_LIBOBJ, except that the module name goes
+# into gltests_LIBOBJS instead of into LIBOBJS.
+AC_DEFUN([gltests_LIBOBJ], [
+ AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
+ gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
+])
+
+# Like AC_REPLACE_FUNCS, except that the module name goes
+# into gltests_LIBOBJS instead of into LIBOBJS.
+AC_DEFUN([gltests_REPLACE_FUNCS], [
+ m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
+ AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
+])
+
+# Like AC_LIBSOURCES, except the directory where the source file is
+# expected is derived from the gnulib-tool parametrization,
+# and alloca is special cased (for the alloca-opt module).
+# We could also entirely rely on EXTRA_lib..._SOURCES.
+AC_DEFUN([gltests_LIBSOURCES], [
+ m4_foreach([_gl_NAME], [$1], [
+ m4_if(_gl_NAME, [alloca.c], [], [
+ m4_syscmd([test -r gnulib/tests/]_gl_NAME[ || test ! -d gnulib/tests])dnl
+ m4_if(m4_sysval, [0], [],
+ [AC_FATAL([missing gnulib/tests/]_gl_NAME)])
+ ])
+ ])
+])
+
# This macro records the list of files which have been installed by
# gnulib-tool and may be removed by future gnulib-tool invocations.
AC_DEFUN([gl_FILE_LIST], [
@@ -278,4 +334,31 @@ AC_DEFUN([gl_FILE_LIST], [
m4/wchar_t.m4
m4/wint_t.m4
m4/xsize.m4
+ tests/test-alloca-opt.c
+ tests/test-arpa_inet.c
+ tests/test-fseeko.c
+ tests/test-fseeko.sh
+ tests/test-getaddrinfo.c
+ tests/test-getdelim.c
+ tests/test-getline.c
+ tests/test-lseek.c
+ tests/test-lseek.sh
+ tests/test-netinet_in.c
+ tests/test-snprintf.c
+ tests/test-stdbool.c
+ tests/test-stdint.c
+ tests/test-stdio.c
+ tests/test-stdlib.c
+ tests/test-string.c
+ tests/test-sys_select.c
+ tests/test-sys_socket.c
+ tests/test-sys_stat.c
+ tests/test-sys_time.c
+ tests/test-unistd.c
+ tests/test-vasnprintf.c
+ tests/test-vasprintf.c
+ tests/test-wchar.c
+ tests=lib/dummy.c
+ tests=lib/intprops.h
+ tests=lib/verify.h
])
2
3
> Hi All,
> I'm new to Xen world and am in the process of collecting performance
> information of various guests from dom0. Can somebody help me out with
> these problems.
> 1. I downloaded libvirt-0.3.3 src and did a 'make' and I'm seeing this
> problem.
>
> xen_internal.c: In function 'xenHypervisorDomainGetOSType':
> xen_internal.c:2711: error: 'DOMFLAGS_HVM' undeclared (first use in
> this function)
> xen_internal.c:2711: error: (Each undeclared identifier is reported
> only once
> xen_internal.c:2711: error: for each function it appears in.)
> xen_internal.c: In function 'xenHypervisorGetDomInfo':
> xen_internal.c:2943: error: 'DOMFLAGS_HVM' undeclared (first use in
> this function)
> make[2]: *** [libvirt_la-xen_internal.lo] Error 1
>
> 2. I want to know what are the rpm that the Xen server must have to
> pull out the performance data of various guests.
>
> 3. My Xen server now has these rpms :
> # rpm -qa |grep libvirt
> libvirt-0.2.0-0.16
> libvirt-python-0.2.0-0.16
>
> Do I need any other rpms to compile my c programs ? Is there any
> document which says how I can compile my c-program using libvirt ? I
> tried running info1 example in debug mode and I get this error :
> ./info1
> libvirt: virConnectOpenReadOnly (name=(null))
> libvirt: virInitialize ()
> libvirt: virInitialize ()
> libvirt: virInitialize ()
> libvirt: virInitialize ()
> libvirt: virInitialize ()
> libvirt: virInitialize ()
> libvirt: virInitialize ()
> libvirt: virInitialize ()
> libvirt: virInitialize ()
> libvirt: do_open: proceeding with name=xen:///
> libvirt: do_open: trying driver 0 (Test) ...
> libvirt: do_open: driver 0 Test returned DECLINED
> libvirt: do_open: trying driver 1 (QEMU) ...
> libvirt: do_open: driver 1 QEMU returned DECLINED
> libvirt: do_open: trying driver 2 (Xen) ...
> libvirt: xenUnifiedOpen: trying Xen sub-driver 0
> libvirt: xenUnifiedOpen: Xen sub-driver 0 open ok
> libvirt: xenUnifiedOpen: trying Xen sub-driver 2
> libvirt: xenUnifiedOpen: Xen sub-driver 2 open ok
> libvirt: xenUnifiedOpen: trying Xen sub-driver 3
> libvir: Xen Store error : could not use Xen hypervisor entry failed to
> connect to Xen Store
> libvirt: xenUnifiedOpen: Xen sub-driver 3 open failed
> libvirt: do_open: driver 2 Xen returned ERROR
> Failed to connect to hypervisor
>
> 4. what is libvirt_proxy ? What is its use ?
> I assume this is used to connect to hypervisor (am I right ?) When I
> run this, it says "Failed to open Xen hypervisor"
>
> Is there any document which can give more details of all these details
> ?
> Any help will be greatly helpful
>
> Thanks,
> Vadiraj
>
3
3
I'm no good at reading relax/ng, but I think that this:
<group>
<ref name='os'/>
<optional>
<ref name='bootloader'/>
</optional>
</group>
<group>
<ref name='bootloader'/>
<optional>
<ref name='os'/>
</optional>
</group>
means I can specify either os, or bootloader, or both. The latter case
makes a lot of sense when using pygrub. However, src/xml.c doesn't
implement those semantics:
1219 if (!bootloader) {
1220 if ((node = virXPathNode("/domain/os[1]", ctxt)) != NULL) {
1221 /* Analyze of the os description, based on HVM or PV. */
1222 str = virXPathString("string(/domain/os/type[1])", ctxt);
I think that we should just remove the "if (!bootloader) {" bit here -
agree?
I'm looking at the schema and I don't see (at least)
domain/devices/input, which appears to be used in src/xml.c too - is the
schema out of date in 0.3.3 ? The tests don't pass xmllint!
thanks
john
2
2
07 Dec '07
--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
4
74
07 Dec '07
The PolicyKit auth code was invoking the authentication callback even if
the app hadn't indicated support for VIR_CREDENTIAL_EXTERNAL. The default
authentication callback was also not returning errors for credentials it
doesn't support. This patch fixes both those flaws
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
1
0
07 Dec '07
I realized that one of the NUMA API entry point didn't had a
binding in Python, the enclosed patch adds it, it's a method
on a virConnect class, taking the startCell and maxCells integer
parameters and returning a list of available memory for that
range of cell, using it should be as simple as launching python
as root after reinstallation of the libvirt library and bindings
and doing the following:
>>> import libvirt
>>> conn = libvirt.open(None)
>>> conn.getCellsFreeMemory(0, 20)
it should return the array of available heap for each of the
20 first cells in machine, but I can't test this at the moment.
Saori, Beth is there any chance you could test that patch ?
thanks,
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard(a)redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
3
4
There are still a few bits which don't work.
Also attached, the output of './configure --without-xen --without-qemu
--without-sasl', and the output of 'make -k' after the second time it
has run (so you just see which bits fail to compile).
Some tips:
* Install MinGW and MSYS. MSYS 1.0.10 under Vista has known problems
(MinGW bug 1593268) so you'll also need to install the tech preview
versions of: gcc, gdb, binutils, w32api.
* Build and install libxml2.
* Install gnutls. There are binaries for Windows available on their site.
* Install SunRPC from http://www.plt.rwth-aachen.de/index.php?id=258.
* Get libvirt from CVS, apply the patch below, run ./bootstrap and
./autogen.sh (you'll have to do this from a Linux machine).
* Set the following environment variables under Windows:
gnutls=/c/Users/rjones/Desktop/gnutls
oncrpc=/c/oncrpc
CC=gcc-sjlj
CFLAGS="-I $gnutls/include -I $oncrpc"
LDFLAGS="-L $gnutls/lib -L $oncrpc/bin"
PATH=$oncrpc/bin:$PATH
export CC CFLAGS LDFLAGS PATH
* Enable config.cache (./configure -C) because shell scripts under
Windows are slooooooooow.
Rich.
--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for gcc... gcc-sjlj
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc-sjlj accepts -g... yes
checking for gcc-sjlj option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc-sjlj... gcc3
checking for a BSD-compatible install... /bin/install -c
checking how to run the C preprocessor... gcc-sjlj -E
checking for ranlib... ranlib
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for working alloca.h... no
checking for alloca... yes
checking arpa/inet.h usability... no
checking arpa/inet.h presence... no
checking for arpa/inet.h... no
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking netdb.h usability... no
checking netdb.h presence... no
checking for netdb.h... no
checking netinet/in.h usability... no
checking netinet/in.h presence... no
checking for netinet/in.h... no
checking sys/ioctl.h usability... no
checking sys/ioctl.h presence... no
checking for sys/ioctl.h... no
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking for stdint.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/select.h usability... no
checking sys/select.h presence... no
checking for sys/select.h... no
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking whether the preprocessor supports include_next... yes
checking whether <sys/socket.h> is self-contained... no
checking winsock2.h usability... yes
checking winsock2.h presence... yes
checking for winsock2.h... yes
checking ws2tcpip.h usability... yes
checking ws2tcpip.h presence... yes
checking for ws2tcpip.h... yes
checking for C/C++ restrict keyword... __restrict
checking for IPv4 sockets... yes
checking for IPv6 sockets... no
checking for inline... inline
checking whether malloc, realloc, calloc are POSIX compliant... no
checking for external symbol _system_configuration... no
checking whether snprintf is declared... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for long long int... yes
checking for unsigned long long int... yes
checking whether strdup is declared... yes
checking whether strndup is declared... no
checking whether strnlen is declared... no
checking for lstat... no
checking for vasnprintf... no
checking whether stat file-mode macros are broken... no
checking for struct timeval... yes
checking for EOVERFLOW... E2BIG
checking for size_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
configure: checking how to do getaddrinfo, freeaddrinfo and getnameinfo
checking for library containing getaddrinfo... no
checking for getaddrinfo... no
checking for getaddrinfo in ws2tcpip.h and -lws2_32... no
checking for gai_strerror (possibly via ws2tcpip.h)... yes
checking for library containing gethostbyname... no
checking for library containing getservbyname... no
checking for gethostbyname... no
checking for gethostbyname in winsock2.h and -lws2_32... yes
checking whether getaddrinfo is declared... no
checking whether freeaddrinfo is declared... no
checking whether gai_strerror is declared... yes
checking whether getnameinfo is declared... no
checking for struct addrinfo... yes
checking for inet_ntop... no
checking whether inet_ntop is declared... no
checking whether <netinet/in.h> is self-contained... no
checking for netinet/in.h... (cached) no
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... no
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/param.h... yes
checking for sys/sysctl.h... no
checking for sys/systemcfg.h... no
checking for pstat_getstatic... no
checking for pstat_getdynamic... no
checking for sysmp... no
checking for getsysinfo... no
checking for sysctl... no
checking for table... no
checking poll.h usability... no
checking poll.h presence... no
checking for poll.h... no
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for snprintf... yes
checking for socklen_t... yes
checking whether stdint.h conforms to C99... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for strdup... yes
checking for working strndup... no
checking for working strnlen... no
checking for strpbrk... yes
checking for strsep... no
checking whether <sys/select.h> is self-contained... no
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether <sys/socket.h> is self-contained... (cached) no
checking for winsock2.h... (cached) yes
checking for ws2tcpip.h... (cached) yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for shutdown... no
checking whether mkdir is declared... no
checking io.h usability... yes
checking io.h presence... yes
checking for io.h... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for ptrdiff_t... yes
checking for snprintf... (cached) yes
checking for wcslen... yes
checking whether _snprintf is declared... yes
checking for vasprintf... no
checking whether <wchar.h> is standalone... yes
checking for stdint.h... (cached) yes
checking for gcc... (cached) gcc-sjlj
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc-sjlj accepts -g... (cached) yes
checking for gcc-sjlj option to accept ISO C89... (cached) none needed
checking dependency style of gcc-sjlj... (cached) gcc3
checking for an ANSI C-conforming const... yes
checking for function prototypes... yes
checking for string.h... (cached) yes
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc-sjlj... c:/mingw/mingw32/bin/ld.exe
checking if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes
checking for c:/mingw/mingw32/bin/ld.exe option to reload object files... -r
checking for BSD-compatible nm... /mingw/bin/nm
checking whether ln -s works... no, using cp -p
checking how to recognize dependent libraries... file_magic file format pei*-i386(.*architecture: i386)?
checking for dlltool... dlltool
checking for as... as
checking for objdump... objdump
checking dlfcn.h usability... no
checking dlfcn.h presence... no
checking for dlfcn.h... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 8192
checking command to parse /mingw/bin/nm output from gcc-sjlj object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc-sjlj supports -fno-rtti -fno-exceptions... no
checking for gcc-sjlj option to produce PIC... -DDLL_EXPORT
checking if gcc-sjlj PIC flag -DDLL_EXPORT works... yes
checking if gcc-sjlj static flag -static works... yes
checking if gcc-sjlj supports -c -o file.o... yes
checking whether the gcc-sjlj linker (c:/mingw/mingw32/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking whether gcc-sjlj and cc understand -c and -o together... yes
checking whether gcc understands -Wall... yes
checking whether gcc understands -Wformat... yes
checking whether gcc understands -Wformat-security... yes
checking whether gcc understands -Wmissing-prototypes... yes
checking whether gcc understands -Wnested-externs... yes
checking whether gcc understands -Wpointer-arith... yes
checking whether gcc understands -Wextra... yes
checking whether gcc understands -Wshadow... yes
checking whether gcc understands -Wcast-align... yes
checking whether gcc understands -Wwrite-strings... yes
checking whether gcc understands -Waggregate-return... yes
checking whether gcc understands -Wstrict-prototypes... yes
checking whether gcc understands -Winline... yes
checking whether gcc understands -Wredundant-decls... yes
checking whether gcc understands -Wno-sign-compare... yes
checking whether gcc understands -Wp,-D_FORTIFY_SOURCE=2... yes
checking whether gcc understands -fexceptions... yes
checking whether gcc understands -fasynchronous-unwind-tables... yes
checking what language compliance flags to pass to the C compiler...
checking for cfmakeraw... no
checking for regexec... no
checking for uname... no
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking pwd.h usability... no
checking pwd.h presence... no
checking for pwd.h... no
checking paths.h usability... no
checking paths.h presence... no
checking for paths.h... no
checking sys/syslimits.h usability... no
checking sys/syslimits.h presence... no
checking for sys/syslimits.h... no
checking sys/utsname.h usability... no
checking sys/utsname.h presence... no
checking for sys/utsname.h... no
checking sys/wait.h usability... no
checking sys/wait.h presence... no
checking for sys/wait.h... no
checking winsock.h usability... yes
checking winsock.h presence... yes
checking for winsock.h... yes
checking for library containing xdrmem_create... no
checking for rpcgen... /c/oncrpc/bin/rpcgen
checking for rm... /bin/rm
checking for mv... /bin/mv
checking for tar... /bin/tar
checking for xmllint... /usr/local/bin/xmllint
checking for xsltproc... /usr/bin/xsltproc
checking for dnsmasq... dnsmasq
checking for brctl... brctl
checking where to write libvirtd PID file... ${prefix}/var/run/libvirtd.pid
checking for init script flavor... none
checking for iptables... /sbin/iptables
checking for pkg-config... no
checking libxml2 xml2-config >= 2.5.0 ... yes
checking for struct _xmlURI.query_raw... yes
checking gnutls/gnutls.h usability... yes
checking gnutls/gnutls.h presence... no
configure: WARNING: gnutls/gnutls.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: gnutls/gnutls.h: proceeding with the compiler's result
checking for gnutls/gnutls.h... yes
checking for gnutls_handshake in -lgnutls... yes
checking for gnutls_session... yes
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking for main in -lreadline... no
configure: WARNING: readline library not found
checking for python... no
checking whether this host is running a Xen kernel... no
checking If XenD UNIX socket /var/run/xend/xmlrpc.sock is accessible... no
checking if Xen setuid proxy is needed... no
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for ld used by GCC... c:/mingw/mingw32/bin/ld.exe
checking if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... no, consider installing GNU libiconv
checking for GNU gettext in libintl... no
checking whether to use NLS... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/Makefile
config.status: creating docs/Makefile
config.status: creating docs/examples/Makefile
config.status: creating docs/devhelp/Makefile
config.status: creating docs/examples/python/Makefile
config.status: creating gnulib/lib/Makefile
config.status: creating gnulib/tests/Makefile
config.status: creating libvirt.pc
config.status: creating libvirt.spec
config.status: creating po/Makefile.in
config.status: WARNING: po/Makefile.in.in seems to ignore the --datarootdir setting
config.status: creating scripts/Makefile
config.status: creating include/libvirt/Makefile
config.status: creating include/libvirt/libvirt.h
config.status: creating python/Makefile
config.status: creating python/tests/Makefile
config.status: creating qemud/Makefile
config.status: creating tests/Makefile
config.status: creating proxy/Makefile
config.status: creating tests/xml2sexprdata/Makefile
config.status: creating tests/sexpr2xmldata/Makefile
config.status: creating tests/xmconfigdata/Makefile
config.status: creating tests/xencapsdata/Makefile
config.status: creating tests/virshdata/Makefile
config.status: creating tests/confdata/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
configure:
configure: Configuration summary
configure: =====================
configure:
configure: Drivers
configure:
configure: Xen: no
configure: Proxy: no
configure: QEMU: no
configure: OpenVZ: no
configure: Test: yes
configure: Remote: yes
configure:
configure: Libraries
configure:
configure: libxml: -I/usr/local/include/libxml2 -L/usr/local/lib -lxml2 -lws2_32
configure: gnutls: -lgnutls -lws2_32
configure: sasl: no
configure: avahi: no
configure: polkit: no
configure:
configure: Miscellaneous
configure:
configure: Debug: no
configure: Readline: no
configure:
make all-recursive
make[1]: Entering directory `/z/d/libvirt-mingw'
Making all in gnulib/lib
make[2]: Entering directory `/z/d/libvirt-mingw/gnulib/lib'
make all-am
make[3]: Entering directory `/z/d/libvirt-mingw/gnulib/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/z/d/libvirt-mingw/gnulib/lib'
make[2]: Leaving directory `/z/d/libvirt-mingw/gnulib/lib'
Making all in include
make[2]: Entering directory `/z/d/libvirt-mingw/include'
Making all in libvirt
make[3]: Entering directory `/z/d/libvirt-mingw/include/libvirt'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/z/d/libvirt-mingw/include/libvirt'
make[3]: Entering directory `/z/d/libvirt-mingw/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/z/d/libvirt-mingw/include'
make[2]: Leaving directory `/z/d/libvirt-mingw/include'
Making all in src
make[2]: Entering directory `/z/d/libvirt-mingw/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../qemud -I/usr/local/include/libxml2 -DBINDIR=\""/usr/local/libexec"\" -DSBINDIR=\""/usr/local/sbin"\" -DSYSCONF_DIR="\"/usr/local/etc\"" -DLOCALEBASEDIR=\""/usr/local/share/locale"\" -DLOCAL_STATE_DIR=\""/usr/local/var"\" -DGETTEXT_PACKAGE=\"libvirt\" -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DWITH_TEST -DWITH_REMOTE -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT libvirt_la-remote_internal.lo -MD -MP -MF .deps/libvirt_la-remote_internal.Tpo -c -o libvirt_la-remote_internal.lo `test -f 'remote_internal.c' || echo './'`remote_internal.c
gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../qemud -I/usr/local/include/libxml2 -DBINDIR=\"/usr/local/libexec\" -DSBINDIR=\"/usr/local/sbin\" -DSYSCONF_DIR=\"/usr/local/etc\" -DLOCALEBASEDIR=\"/usr/local/share/locale\" -DLOCAL_STATE_DIR=\"/usr/local/var\" -DGETTEXT_PACKAGE=\"libvirt\" -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DWITH_TEST -DWITH_REMOTE -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT libvirt_la-remote_internal.lo -MD -MP -MF .deps/libvirt_la-remote_internal.Tpo -c remote_internal.c -DDLL_EXPORT -DPIC -o .libs/libvirt_la-remote_internal.o
In file included from ../gnulib/lib/sys/stat.h:28,
from remote_internal.c:34:
../gnulib/lib/sys/stat.h:272: warning: unused parameter 'mode'
In file included from remote_internal.c:59:
c:/oncrpc/rpc/xdr.h:116: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:127: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:128: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:129: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:130: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:131: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:132: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:133: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:134: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:242: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:243: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:244: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:245: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:246: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:247: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:248: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:249: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:250: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:251: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:252: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:253: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:254: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:255: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:256: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:257: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:258: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:259: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:260: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:261: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:262: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:263: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:275: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:281: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:282: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:283: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:284: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:285: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:286: warning: function declaration isn't a prototype
In file included from ../gnulib/lib/sys/socket.h:65,
from ../gnulib/lib/getaddrinfo.h:29,
from remote_internal.c:74:
c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/ws2tcpip.h:16:2: error: #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
In file included from ../gnulib/lib/sys/socket.h:65,
from ../gnulib/lib/getaddrinfo.h:29,
from remote_internal.c:74:
c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/ws2tcpip.h:124: error: redefinition of 'struct ip_mreq'
In file included from ../qemud/remote_protocol.h:9,
from remote_internal.c:76:
c:/oncrpc/rpc/rpc.h:52:1: warning: "FD_SETSIZE" redefined
In file included from remote_internal.c:55:
c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/winsock.h:35:1: warning: this is the location of the previous definition
In file included from ../qemud/remote_protocol.h:9,
from remote_internal.c:76:
c:/oncrpc/rpc/rpc.h:71: warning: function declaration isn't a prototype
In file included from ../qemud/remote_protocol.h:9,
from remote_internal.c:76:
c:/oncrpc/rpc/rpc.h:74: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:89,
from ../qemud/remote_protocol.h:9,
from remote_internal.c:76:
c:/oncrpc/rpc/auth.h:105: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:125: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:126: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:127: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:128: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:129: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:196: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:197: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:198: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:199: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:92,
from ../qemud/remote_protocol.h:9,
from remote_internal.c:76:
c:/oncrpc/rpc/clnt.h:134: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:135: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:136: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:137: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:138: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:139: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:256: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:263: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:284: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:307: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:308: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:313: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:314: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:319: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:324: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:325: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:353: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:95,
from ../qemud/remote_protocol.h:9,
from remote_internal.c:76:
c:/oncrpc/rpc/rpc_msg.h:184: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:192: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:200: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:208: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:97,
from ../qemud/remote_protocol.h:9,
from remote_internal.c:76:
c:/oncrpc/rpc/auth_uni.h:84: warning: function declaration isn't a prototype
In file included from ../qemud/remote_protocol.h:9,
from remote_internal.c:76:
c:/oncrpc/rpc/rpc.h:105:29: warning: "/*" within comment
In file included from c:/oncrpc/rpc/rpc.h:108,
from ../qemud/remote_protocol.h:9,
from remote_internal.c:76:
c:/oncrpc/rpc/svc.h:94: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:95: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:96: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:97: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:98: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:99: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:108,
from ../qemud/remote_protocol.h:9,
from remote_internal.c:76:
c:/oncrpc/rpc/svc.h:173:19: warning: "/*" within comment
c:/oncrpc/rpc/svc.h:175: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:184: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:192: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:200: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:231: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:232: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:233: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:234: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:235: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:236: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:237: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:238: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:278: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:280: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:281: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:282: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:296: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:301: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:302: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:307: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:109,
from ../qemud/remote_protocol.h:9,
from remote_internal.c:76:
c:/oncrpc/rpc/svc_auth.h:56: error: 'auth_stat' defined as wrong kind of tag
c:/oncrpc/rpc/svc_auth.h:56: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:117,
from ../qemud/remote_protocol.h:9,
from remote_internal.c:76:
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
In file included from remote_internal.c:76:
../qemud/remote_protocol.h:78: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:88: error: expected specifier-qualifier-list before 'quad_t'
../qemud/remote_protocol.h:124: error: expected specifier-qualifier-list before 'quad_t'
../qemud/remote_protocol.h:145: error: expected specifier-qualifier-list before 'quad_t'
../qemud/remote_protocol.h:201: error: expected specifier-qualifier-list before 'quad_t'
../qemud/remote_protocol.h:216: error: expected specifier-qualifier-list before 'quad_t'
../qemud/remote_protocol.h:328: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:334: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:340: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:351: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:389: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:411: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:424: error: expected specifier-qualifier-list before 'u_quad_t'
remote_internal.c: In function 'remoteForkDaemon':
remote_internal.c:247: warning: implicit declaration of function 'fork'
remote_internal.c:252: error: '_PATH_DEVNULL' undeclared (first use in this function)
remote_internal.c:252: error: (Each undeclared identifier is reported only once
remote_internal.c:252: error: for each function it appears in.)
remote_internal.c:269: warning: implicit declaration of function 'sysconf'
remote_internal.c:269: warning: nested extern declaration of 'sysconf'
remote_internal.c:269: error: '_SC_OPEN_MAX' undeclared (first use in this function)
remote_internal.c:276: warning: implicit declaration of function 'setsid'
remote_internal.c:276: warning: nested extern declaration of 'setsid'
remote_internal.c:299: warning: implicit declaration of function 'waitpid'
remote_internal.c:299: warning: nested extern declaration of 'waitpid'
remote_internal.c: In function 'doRemoteOpen':
remote_internal.c:513: error: 'AI_ADDRCONFIG' undeclared (first use in this function)
remote_internal.c:579: error: 'uid_t' undeclared (first use in this function)
remote_internal.c:579: error: expected ';' before 'uid'
remote_internal.c:581: warning: implicit declaration of function 'getpwuid'
remote_internal.c:581: warning: nested extern declaration of 'getpwuid'
remote_internal.c:581: error: 'uid' undeclared (first use in this function)
remote_internal.c:581: warning: assignment makes pointer from integer without a cast
remote_internal.c:586: error: dereferencing pointer to incomplete type
remote_internal.c:605: error: storage size of 'addr' isn't known
remote_internal.c:628: error: 'ECONNREFUSED' undeclared (first use in this function)
remote_internal.c:635: warning: implicit declaration of function 'usleep'
remote_internal.c:635: warning: nested extern declaration of 'usleep'
remote_internal.c:605: warning: unused variable 'addr'
remote_internal.c:703: warning: implicit declaration of function 'socketpair'
remote_internal.c:703: warning: nested extern declaration of 'socketpair'
remote_internal.c:731: warning: passing argument 2 of 'execvp' from incompatible pointer type
remote_internal.c: In function 'remoteOpen':
remote_internal.c:837: warning: implicit declaration of function 'getuid'
remote_internal.c:837: warning: nested extern declaration of 'getuid'
remote_internal.c: In function 'remoteVersion':
remote_internal.c:1421: error: 'remote_get_version_ret' has no member named 'hv_ver'
remote_internal.c: In function 'remoteNodeGetInfo':
remote_internal.c:1472: error: 'remote_node_get_info_ret' has no member named 'memory'
remote_internal.c:1473: error: 'remote_node_get_info_ret' has no member named 'cpus'
remote_internal.c:1474: error: 'remote_node_get_info_ret' has no member named 'mhz'
remote_internal.c:1475: error: 'remote_node_get_info_ret' has no member named 'nodes'
remote_internal.c:1476: error: 'remote_node_get_info_ret' has no member named 'sockets'
remote_internal.c:1477: error: 'remote_node_get_info_ret' has no member named 'cores'
remote_internal.c:1478: error: 'remote_node_get_info_ret' has no member named 'threads'
remote_internal.c: In function 'remoteListDomains':
remote_internal.c:1520: warning: implicit declaration of function 'xdr_free'
remote_internal.c:1520: warning: nested extern declaration of 'xdr_free'
remote_internal.c: In function 'remoteDomainGetMaxMemory':
remote_internal.c:1752: error: 'remote_domain_get_max_memory_ret' has no member named 'memory'
remote_internal.c:1753: warning: control reaches end of non-void function
remote_internal.c: In function 'remoteDomainSetMaxMemory':
remote_internal.c:1762: error: 'remote_domain_set_max_memory_args' has no member named 'memory'
remote_internal.c: In function 'remoteDomainSetMemory':
remote_internal.c:1779: error: 'remote_domain_set_memory_args' has no member named 'memory'
remote_internal.c: In function 'remoteDomainGetInfo':
remote_internal.c:1805: error: 'remote_domain_get_info_ret' has no member named 'max_mem'
remote_internal.c:1806: error: 'remote_domain_get_info_ret' has no member named 'memory'
remote_internal.c:1807: error: 'remote_domain_get_info_ret' has no member named 'nr_virt_cpu'
remote_internal.c:1808: error: 'remote_domain_get_info_ret' has no member named 'cpu_time'
remote_internal.c: In function 'remoteDomainGetVcpus':
remote_internal.c:1956: error: 'remote_vcpu_info' has no member named 'cpu_time'
remote_internal.c:1957: error: 'remote_vcpu_info' has no member named 'cpu'
remote_internal.c: In function 'remoteDomainMigratePrepare':
remote_internal.c:2017: error: 'remote_domain_migrate_prepare_args' has no member named 'flags'
remote_internal.c:2018: error: 'remote_domain_migrate_prepare_args' has no member named 'dname'
remote_internal.c:2019: error: 'remote_domain_migrate_prepare_args' has no member named 'resource'
remote_internal.c: In function 'remoteDomainMigratePerform':
remote_internal.c:2053: error: 'remote_domain_migrate_perform_args' has no member named 'flags'
remote_internal.c:2054: error: 'remote_domain_migrate_perform_args' has no member named 'dname'
remote_internal.c:2055: error: 'remote_domain_migrate_perform_args' has no member named 'resource'
remote_internal.c: In function 'remoteDomainMigrateFinish':
remote_internal.c:2082: error: 'remote_domain_migrate_finish_args' has no member named 'flags'
remote_internal.c: In function 'remoteDomainGetSchedulerParameters':
remote_internal.c:2334: error: 'union <anonymous>' has no member named 'l'
remote_internal.c:2336: error: 'union <anonymous>' has no member named 'ul'
remote_internal.c:2338: error: 'union <anonymous>' has no member named 'd'
remote_internal.c:2340: error: 'union <anonymous>' has no member named 'b'
remote_internal.c: In function 'remoteDomainSetSchedulerParameters':
remote_internal.c:2386: error: 'union <anonymous>' has no member named 'l'
remote_internal.c:2388: error: 'union <anonymous>' has no member named 'ul'
remote_internal.c:2390: error: 'union <anonymous>' has no member named 'd'
remote_internal.c:2392: error: 'union <anonymous>' has no member named 'b'
remote_internal.c: In function 'remoteDomainBlockStats':
remote_internal.c:2430: error: 'remote_domain_block_stats_ret' has no member named 'rd_req'
remote_internal.c:2431: error: 'remote_domain_block_stats_ret' has no member named 'rd_bytes'
remote_internal.c:2432: error: 'remote_domain_block_stats_ret' has no member named 'wr_req'
remote_internal.c:2433: error: 'remote_domain_block_stats_ret' has no member named 'wr_bytes'
remote_internal.c:2434: error: 'remote_domain_block_stats_ret' has no member named 'errs'
remote_internal.c: In function 'remoteDomainInterfaceStats':
remote_internal.c:2458: error: 'remote_domain_interface_stats_ret' has no member named 'rx_bytes'
remote_internal.c:2459: error: 'remote_domain_interface_stats_ret' has no member named 'rx_packets'
remote_internal.c:2460: error: 'remote_domain_interface_stats_ret' has no member named 'rx_errs'
remote_internal.c:2461: error: 'remote_domain_interface_stats_ret' has no member named 'rx_drop'
remote_internal.c:2462: error: 'remote_domain_interface_stats_ret' has no member named 'tx_bytes'
remote_internal.c:2463: error: 'remote_domain_interface_stats_ret' has no member named 'tx_packets'
remote_internal.c:2464: error: 'remote_domain_interface_stats_ret' has no member named 'tx_errs'
remote_internal.c:2465: error: 'remote_domain_interface_stats_ret' has no member named 'tx_drop'
make[2]: *** [libvirt_la-remote_internal.lo] Error 1
/bin/sh ../libtool --tag=CC --mode=compile gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../qemud -I/usr/local/include/libxml2 -DBINDIR=\""/usr/local/libexec"\" -DSBINDIR=\""/usr/local/sbin"\" -DSYSCONF_DIR="\"/usr/local/etc\"" -DLOCALEBASEDIR=\""/usr/local/share/locale"\" -DLOCAL_STATE_DIR=\""/usr/local/var"\" -DGETTEXT_PACKAGE=\"libvirt\" -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DWITH_TEST -DWITH_REMOTE -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT libvirt_la-iptables.lo -MD -MP -MF .deps/libvirt_la-iptables.Tpo -c -o libvirt_la-iptables.lo `test -f 'iptables.c' || echo './'`iptables.c
gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../qemud -I/usr/local/include/libxml2 -DBINDIR=\"/usr/local/libexec\" -DSBINDIR=\"/usr/local/sbin\" -DSYSCONF_DIR=\"/usr/local/etc\" -DLOCALEBASEDIR=\"/usr/local/share/locale\" -DLOCAL_STATE_DIR=\"/usr/local/var\" -DGETTEXT_PACKAGE=\"libvirt\" -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DWITH_TEST -DWITH_REMOTE -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT libvirt_la-iptables.lo -MD -MP -MF .deps/libvirt_la-iptables.Tpo -c iptables.c -DDLL_EXPORT -DPIC -o .libs/libvirt_la-iptables.o
In file included from ../gnulib/lib/sys/stat.h:28,
from iptables.c:35:
../gnulib/lib/sys/stat.h:272: warning: unused parameter 'mode'
iptables.c: In function 'iptablesSpawn':
iptables.c:355: error: '_PATH_DEVNULL' undeclared (first use in this function)
iptables.c:355: error: (Each undeclared identifier is reported only once
iptables.c:355: error: for each function it appears in.)
iptables.c:358: warning: implicit declaration of function 'fork'
iptables.c:373: warning: passing argument 2 of 'execvp' from incompatible pointer type
iptables.c:381: warning: implicit declaration of function 'waitpid'
iptables.c:381: warning: nested extern declaration of 'waitpid'
iptables.c:388: warning: implicit declaration of function 'WIFEXITED'
iptables.c:388: warning: nested extern declaration of 'WIFEXITED'
iptables.c:388: warning: implicit declaration of function 'WEXITSTATUS'
iptables.c:388: warning: nested extern declaration of 'WEXITSTATUS'
make[2]: *** [libvirt_la-iptables.lo] Error 1
/bin/sh ../libtool --tag=CC --mode=compile gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../qemud -I/usr/local/include/libxml2 -DBINDIR=\""/usr/local/libexec"\" -DSBINDIR=\""/usr/local/sbin"\" -DSYSCONF_DIR="\"/usr/local/etc\"" -DLOCALEBASEDIR=\""/usr/local/share/locale"\" -DLOCAL_STATE_DIR=\""/usr/local/var"\" -DGETTEXT_PACKAGE=\"libvirt\" -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DWITH_TEST -DWITH_REMOTE -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT libvirt_la-util.lo -MD -MP -MF .deps/libvirt_la-util.Tpo -c -o libvirt_la-util.lo `test -f 'util.c' || echo './'`util.c
gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../qemud -I/usr/local/include/libxml2 -DBINDIR=\"/usr/local/libexec\" -DSBINDIR=\"/usr/local/sbin\" -DSYSCONF_DIR=\"/usr/local/etc\" -DLOCALEBASEDIR=\"/usr/local/share/locale\" -DLOCAL_STATE_DIR=\"/usr/local/var\" -DGETTEXT_PACKAGE=\"libvirt\" -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DWITH_TEST -DWITH_REMOTE -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT libvirt_la-util.lo -MD -MP -MF .deps/libvirt_la-util.Tpo -c util.c -DDLL_EXPORT -DPIC -o .libs/libvirt_la-util.o
util.c:33:19: error: paths.h: No such file or directory
In file included from ../gnulib/lib/sys/stat.h:28,
from util.c:36:
../gnulib/lib/sys/stat.h:272: warning: unused parameter 'mode'
util.c: In function 'virExec':
util.c:213: warning: implicit declaration of function 'ReportError'
util.c:213: warning: nested extern declaration of 'ReportError'
make[2]: *** [libvirt_la-util.lo] Error 1
/bin/sh ../libtool --tag=CC --mode=compile gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../qemud -I/usr/local/include/libxml2 -DBINDIR=\""/usr/local/libexec"\" -DSBINDIR=\""/usr/local/sbin"\" -DSYSCONF_DIR="\"/usr/local/etc\"" -DLOCALEBASEDIR=\""/usr/local/share/locale"\" -DLOCAL_STATE_DIR=\""/usr/local/var"\" -DGETTEXT_PACKAGE=\"libvirt\" -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DWITH_TEST -DWITH_REMOTE -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT libvirt_la-remote_protocol.lo -MD -MP -MF .deps/libvirt_la-remote_protocol.Tpo -c -o libvirt_la-remote_protocol.lo `test -f '../qemud/remote_protocol.c' || echo './'`../qemud/remote_protocol.c
gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../qemud -I/usr/local/include/libxml2 -DBINDIR=\"/usr/local/libexec\" -DSBINDIR=\"/usr/local/sbin\" -DSYSCONF_DIR=\"/usr/local/etc\" -DLOCALEBASEDIR=\"/usr/local/share/locale\" -DLOCAL_STATE_DIR=\"/usr/local/var\" -DGETTEXT_PACKAGE=\"libvirt\" -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DWITH_TEST -DWITH_REMOTE -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT libvirt_la-remote_protocol.lo -MD -MP -MF .deps/libvirt_la-remote_protocol.Tpo -c ../qemud/remote_protocol.c -DDLL_EXPORT -DPIC -o .libs/libvirt_la-remote_protocol.o
In file included from ../gnulib/lib/string.h:23,
from c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/winnt.h:37,
from c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/windef.h:253,
from c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/windows.h:48,
from c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/winsock.h:19,
from c:/oncrpc/rpc/rpc.h:55,
from ../qemud/remote_protocol.h:9,
from ../qemud/remote_protocol.c:6:
../gnulib/lib/string.h:283: error: expected ';', ',' or ')' before '__stringp'
In file included from ../qemud/remote_protocol.h:9,
from ../qemud/remote_protocol.c:6:
c:/oncrpc/rpc/rpc.h:71: warning: function declaration isn't a prototype
In file included from ../qemud/remote_protocol.h:9,
from ../qemud/remote_protocol.c:6:
c:/oncrpc/rpc/rpc.h:74: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:86,
from ../qemud/remote_protocol.h:9,
from ../qemud/remote_protocol.c:6:
c:/oncrpc/rpc/xdr.h:116: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:127: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:128: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:129: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:130: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:131: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:132: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:133: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:134: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:242: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:243: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:244: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:245: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:246: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:247: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:248: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:249: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:250: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:251: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:252: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:253: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:254: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:255: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:256: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:257: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:258: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:259: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:260: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:261: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:262: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:263: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:275: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:281: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:282: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:283: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:284: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:285: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:286: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:89,
from ../qemud/remote_protocol.h:9,
from ../qemud/remote_protocol.c:6:
c:/oncrpc/rpc/auth.h:105: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:125: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:126: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:127: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:128: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:129: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:196: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:197: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:198: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:199: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:92,
from ../qemud/remote_protocol.h:9,
from ../qemud/remote_protocol.c:6:
c:/oncrpc/rpc/clnt.h:134: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:135: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:136: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:137: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:138: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:139: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:256: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:263: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:284: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:307: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:308: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:313: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:314: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:319: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:324: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:325: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:353: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:95,
from ../qemud/remote_protocol.h:9,
from ../qemud/remote_protocol.c:6:
c:/oncrpc/rpc/rpc_msg.h:184: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:192: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:200: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:208: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:97,
from ../qemud/remote_protocol.h:9,
from ../qemud/remote_protocol.c:6:
c:/oncrpc/rpc/auth_uni.h:84: warning: function declaration isn't a prototype
In file included from ../qemud/remote_protocol.h:9,
from ../qemud/remote_protocol.c:6:
c:/oncrpc/rpc/rpc.h:105:29: warning: "/*" within comment
In file included from c:/oncrpc/rpc/rpc.h:108,
from ../qemud/remote_protocol.h:9,
from ../qemud/remote_protocol.c:6:
c:/oncrpc/rpc/svc.h:94: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:95: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:96: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:97: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:98: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:99: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:108,
from ../qemud/remote_protocol.h:9,
from ../qemud/remote_protocol.c:6:
c:/oncrpc/rpc/svc.h:173:19: warning: "/*" within comment
c:/oncrpc/rpc/svc.h:175: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:184: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:192: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:200: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:231: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:232: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:233: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:234: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:235: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:236: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:237: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:238: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:278: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:280: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:281: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:282: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:296: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:301: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:302: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:307: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:109,
from ../qemud/remote_protocol.h:9,
from ../qemud/remote_protocol.c:6:
c:/oncrpc/rpc/svc_auth.h:56: error: 'auth_stat' defined as wrong kind of tag
c:/oncrpc/rpc/svc_auth.h:56: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:117,
from ../qemud/remote_protocol.h:9,
from ../qemud/remote_protocol.c:6:
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
In file included from ../qemud/remote_protocol.c:6:
../qemud/remote_protocol.h:78: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:88: error: expected specifier-qualifier-list before 'quad_t'
../qemud/remote_protocol.h:124: error: expected specifier-qualifier-list before 'quad_t'
../qemud/remote_protocol.h:145: error: expected specifier-qualifier-list before 'quad_t'
../qemud/remote_protocol.h:201: error: expected specifier-qualifier-list before 'quad_t'
../qemud/remote_protocol.h:216: error: expected specifier-qualifier-list before 'quad_t'
../qemud/remote_protocol.h:328: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:334: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:340: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:351: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:389: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:411: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.h:424: error: expected specifier-qualifier-list before 'u_quad_t'
../qemud/remote_protocol.c: In function 'xdr_remote_vcpu_info':
../qemud/remote_protocol.c:124: warning: implicit declaration of function 'xdr_u_quad_t'
../qemud/remote_protocol.c:124: warning: nested extern declaration of 'xdr_u_quad_t'
../qemud/remote_protocol.c:124: error: 'remote_vcpu_info' has no member named 'cpu_time'
../qemud/remote_protocol.c:126: error: 'remote_vcpu_info' has no member named 'cpu'
../qemud/remote_protocol.c: In function 'xdr_remote_sched_param_value':
../qemud/remote_protocol.c:146: warning: implicit declaration of function 'xdr_quad_t'
../qemud/remote_protocol.c:146: warning: nested extern declaration of 'xdr_quad_t'
../qemud/remote_protocol.c:146: error: 'union <anonymous>' has no member named 'l'
../qemud/remote_protocol.c:150: error: 'union <anonymous>' has no member named 'ul'
../qemud/remote_protocol.c:154: error: 'union <anonymous>' has no member named 'd'
../qemud/remote_protocol.c:158: error: 'union <anonymous>' has no member named 'b'
../qemud/remote_protocol.c: In function 'xdr_remote_get_version_ret':
../qemud/remote_protocol.c:220: error: 'remote_get_version_ret' has no member named 'hv_ver'
../qemud/remote_protocol.c: In function 'xdr_remote_node_get_info_ret':
../qemud/remote_protocol.c:255: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../qemud/remote_protocol.c:255: error: 'buf' undeclared (first use in this function)
../qemud/remote_protocol.c:255: error: (Each undeclared identifier is reported only once
../qemud/remote_protocol.c:255: error: for each function it appears in.)
../qemud/remote_protocol.c:262: error: 'remote_node_get_info_ret' has no member named 'memory'
../qemud/remote_protocol.c:266: error: 'remote_node_get_info_ret' has no member named 'cpus'
../qemud/remote_protocol.c:268: error: 'remote_node_get_info_ret' has no member named 'mhz'
../qemud/remote_protocol.c:270: error: 'remote_node_get_info_ret' has no member named 'nodes'
../qemud/remote_protocol.c:272: error: 'remote_node_get_info_ret' has no member named 'sockets'
../qemud/remote_protocol.c:274: error: 'remote_node_get_info_ret' has no member named 'cores'
../qemud/remote_protocol.c:276: error: 'remote_node_get_info_ret' has no member named 'threads'
../qemud/remote_protocol.c:279: warning: implicit declaration of function 'IXDR_PUT_INT32'
../qemud/remote_protocol.c:279: warning: nested extern declaration of 'IXDR_PUT_INT32'
../qemud/remote_protocol.c:279: error: 'remote_node_get_info_ret' has no member named 'cpus'
../qemud/remote_protocol.c:280: error: 'remote_node_get_info_ret' has no member named 'mhz'
../qemud/remote_protocol.c:281: error: 'remote_node_get_info_ret' has no member named 'nodes'
../qemud/remote_protocol.c:282: error: 'remote_node_get_info_ret' has no member named 'sockets'
../qemud/remote_protocol.c:283: error: 'remote_node_get_info_ret' has no member named 'cores'
../qemud/remote_protocol.c:284: error: 'remote_node_get_info_ret' has no member named 'threads'
../qemud/remote_protocol.c:291: error: 'remote_node_get_info_ret' has no member named 'memory'
../qemud/remote_protocol.c:295: error: 'remote_node_get_info_ret' has no member named 'cpus'
../qemud/remote_protocol.c:297: error: 'remote_node_get_info_ret' has no member named 'mhz'
../qemud/remote_protocol.c:299: error: 'remote_node_get_info_ret' has no member named 'nodes'
../qemud/remote_protocol.c:301: error: 'remote_node_get_info_ret' has no member named 'sockets'
../qemud/remote_protocol.c:303: error: 'remote_node_get_info_ret' has no member named 'cores'
../qemud/remote_protocol.c:305: error: 'remote_node_get_info_ret' has no member named 'threads'
../qemud/remote_protocol.c:308: error: 'remote_node_get_info_ret' has no member named 'cpus'
../qemud/remote_protocol.c:309: error: 'remote_node_get_info_ret' has no member named 'mhz'
../qemud/remote_protocol.c:310: error: 'remote_node_get_info_ret' has no member named 'nodes'
../qemud/remote_protocol.c:311: error: 'remote_node_get_info_ret' has no member named 'sockets'
../qemud/remote_protocol.c:312: error: 'remote_node_get_info_ret' has no member named 'cores'
../qemud/remote_protocol.c:313: error: 'remote_node_get_info_ret' has no member named 'threads'
../qemud/remote_protocol.c:321: error: 'remote_node_get_info_ret' has no member named 'memory'
../qemud/remote_protocol.c:323: error: 'remote_node_get_info_ret' has no member named 'cpus'
../qemud/remote_protocol.c:325: error: 'remote_node_get_info_ret' has no member named 'mhz'
../qemud/remote_protocol.c:327: error: 'remote_node_get_info_ret' has no member named 'nodes'
../qemud/remote_protocol.c:329: error: 'remote_node_get_info_ret' has no member named 'sockets'
../qemud/remote_protocol.c:331: error: 'remote_node_get_info_ret' has no member named 'cores'
../qemud/remote_protocol.c:333: error: 'remote_node_get_info_ret' has no member named 'threads'
../qemud/remote_protocol.c: In function 'xdr_remote_domain_block_stats_ret':
../qemud/remote_protocol.c:417: error: 'remote_domain_block_stats_ret' has no member named 'rd_req'
../qemud/remote_protocol.c:419: error: 'remote_domain_block_stats_ret' has no member named 'rd_bytes'
../qemud/remote_protocol.c:421: error: 'remote_domain_block_stats_ret' has no member named 'wr_req'
../qemud/remote_protocol.c:423: error: 'remote_domain_block_stats_ret' has no member named 'wr_bytes'
../qemud/remote_protocol.c:425: error: 'remote_domain_block_stats_ret' has no member named 'errs'
../qemud/remote_protocol.c: In function 'xdr_remote_domain_interface_stats_ret':
../qemud/remote_protocol.c:445: error: 'remote_domain_interface_stats_ret' has no member named 'rx_bytes'
../qemud/remote_protocol.c:447: error: 'remote_domain_interface_stats_ret' has no member named 'rx_packets'
../qemud/remote_protocol.c:449: error: 'remote_domain_interface_stats_ret' has no member named 'rx_errs'
../qemud/remote_protocol.c:451: error: 'remote_domain_interface_stats_ret' has no member named 'rx_drop'
../qemud/remote_protocol.c:453: error: 'remote_domain_interface_stats_ret' has no member named 'tx_bytes'
../qemud/remote_protocol.c:455: error: 'remote_domain_interface_stats_ret' has no member named 'tx_packets'
../qemud/remote_protocol.c:457: error: 'remote_domain_interface_stats_ret' has no member named 'tx_errs'
../qemud/remote_protocol.c:459: error: 'remote_domain_interface_stats_ret' has no member named 'tx_drop'
../qemud/remote_protocol.c: In function 'xdr_remote_domain_get_max_memory_ret':
../qemud/remote_protocol.c:645: error: 'remote_domain_get_max_memory_ret' has no member named 'memory'
../qemud/remote_protocol.c: In function 'xdr_remote_domain_set_max_memory_args':
../qemud/remote_protocol.c:656: error: 'remote_domain_set_max_memory_args' has no member named 'memory'
../qemud/remote_protocol.c: In function 'xdr_remote_domain_set_memory_args':
../qemud/remote_protocol.c:667: error: 'remote_domain_set_memory_args' has no member named 'memory'
../qemud/remote_protocol.c: In function 'xdr_remote_domain_get_info_ret':
../qemud/remote_protocol.c:687: error: 'remote_domain_get_info_ret' has no member named 'max_mem'
../qemud/remote_protocol.c:689: error: 'remote_domain_get_info_ret' has no member named 'memory'
../qemud/remote_protocol.c:691: error: 'remote_domain_get_info_ret' has no member named 'nr_virt_cpu'
../qemud/remote_protocol.c:693: error: 'remote_domain_get_info_ret' has no member named 'cpu_time'
../qemud/remote_protocol.c: In function 'xdr_remote_domain_migrate_prepare_args':
../qemud/remote_protocol.c:757: error: 'remote_domain_migrate_prepare_args' has no member named 'flags'
../qemud/remote_protocol.c:759: error: 'remote_domain_migrate_prepare_args' has no member named 'dname'
../qemud/remote_protocol.c:761: error: 'remote_domain_migrate_prepare_args' has no member named 'resource'
../qemud/remote_protocol.c: In function 'xdr_remote_domain_migrate_perform_args':
../qemud/remote_protocol.c:789: error: 'remote_domain_migrate_perform_args' has no member named 'flags'
../qemud/remote_protocol.c:791: error: 'remote_domain_migrate_perform_args' has no member named 'dname'
../qemud/remote_protocol.c:793: error: 'remote_domain_migrate_perform_args' has no member named 'resource'
../qemud/remote_protocol.c: In function 'xdr_remote_domain_migrate_finish_args':
../qemud/remote_protocol.c:809: error: 'remote_domain_migrate_finish_args' has no member named 'flags'
make[2]: *** [libvirt_la-remote_protocol.lo] Error 1
gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../qemud -I/usr/local/include/libxml2 -DBINDIR=\""/usr/local/libexec"\" -DSBINDIR=\""/usr/local/sbin"\" -DSYSCONF_DIR="\"/usr/local/etc\"" -DLOCALEBASEDIR=\""/usr/local/share/locale"\" -DLOCAL_STATE_DIR=\""/usr/local/var"\" -DGETTEXT_PACKAGE=\"libvirt\" -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DWITH_TEST -DWITH_REMOTE -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT virsh-virsh.o -MD -MP -MF .deps/virsh-virsh.Tpo -c -o virsh-virsh.o `test -f 'virsh.c' || echo './'`virsh.c
In file included from ../gnulib/lib/sys/stat.h:28,
from virsh.c:36:
../gnulib/lib/sys/stat.h:272: warning: unused parameter 'mode'
virsh.c:209: error: expected specifier-qualifier-list before 'uid_t'
virsh.c: In function 'cmdConnect':
virsh.c:436: error: 'vshControl' has no member named 'readonly'
virsh.c:439: error: 'vshControl' has no member named 'readonly'
virsh.c: In function 'cmdQuit':
virsh.c:3701: error: 'vshControl' has no member named 'imode'
virsh.c: In function 'vshCommandRun':
virsh.c:4101: error: 'vshControl' has no member named 'timing'
virsh.c:4106: error: 'vshControl' has no member named 'timing'
virsh.c:4112: error: 'vshControl' has no member named 'timing'
virsh.c: In function 'vshDebug':
virsh.c:4412: error: 'vshControl' has no member named 'debug'
virsh.c: In function 'vshPrintExtra':
virsh.c:4425: error: 'vshControl' has no member named 'quiet'
virsh.c: In function 'vshInit':
virsh.c:4521: error: 'vshControl' has no member named 'uid'
virsh.c:4521: warning: implicit declaration of function 'getuid'
virsh.c:4521: warning: nested extern declaration of 'getuid'
virsh.c:4530: error: 'vshControl' has no member named 'uid'
virsh.c:4531: error: 'vshControl' has no member named 'readonly'
virsh.c:4535: error: 'vshControl' has no member named 'readonly'
virsh.c: In function 'vshOpenLogFile':
virsh.c:4560: error: 'vshControl' has no member named 'logfile'
virsh.c:4564: error: 'vshControl' has no member named 'logfile'
virsh.c:4579: error: 'vshControl' has no member named 'log_fd'
virsh.c:4579: error: 'vshControl' has no member named 'logfile'
virsh.c:4579: error: 'O_SYNC' undeclared (first use in this function)
virsh.c:4579: error: (Each undeclared identifier is reported only once
virsh.c:4579: error: for each function it appears in.)
virsh.c: In function 'vshOutputLogFile':
virsh.c:4597: error: 'vshControl' has no member named 'log_fd'
virsh.c:4646: error: 'vshControl' has no member named 'log_fd'
virsh.c: In function 'vshCloseLogFile':
virsh.c:4661: error: 'vshControl' has no member named 'log_fd'
virsh.c:4662: error: 'vshControl' has no member named 'log_fd'
virsh.c:4664: error: 'vshControl' has no member named 'logfile'
virsh.c:4664: error: 'vshControl' has no member named 'logfile'
virsh.c:4665: error: 'vshControl' has no member named 'log_fd'
virsh.c:4668: error: 'vshControl' has no member named 'logfile'
virsh.c:4669: error: 'vshControl' has no member named 'logfile'
virsh.c:4670: error: 'vshControl' has no member named 'logfile'
virsh.c: In function 'vshParseArgv':
virsh.c:4948: error: 'vshControl' has no member named 'debug'
virsh.c:4954: error: 'vshControl' has no member named 'quiet'
virsh.c:4957: error: 'vshControl' has no member named 'timing'
virsh.c:4966: error: 'vshControl' has no member named 'readonly'
virsh.c:4969: error: 'vshControl' has no member named 'logfile'
virsh.c:4989: error: 'vshControl' has no member named 'imode'
virsh.c: In function 'main':
virsh.c:5021: warning: implicit declaration of function 'bindtextdomain'
virsh.c:5021: warning: nested extern declaration of 'bindtextdomain'
virsh.c:5025: warning: implicit declaration of function 'textdomain'
virsh.c:5025: warning: nested extern declaration of 'textdomain'
virsh.c:5036: error: 'vshControl' has no member named 'imode'
virsh.c:5037: error: 'vshControl' has no member named 'log_fd'
virsh.c:5053: error: 'vshControl' has no member named 'imode'
virsh.c:5057: error: 'vshControl' has no member named 'quiet'
virsh.c:5068: error: 'vshControl' has no member named 'uid'
virsh.c:5080: error: 'vshControl' has no member named 'imode'
make[2]: *** [virsh-virsh.o] Error 1
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/z/d/libvirt-mingw/src'
Making all in qemud
make[2]: Entering directory `/z/d/libvirt-mingw/qemud'
gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I/usr/local/include/libxml2 -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DLOCAL_STATE_DIR="\"/usr/local/var\"" -DSYSCONF_DIR="\"/usr/local/etc\"" -DQEMUD_PID_FILE="\"\"" -DREMOTE_PID_FILE="\"/usr/local/var/run/libvirtd.pid\"" -DGETTEXT_PACKAGE=\"libvirt\" -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT libvirtd-qemud.o -MD -MP -MF .deps/libvirtd-qemud.Tpo -c -o libvirtd-qemud.o `test -f 'qemud.c' || echo './'`qemud.c
qemud.c:27:22: error: sys/wait.h: No such file or directory
In file included from ../gnulib/lib/sys/stat.h:28,
from qemud.c:28:
../gnulib/lib/sys/stat.h:272: warning: unused parameter 'mode'
qemud.c:31:19: error: paths.h: No such file or directory
qemud.c:34:20: error: sys/un.h: No such file or directory
qemud.c:35:22: error: sys/poll.h: No such file or directory
qemud.c:37:25: error: netinet/tcp.h: No such file or directory
qemud.c:38:19: error: netdb.h: No such file or directory
qemud.c:40:17: error: pwd.h: No such file or directory
qemud.c:43:20: error: syslog.h: No such file or directory
qemud.c:48:21: error: fnmatch.h: No such file or directory
qemud.c:49:17: error: grp.h: No such file or directory
In file included from internal.h:44,
from qemud.c:53:
c:/oncrpc/rpc/xdr.h:116: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:127: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:128: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:129: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:130: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:131: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:132: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:133: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:134: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:242: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:243: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:244: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:245: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:246: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:247: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:248: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:249: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:250: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:251: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:252: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:253: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:254: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:255: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:256: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:257: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:258: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:259: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:260: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:261: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:262: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:263: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:275: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:281: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:282: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:283: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:284: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:285: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:286: warning: function declaration isn't a prototype
In file included from remote_protocol.h:9,
from internal.h:45,
from qemud.c:53:
c:/oncrpc/rpc/rpc.h:52:1: warning: "FD_SETSIZE" redefined
In file included from ../gnulib/lib/sys/socket.h:62,
from qemud.c:33:
c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/winsock2.h:46:1: warning: this is the location of the previous definition
In file included from remote_protocol.h:9,
from internal.h:45,
from qemud.c:53:
c:/oncrpc/rpc/rpc.h:71: warning: function declaration isn't a prototype
In file included from remote_protocol.h:9,
from internal.h:45,
from qemud.c:53:
c:/oncrpc/rpc/rpc.h:74: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:89,
from remote_protocol.h:9,
from internal.h:45,
from qemud.c:53:
c:/oncrpc/rpc/auth.h:105: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:125: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:126: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:127: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:128: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:129: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:196: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:197: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:198: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:199: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:92,
from remote_protocol.h:9,
from internal.h:45,
from qemud.c:53:
c:/oncrpc/rpc/clnt.h:134: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:135: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:136: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:137: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:138: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:139: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:256: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:263: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:284: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:307: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:308: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:313: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:314: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:319: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:324: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:325: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:353: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:95,
from remote_protocol.h:9,
from internal.h:45,
from qemud.c:53:
c:/oncrpc/rpc/rpc_msg.h:184: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:192: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:200: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:208: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:97,
from remote_protocol.h:9,
from internal.h:45,
from qemud.c:53:
c:/oncrpc/rpc/auth_uni.h:84: warning: function declaration isn't a prototype
In file included from remote_protocol.h:9,
from internal.h:45,
from qemud.c:53:
c:/oncrpc/rpc/rpc.h:105:29: warning: "/*" within comment
In file included from c:/oncrpc/rpc/rpc.h:108,
from remote_protocol.h:9,
from internal.h:45,
from qemud.c:53:
c:/oncrpc/rpc/svc.h:94: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:95: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:96: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:97: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:98: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:99: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:108,
from remote_protocol.h:9,
from internal.h:45,
from qemud.c:53:
c:/oncrpc/rpc/svc.h:173:19: warning: "/*" within comment
c:/oncrpc/rpc/svc.h:175: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:184: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:192: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:200: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:231: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:232: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:233: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:234: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:235: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:236: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:237: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:238: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:278: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:280: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:281: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:282: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:296: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:301: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:302: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:307: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:109,
from remote_protocol.h:9,
from internal.h:45,
from qemud.c:53:
c:/oncrpc/rpc/svc_auth.h:56: error: 'auth_stat' defined as wrong kind of tag
c:/oncrpc/rpc/svc_auth.h:56: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:117,
from remote_protocol.h:9,
from internal.h:45,
from qemud.c:53:
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
In file included from internal.h:45,
from qemud.c:53:
remote_protocol.h:78: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:88: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:124: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:145: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:201: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:216: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:328: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:334: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:340: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:351: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:389: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:411: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:424: error: expected specifier-qualifier-list before 'u_quad_t'
qemud.c:75: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'unix_sock_gid'
qemud.c:109: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sig_errors'
qemud.c: In function 'sig_handler':
qemud.c:117: error: 'SIGCHLD' undeclared (first use in this function)
qemud.c:117: error: (Each undeclared identifier is reported only once
qemud.c:117: error: for each function it appears in.)
qemud.c:123: error: 'sig_errors' undeclared (first use in this function)
qemud.c: In function 'qemudDispatchSignalEvent':
qemud.c:247: error: 'SIGHUP' undeclared (first use in this function)
qemud.c:253: error: 'SIGINT' undeclared (first use in this function)
qemud.c:254: error: 'SIGQUIT' undeclared (first use in this function)
qemud.c:255: error: 'SIGTERM' undeclared (first use in this function)
qemud.c: In function 'qemudSetCloseExec':
qemud.c:270: warning: implicit declaration of function 'fcntl'
qemud.c:270: warning: nested extern declaration of 'fcntl'
qemud.c:270: error: 'F_GETFD' undeclared (first use in this function)
qemud.c:272: error: 'FD_CLOEXEC' undeclared (first use in this function)
qemud.c:273: error: 'F_SETFD' undeclared (first use in this function)
qemud.c: In function 'qemudSetNonBlock':
qemud.c:284: error: 'F_GETFL' undeclared (first use in this function)
qemud.c:286: error: 'O_NONBLOCK' undeclared (first use in this function)
qemud.c:287: error: 'F_SETFL' undeclared (first use in this function)
qemud.c: In function 'qemudLog':
qemud.c:306: error: 'LOG_ERR' undeclared (first use in this function)
qemud.c:309: error: 'LOG_WARNING' undeclared (first use in this function)
qemud.c:313: error: 'LOG_INFO' undeclared (first use in this function)
qemud.c:326: warning: implicit declaration of function 'vsyslog'
qemud.c:326: warning: nested extern declaration of 'vsyslog'
qemud.c: In function 'qemudGoDaemon':
qemud.c:359: warning: implicit declaration of function 'fork'
qemud.c:367: error: '_PATH_DEVNULL' undeclared (first use in this function)
qemud.c:384: warning: implicit declaration of function 'setsid'
qemud.c:384: warning: nested extern declaration of 'setsid'
qemud.c:414: warning: implicit declaration of function 'waitpid'
qemud.c:414: warning: nested extern declaration of 'waitpid'
qemud.c: In function 'qemudListenUnix':
qemud.c:464: error: storage size of 'addr' isn't known
qemud.c:466: error: 'gid_t' undeclared (first use in this function)
qemud.c:466: error: expected ';' before 'oldgrp'
qemud.c:495: error: 'oldgrp' undeclared (first use in this function)
qemud.c:495: warning: implicit declaration of function 'getgid'
qemud.c:495: warning: nested extern declaration of 'getgid'
qemud.c:497: warning: implicit declaration of function 'getuid'
qemud.c:497: warning: nested extern declaration of 'getuid'
qemud.c:498: warning: implicit declaration of function 'setgid'
qemud.c:498: warning: nested extern declaration of 'setgid'
qemud.c:498: error: 'unix_sock_gid' undeclared (first use in this function)
qemud.c:516: error: 'POLLIN' undeclared (first use in this function)
qemud.c:516: error: 'POLLERR' undeclared (first use in this function)
qemud.c:516: error: 'POLLHUP' undeclared (first use in this function)
qemud.c:464: warning: unused variable 'addr'
qemud.c: In function 'remoteMakeSockets':
qemud.c:543: error: 'AI_ADDRCONFIG' undeclared (first use in this function)
qemud.c:562: warning: passing argument 4 of 'setsockopt' from incompatible pointer type
qemud.c: In function 'remoteListenTCP':
qemud.c:646: error: 'POLLIN' undeclared (first use in this function)
qemud.c:646: error: 'POLLERR' undeclared (first use in this function)
qemud.c:646: error: 'POLLHUP' undeclared (first use in this function)
qemud.c: In function 'qemudInitPaths':
qemud.c:663: error: 'uid_t' undeclared (first use in this function)
qemud.c:663: error: expected ';' before 'uid'
qemud.c:666: error: 'uid' undeclared (first use in this function)
qemud.c:684: warning: implicit declaration of function 'getpwuid'
qemud.c:684: warning: nested extern declaration of 'getpwuid'
qemud.c:684: warning: assignment makes pointer from integer without a cast
qemud.c:690: error: dereferencing pointer to incomplete type
qemud.c:693: error: dereferencing pointer to incomplete type
qemud.c:696: error: dereferencing pointer to incomplete type
qemud.c: In function 'remoteCheckDN':
qemud.c:912: warning: implicit declaration of function 'fnmatch'
qemud.c:912: warning: nested extern declaration of 'fnmatch'
qemud.c: In function 'qemudDispatchClientEvent':
qemud.c:1508: error: 'POLLOUT' undeclared (first use in this function)
qemud.c:1510: error: 'POLLIN' undeclared (first use in this function)
qemud.c: In function 'qemudRegisterClientEvent':
qemud.c:1523: error: 'POLLIN' undeclared (first use in this function)
qemud.c:1525: error: 'POLLOUT' undeclared (first use in this function)
qemud.c:1546: error: 'POLLERR' undeclared (first use in this function)
qemud.c:1546: error: 'POLLHUP' undeclared (first use in this function)
qemud.c: In function 'qemudOneLoop':
qemud.c:1574: error: 'sig_atomic_t' undeclared (first use in this function)
qemud.c:1574: error: expected ';' before 'errors'
qemud.c:1580: error: 'errors' undeclared (first use in this function)
qemud.c:1580: error: 'sig_errors' undeclared (first use in this function)
qemud.c: In function 'remoteReadConfigFile':
qemud.c:1890: warning: implicit declaration of function 'getgrnam'
qemud.c:1890: warning: nested extern declaration of 'getgrnam'
qemud.c:1890: warning: initialization makes pointer from integer without a cast
qemud.c:1896: error: 'unix_sock_gid' undeclared (first use in this function)
qemud.c:1896: error: dereferencing pointer to incomplete type
qemud.c: In function 'main':
qemud.c:2017: error: storage size of 'sig_action' isn't known
qemud.c:2086: warning: implicit declaration of function 'pipe'
qemud.c:2086: warning: nested extern declaration of 'pipe'
qemud.c:2106: warning: implicit declaration of function 'openlog'
qemud.c:2106: warning: nested extern declaration of 'openlog'
qemud.c:2128: warning: implicit declaration of function 'sigemptyset'
qemud.c:2128: warning: nested extern declaration of 'sigemptyset'
qemud.c:2130: warning: implicit declaration of function 'sigaction'
qemud.c:2130: warning: nested extern declaration of 'sigaction'
qemud.c:2130: error: 'SIGHUP' undeclared (first use in this function)
qemud.c:2131: error: 'SIGINT' undeclared (first use in this function)
qemud.c:2132: error: 'SIGQUIT' undeclared (first use in this function)
qemud.c:2133: error: 'SIGTERM' undeclared (first use in this function)
qemud.c:2134: error: 'SIGCHLD' undeclared (first use in this function)
qemud.c:2136: error: 'SIG_IGN' undeclared (first use in this function)
qemud.c:2137: error: 'SIGPIPE' undeclared (first use in this function)
qemud.c:2140: error: 'POLLIN' undeclared (first use in this function)
qemud.c:2160: warning: implicit declaration of function 'closelog'
qemud.c:2160: warning: nested extern declaration of 'closelog'
qemud.c:2017: warning: unused variable 'sig_action'
make[2]: *** [libvirtd-qemud.o] Error 1
gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I/usr/local/include/libxml2 -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DLOCAL_STATE_DIR="\"/usr/local/var\"" -DSYSCONF_DIR="\"/usr/local/etc\"" -DQEMUD_PID_FILE="\"\"" -DREMOTE_PID_FILE="\"/usr/local/var/run/libvirtd.pid\"" -DGETTEXT_PACKAGE=\"libvirt\" -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT libvirtd-remote_protocol.o -MD -MP -MF .deps/libvirtd-remote_protocol.Tpo -c -o libvirtd-remote_protocol.o `test -f 'remote_protocol.c' || echo './'`remote_protocol.c
In file included from ../gnulib/lib/string.h:23,
from c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/winnt.h:37,
from c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/windef.h:253,
from c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/windows.h:48,
from c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/winsock.h:19,
from c:/oncrpc/rpc/rpc.h:55,
from remote_protocol.h:9,
from remote_protocol.c:6:
../gnulib/lib/string.h:283: error: expected ';', ',' or ')' before '__stringp'
In file included from remote_protocol.h:9,
from remote_protocol.c:6:
c:/oncrpc/rpc/rpc.h:71: warning: function declaration isn't a prototype
In file included from remote_protocol.h:9,
from remote_protocol.c:6:
c:/oncrpc/rpc/rpc.h:74: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:86,
from remote_protocol.h:9,
from remote_protocol.c:6:
c:/oncrpc/rpc/xdr.h:116: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:127: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:128: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:129: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:130: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:131: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:132: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:133: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:134: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:242: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:243: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:244: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:245: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:246: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:247: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:248: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:249: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:250: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:251: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:252: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:253: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:254: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:255: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:256: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:257: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:258: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:259: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:260: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:261: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:262: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:263: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:275: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:281: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:282: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:283: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:284: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:285: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:286: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:89,
from remote_protocol.h:9,
from remote_protocol.c:6:
c:/oncrpc/rpc/auth.h:105: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:125: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:126: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:127: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:128: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:129: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:196: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:197: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:198: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:199: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:92,
from remote_protocol.h:9,
from remote_protocol.c:6:
c:/oncrpc/rpc/clnt.h:134: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:135: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:136: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:137: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:138: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:139: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:256: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:263: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:284: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:307: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:308: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:313: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:314: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:319: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:324: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:325: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:353: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:95,
from remote_protocol.h:9,
from remote_protocol.c:6:
c:/oncrpc/rpc/rpc_msg.h:184: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:192: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:200: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:208: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:97,
from remote_protocol.h:9,
from remote_protocol.c:6:
c:/oncrpc/rpc/auth_uni.h:84: warning: function declaration isn't a prototype
In file included from remote_protocol.h:9,
from remote_protocol.c:6:
c:/oncrpc/rpc/rpc.h:105:29: warning: "/*" within comment
In file included from c:/oncrpc/rpc/rpc.h:108,
from remote_protocol.h:9,
from remote_protocol.c:6:
c:/oncrpc/rpc/svc.h:94: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:95: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:96: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:97: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:98: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:99: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:108,
from remote_protocol.h:9,
from remote_protocol.c:6:
c:/oncrpc/rpc/svc.h:173:19: warning: "/*" within comment
c:/oncrpc/rpc/svc.h:175: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:184: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:192: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:200: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:231: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:232: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:233: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:234: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:235: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:236: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:237: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:238: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:278: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:280: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:281: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:282: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:296: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:301: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:302: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:307: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:109,
from remote_protocol.h:9,
from remote_protocol.c:6:
c:/oncrpc/rpc/svc_auth.h:56: error: 'auth_stat' defined as wrong kind of tag
c:/oncrpc/rpc/svc_auth.h:56: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:117,
from remote_protocol.h:9,
from remote_protocol.c:6:
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
In file included from remote_protocol.c:6:
remote_protocol.h:78: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:88: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:124: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:145: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:201: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:216: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:328: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:334: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:340: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:351: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:389: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:411: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:424: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.c: In function 'xdr_remote_vcpu_info':
remote_protocol.c:124: warning: implicit declaration of function 'xdr_u_quad_t'
remote_protocol.c:124: warning: nested extern declaration of 'xdr_u_quad_t'
remote_protocol.c:124: error: 'remote_vcpu_info' has no member named 'cpu_time'
remote_protocol.c:126: error: 'remote_vcpu_info' has no member named 'cpu'
remote_protocol.c: In function 'xdr_remote_sched_param_value':
remote_protocol.c:146: warning: implicit declaration of function 'xdr_quad_t'
remote_protocol.c:146: warning: nested extern declaration of 'xdr_quad_t'
remote_protocol.c:146: error: 'union <anonymous>' has no member named 'l'
remote_protocol.c:150: error: 'union <anonymous>' has no member named 'ul'
remote_protocol.c:154: error: 'union <anonymous>' has no member named 'd'
remote_protocol.c:158: error: 'union <anonymous>' has no member named 'b'
remote_protocol.c: In function 'xdr_remote_get_version_ret':
remote_protocol.c:220: error: 'remote_get_version_ret' has no member named 'hv_ver'
remote_protocol.c: In function 'xdr_remote_node_get_info_ret':
remote_protocol.c:255: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
remote_protocol.c:255: error: 'buf' undeclared (first use in this function)
remote_protocol.c:255: error: (Each undeclared identifier is reported only once
remote_protocol.c:255: error: for each function it appears in.)
remote_protocol.c:262: error: 'remote_node_get_info_ret' has no member named 'memory'
remote_protocol.c:266: error: 'remote_node_get_info_ret' has no member named 'cpus'
remote_protocol.c:268: error: 'remote_node_get_info_ret' has no member named 'mhz'
remote_protocol.c:270: error: 'remote_node_get_info_ret' has no member named 'nodes'
remote_protocol.c:272: error: 'remote_node_get_info_ret' has no member named 'sockets'
remote_protocol.c:274: error: 'remote_node_get_info_ret' has no member named 'cores'
remote_protocol.c:276: error: 'remote_node_get_info_ret' has no member named 'threads'
remote_protocol.c:279: warning: implicit declaration of function 'IXDR_PUT_INT32'
remote_protocol.c:279: warning: nested extern declaration of 'IXDR_PUT_INT32'
remote_protocol.c:279: error: 'remote_node_get_info_ret' has no member named 'cpus'
remote_protocol.c:280: error: 'remote_node_get_info_ret' has no member named 'mhz'
remote_protocol.c:281: error: 'remote_node_get_info_ret' has no member named 'nodes'
remote_protocol.c:282: error: 'remote_node_get_info_ret' has no member named 'sockets'
remote_protocol.c:283: error: 'remote_node_get_info_ret' has no member named 'cores'
remote_protocol.c:284: error: 'remote_node_get_info_ret' has no member named 'threads'
remote_protocol.c:291: error: 'remote_node_get_info_ret' has no member named 'memory'
remote_protocol.c:295: error: 'remote_node_get_info_ret' has no member named 'cpus'
remote_protocol.c:297: error: 'remote_node_get_info_ret' has no member named 'mhz'
remote_protocol.c:299: error: 'remote_node_get_info_ret' has no member named 'nodes'
remote_protocol.c:301: error: 'remote_node_get_info_ret' has no member named 'sockets'
remote_protocol.c:303: error: 'remote_node_get_info_ret' has no member named 'cores'
remote_protocol.c:305: error: 'remote_node_get_info_ret' has no member named 'threads'
remote_protocol.c:308: error: 'remote_node_get_info_ret' has no member named 'cpus'
remote_protocol.c:309: error: 'remote_node_get_info_ret' has no member named 'mhz'
remote_protocol.c:310: error: 'remote_node_get_info_ret' has no member named 'nodes'
remote_protocol.c:311: error: 'remote_node_get_info_ret' has no member named 'sockets'
remote_protocol.c:312: error: 'remote_node_get_info_ret' has no member named 'cores'
remote_protocol.c:313: error: 'remote_node_get_info_ret' has no member named 'threads'
remote_protocol.c:321: error: 'remote_node_get_info_ret' has no member named 'memory'
remote_protocol.c:323: error: 'remote_node_get_info_ret' has no member named 'cpus'
remote_protocol.c:325: error: 'remote_node_get_info_ret' has no member named 'mhz'
remote_protocol.c:327: error: 'remote_node_get_info_ret' has no member named 'nodes'
remote_protocol.c:329: error: 'remote_node_get_info_ret' has no member named 'sockets'
remote_protocol.c:331: error: 'remote_node_get_info_ret' has no member named 'cores'
remote_protocol.c:333: error: 'remote_node_get_info_ret' has no member named 'threads'
remote_protocol.c: In function 'xdr_remote_domain_block_stats_ret':
remote_protocol.c:417: error: 'remote_domain_block_stats_ret' has no member named 'rd_req'
remote_protocol.c:419: error: 'remote_domain_block_stats_ret' has no member named 'rd_bytes'
remote_protocol.c:421: error: 'remote_domain_block_stats_ret' has no member named 'wr_req'
remote_protocol.c:423: error: 'remote_domain_block_stats_ret' has no member named 'wr_bytes'
remote_protocol.c:425: error: 'remote_domain_block_stats_ret' has no member named 'errs'
remote_protocol.c: In function 'xdr_remote_domain_interface_stats_ret':
remote_protocol.c:445: error: 'remote_domain_interface_stats_ret' has no member named 'rx_bytes'
remote_protocol.c:447: error: 'remote_domain_interface_stats_ret' has no member named 'rx_packets'
remote_protocol.c:449: error: 'remote_domain_interface_stats_ret' has no member named 'rx_errs'
remote_protocol.c:451: error: 'remote_domain_interface_stats_ret' has no member named 'rx_drop'
remote_protocol.c:453: error: 'remote_domain_interface_stats_ret' has no member named 'tx_bytes'
remote_protocol.c:455: error: 'remote_domain_interface_stats_ret' has no member named 'tx_packets'
remote_protocol.c:457: error: 'remote_domain_interface_stats_ret' has no member named 'tx_errs'
remote_protocol.c:459: error: 'remote_domain_interface_stats_ret' has no member named 'tx_drop'
remote_protocol.c: In function 'xdr_remote_domain_get_max_memory_ret':
remote_protocol.c:645: error: 'remote_domain_get_max_memory_ret' has no member named 'memory'
remote_protocol.c: In function 'xdr_remote_domain_set_max_memory_args':
remote_protocol.c:656: error: 'remote_domain_set_max_memory_args' has no member named 'memory'
remote_protocol.c: In function 'xdr_remote_domain_set_memory_args':
remote_protocol.c:667: error: 'remote_domain_set_memory_args' has no member named 'memory'
remote_protocol.c: In function 'xdr_remote_domain_get_info_ret':
remote_protocol.c:687: error: 'remote_domain_get_info_ret' has no member named 'max_mem'
remote_protocol.c:689: error: 'remote_domain_get_info_ret' has no member named 'memory'
remote_protocol.c:691: error: 'remote_domain_get_info_ret' has no member named 'nr_virt_cpu'
remote_protocol.c:693: error: 'remote_domain_get_info_ret' has no member named 'cpu_time'
remote_protocol.c: In function 'xdr_remote_domain_migrate_prepare_args':
remote_protocol.c:757: error: 'remote_domain_migrate_prepare_args' has no member named 'flags'
remote_protocol.c:759: error: 'remote_domain_migrate_prepare_args' has no member named 'dname'
remote_protocol.c:761: error: 'remote_domain_migrate_prepare_args' has no member named 'resource'
remote_protocol.c: In function 'xdr_remote_domain_migrate_perform_args':
remote_protocol.c:789: error: 'remote_domain_migrate_perform_args' has no member named 'flags'
remote_protocol.c:791: error: 'remote_domain_migrate_perform_args' has no member named 'dname'
remote_protocol.c:793: error: 'remote_domain_migrate_perform_args' has no member named 'resource'
remote_protocol.c: In function 'xdr_remote_domain_migrate_finish_args':
remote_protocol.c:809: error: 'remote_domain_migrate_finish_args' has no member named 'flags'
make[2]: *** [libvirtd-remote_protocol.o] Error 1
gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I/usr/local/include/libxml2 -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DLOCAL_STATE_DIR="\"/usr/local/var\"" -DSYSCONF_DIR="\"/usr/local/etc\"" -DQEMUD_PID_FILE="\"\"" -DREMOTE_PID_FILE="\"/usr/local/var/run/libvirtd.pid\"" -DGETTEXT_PACKAGE=\"libvirt\" -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT libvirtd-remote.o -MD -MP -MF .deps/libvirtd-remote.Tpo -c -o libvirtd-remote.o `test -f 'remote.c' || echo './'`remote.c
remote.c:26:22: error: sys/wait.h: No such file or directory
In file included from ../gnulib/lib/sys/stat.h:28,
from remote.c:27:
../gnulib/lib/sys/stat.h:272: warning: unused parameter 'mode'
remote.c:30:19: error: paths.h: No such file or directory
remote.c:33:20: error: sys/un.h: No such file or directory
remote.c:34:22: error: sys/poll.h: No such file or directory
remote.c:36:19: error: netdb.h: No such file or directory
remote.c:38:17: error: pwd.h: No such file or directory
remote.c:41:20: error: syslog.h: No such file or directory
remote.c:47:21: error: fnmatch.h: No such file or directory
In file included from internal.h:44,
from remote.c:56:
c:/oncrpc/rpc/xdr.h:116: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:127: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:128: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:129: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:130: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:131: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:132: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:133: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:134: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:242: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:243: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:244: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:245: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:246: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:247: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:248: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:249: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:250: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:251: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:252: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:253: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:254: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:255: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:256: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:257: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:258: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:259: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:260: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:261: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:262: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:263: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:275: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:281: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:282: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:283: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:284: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:285: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:286: warning: function declaration isn't a prototype
In file included from remote_protocol.h:9,
from internal.h:45,
from remote.c:56:
c:/oncrpc/rpc/rpc.h:52:1: warning: "FD_SETSIZE" redefined
In file included from ../gnulib/lib/sys/socket.h:62,
from remote.c:32:
c:\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/winsock2.h:46:1: warning: this is the location of the previous definition
In file included from remote_protocol.h:9,
from internal.h:45,
from remote.c:56:
c:/oncrpc/rpc/rpc.h:71: warning: function declaration isn't a prototype
In file included from remote_protocol.h:9,
from internal.h:45,
from remote.c:56:
c:/oncrpc/rpc/rpc.h:74: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:89,
from remote_protocol.h:9,
from internal.h:45,
from remote.c:56:
c:/oncrpc/rpc/auth.h:105: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:125: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:126: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:127: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:128: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:129: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:196: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:197: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:198: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:199: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:92,
from remote_protocol.h:9,
from internal.h:45,
from remote.c:56:
c:/oncrpc/rpc/clnt.h:134: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:135: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:136: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:137: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:138: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:139: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:256: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:263: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:284: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:307: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:308: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:313: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:314: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:319: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:324: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:325: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:353: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:95,
from remote_protocol.h:9,
from internal.h:45,
from remote.c:56:
c:/oncrpc/rpc/rpc_msg.h:184: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:192: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:200: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:208: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:97,
from remote_protocol.h:9,
from internal.h:45,
from remote.c:56:
c:/oncrpc/rpc/auth_uni.h:84: warning: function declaration isn't a prototype
In file included from remote_protocol.h:9,
from internal.h:45,
from remote.c:56:
c:/oncrpc/rpc/rpc.h:105:29: warning: "/*" within comment
In file included from c:/oncrpc/rpc/rpc.h:108,
from remote_protocol.h:9,
from internal.h:45,
from remote.c:56:
c:/oncrpc/rpc/svc.h:94: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:95: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:96: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:97: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:98: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:99: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:108,
from remote_protocol.h:9,
from internal.h:45,
from remote.c:56:
c:/oncrpc/rpc/svc.h:173:19: warning: "/*" within comment
c:/oncrpc/rpc/svc.h:175: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:184: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:192: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:200: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:231: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:232: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:233: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:234: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:235: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:236: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:237: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:238: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:278: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:280: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:281: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:282: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:296: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:301: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:302: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:307: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:109,
from remote_protocol.h:9,
from internal.h:45,
from remote.c:56:
c:/oncrpc/rpc/svc_auth.h:56: error: 'auth_stat' defined as wrong kind of tag
c:/oncrpc/rpc/svc_auth.h:56: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:117,
from remote_protocol.h:9,
from internal.h:45,
from remote.c:56:
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
In file included from internal.h:45,
from remote.c:56:
remote_protocol.h:78: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:88: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:124: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:145: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:201: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:216: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:328: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:334: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:340: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:351: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:389: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:411: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:424: error: expected specifier-qualifier-list before 'u_quad_t'
remote.c: In function 'remoteDispatchClientRequest':
remote.c:173: warning: implicit declaration of function 'xdr_free'
remote.c:173: warning: nested extern declaration of 'xdr_free'
remote.c: In function 'remoteDispatchGetVersion':
remote.c:514: error: 'remote_get_version_ret' has no member named 'hv_ver'
remote.c: In function 'remoteDispatchNodeGetInfo':
remote.c:566: error: 'remote_node_get_info_ret' has no member named 'memory'
remote.c:567: error: 'remote_node_get_info_ret' has no member named 'cpus'
remote.c:568: error: 'remote_node_get_info_ret' has no member named 'mhz'
remote.c:569: error: 'remote_node_get_info_ret' has no member named 'nodes'
remote.c:570: error: 'remote_node_get_info_ret' has no member named 'sockets'
remote.c:571: error: 'remote_node_get_info_ret' has no member named 'cores'
remote.c:572: error: 'remote_node_get_info_ret' has no member named 'threads'
remote.c: In function 'remoteDispatchDomainGetSchedulerParameters':
remote.c:691: error: 'union <anonymous>' has no member named 'l'
remote.c:693: error: 'union <anonymous>' has no member named 'ul'
remote.c:695: error: 'union <anonymous>' has no member named 'd'
remote.c:697: error: 'union <anonymous>' has no member named 'b'
remote.c: In function 'remoteDispatchDomainSetSchedulerParameters':
remote.c:747: error: 'union <anonymous>' has no member named 'l'
remote.c:749: error: 'union <anonymous>' has no member named 'ul'
remote.c:751: error: 'union <anonymous>' has no member named 'd'
remote.c:753: error: 'union <anonymous>' has no member named 'b'
remote.c: In function 'remoteDispatchDomainBlockStats':
remote.c:794: error: 'remote_domain_block_stats_ret' has no member named 'rd_req'
remote.c:795: error: 'remote_domain_block_stats_ret' has no member named 'rd_bytes'
remote.c:796: error: 'remote_domain_block_stats_ret' has no member named 'wr_req'
remote.c:797: error: 'remote_domain_block_stats_ret' has no member named 'wr_bytes'
remote.c:798: error: 'remote_domain_block_stats_ret' has no member named 'errs'
remote.c: In function 'remoteDispatchDomainInterfaceStats':
remote.c:825: error: 'remote_domain_interface_stats_ret' has no member named 'rx_bytes'
remote.c:826: error: 'remote_domain_interface_stats_ret' has no member named 'rx_packets'
remote.c:827: error: 'remote_domain_interface_stats_ret' has no member named 'rx_errs'
remote.c:828: error: 'remote_domain_interface_stats_ret' has no member named 'rx_drop'
remote.c:829: error: 'remote_domain_interface_stats_ret' has no member named 'tx_bytes'
remote.c:830: error: 'remote_domain_interface_stats_ret' has no member named 'tx_packets'
remote.c:831: error: 'remote_domain_interface_stats_ret' has no member named 'tx_errs'
remote.c:832: error: 'remote_domain_interface_stats_ret' has no member named 'tx_drop'
remote.c: In function 'remoteDispatchDomainGetInfo':
remote.c:1043: error: 'remote_domain_get_info_ret' has no member named 'max_mem'
remote.c:1044: error: 'remote_domain_get_info_ret' has no member named 'memory'
remote.c:1045: error: 'remote_domain_get_info_ret' has no member named 'nr_virt_cpu'
remote.c:1046: error: 'remote_domain_get_info_ret' has no member named 'cpu_time'
remote.c: In function 'remoteDispatchDomainGetMaxMemory':
remote.c:1069: error: 'remote_domain_get_max_memory_ret' has no member named 'memory'
remote.c:1070: error: 'remote_domain_get_max_memory_ret' has no member named 'memory'
remote.c: In function 'remoteDispatchDomainGetVcpus':
remote.c:1179: error: 'remote_vcpu_info' has no member named 'cpu_time'
remote.c:1180: error: 'remote_vcpu_info' has no member named 'cpu'
remote.c: In function 'remoteDispatchDomainMigratePrepare':
remote.c:1210: error: 'remote_domain_migrate_prepare_args' has no member named 'dname'
remote.c:1210: error: 'remote_domain_migrate_prepare_args' has no member named 'dname'
remote.c:1217: error: 'remote_domain_migrate_prepare_args' has no member named 'flags'
remote.c:1217: error: 'remote_domain_migrate_prepare_args' has no member named 'resource'
remote.c: In function 'remoteDispatchDomainMigratePerform':
remote.c:1248: error: 'remote_domain_migrate_perform_args' has no member named 'dname'
remote.c:1248: error: 'remote_domain_migrate_perform_args' has no member named 'dname'
remote.c:1254: error: 'remote_domain_migrate_perform_args' has no member named 'flags'
remote.c:1254: error: 'remote_domain_migrate_perform_args' has no member named 'resource'
remote.c: In function 'remoteDispatchDomainMigrateFinish':
remote.c:1274: error: 'remote_domain_migrate_finish_args' has no member named 'flags'
remote.c: In function 'remoteDispatchDomainSetMaxMemory':
remote.c:1562: error: 'remote_domain_set_max_memory_args' has no member named 'memory'
remote.c: In function 'remoteDispatchDomainSetMemory':
remote.c:1586: error: 'remote_domain_set_memory_args' has no member named 'memory'
make[2]: *** [libvirtd-remote.o] Error 1
gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I/usr/local/include/libxml2 -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DLOCAL_STATE_DIR="\"/usr/local/var\"" -DSYSCONF_DIR="\"/usr/local/etc\"" -DQEMUD_PID_FILE="\"\"" -DREMOTE_PID_FILE="\"/usr/local/var/run/libvirtd.pid\"" -DGETTEXT_PACKAGE=\"libvirt\" -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT libvirtd-event.o -MD -MP -MF .deps/libvirtd-event.Tpo -c -o libvirtd-event.o `test -f 'event.c' || echo './'`event.c
In file included from internal.h:44,
from event.c:32:
c:/oncrpc/rpc/xdr.h:116: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:127: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:128: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:129: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:130: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:131: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:132: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:133: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:134: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:242: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:243: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:244: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:245: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:246: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:247: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:248: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:249: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:250: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:251: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:252: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:253: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:254: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:255: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:256: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:257: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:258: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:259: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:260: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:261: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:262: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:263: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:275: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:281: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:282: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:283: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:284: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:285: warning: function declaration isn't a prototype
c:/oncrpc/rpc/xdr.h:286: warning: function declaration isn't a prototype
In file included from remote_protocol.h:9,
from internal.h:45,
from event.c:32:
c:/oncrpc/rpc/rpc.h:71: warning: function declaration isn't a prototype
In file included from remote_protocol.h:9,
from internal.h:45,
from event.c:32:
c:/oncrpc/rpc/rpc.h:74: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:89,
from remote_protocol.h:9,
from internal.h:45,
from event.c:32:
c:/oncrpc/rpc/auth.h:105: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:125: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:126: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:127: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:128: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:129: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:196: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:197: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:198: warning: function declaration isn't a prototype
c:/oncrpc/rpc/auth.h:199: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:92,
from remote_protocol.h:9,
from internal.h:45,
from event.c:32:
c:/oncrpc/rpc/clnt.h:134: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:135: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:136: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:137: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:138: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:139: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:256: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:263: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:284: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:307: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:308: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:313: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:314: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:319: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:324: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:325: warning: function declaration isn't a prototype
c:/oncrpc/rpc/clnt.h:353: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:95,
from remote_protocol.h:9,
from internal.h:45,
from event.c:32:
c:/oncrpc/rpc/rpc_msg.h:184: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:192: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:200: warning: function declaration isn't a prototype
c:/oncrpc/rpc/rpc_msg.h:208: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:97,
from remote_protocol.h:9,
from internal.h:45,
from event.c:32:
c:/oncrpc/rpc/auth_uni.h:84: warning: function declaration isn't a prototype
In file included from remote_protocol.h:9,
from internal.h:45,
from event.c:32:
c:/oncrpc/rpc/rpc.h:105:29: warning: "/*" within comment
In file included from c:/oncrpc/rpc/rpc.h:108,
from remote_protocol.h:9,
from internal.h:45,
from event.c:32:
c:/oncrpc/rpc/svc.h:94: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:95: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:96: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:97: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:98: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:99: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:108,
from remote_protocol.h:9,
from internal.h:45,
from event.c:32:
c:/oncrpc/rpc/svc.h:173:19: warning: "/*" within comment
c:/oncrpc/rpc/svc.h:175: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:184: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:192: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:200: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:231: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:232: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:233: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:234: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:235: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:236: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:237: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:238: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:278: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:280: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:281: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:282: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:296: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:301: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:302: warning: function declaration isn't a prototype
c:/oncrpc/rpc/svc.h:307: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:109,
from remote_protocol.h:9,
from internal.h:45,
from event.c:32:
c:/oncrpc/rpc/svc_auth.h:56: error: 'auth_stat' defined as wrong kind of tag
c:/oncrpc/rpc/svc_auth.h:56: warning: function declaration isn't a prototype
In file included from c:/oncrpc/rpc/rpc.h:117,
from remote_protocol.h:9,
from internal.h:45,
from event.c:32:
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
c:/oncrpc/rpc/netdb.h:51: warning: function declaration isn't a prototype
In file included from internal.h:45,
from event.c:32:
remote_protocol.h:78: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:88: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:124: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:145: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:201: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:216: error: expected specifier-qualifier-list before 'quad_t'
remote_protocol.h:328: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:334: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:340: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:351: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:389: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:411: error: expected specifier-qualifier-list before 'u_quad_t'
remote_protocol.h:424: error: expected specifier-qualifier-list before 'u_quad_t'
In file included from event.c:32:
internal.h:101: error: field 'addr' has incomplete type
internal.h:102: error: expected specifier-qualifier-list before 'socklen_t'
internal.h:154: error: 'PATH_MAX' undeclared here (not in a function)
make[2]: *** [libvirtd-event.o] Error 1
make[2]: *** No rule to make target `../src/libvirt.la', needed by `libvirtd.exe'.
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/z/d/libvirt-mingw/qemud'
Making all in proxy
make[2]: Entering directory `/z/d/libvirt-mingw/proxy'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/z/d/libvirt-mingw/proxy'
Making all in docs
make[2]: Entering directory `/z/d/libvirt-mingw/docs'
Making all in .
make[3]: Entering directory `/z/d/libvirt-mingw/docs'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/z/d/libvirt-mingw/docs'
Making all in examples
make[3]: Entering directory `/z/d/libvirt-mingw/docs/examples'
Making all in python
make[4]: Entering directory `/z/d/libvirt-mingw/docs/examples/python'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/z/d/libvirt-mingw/docs/examples/python'
make[4]: Entering directory `/z/d/libvirt-mingw/docs/examples'
make[4]: *** No rule to make target `../../src/libvirt.la', needed by `info1.exe'.
make[4]: Target `all-am' not remade because of errors.
make[4]: Leaving directory `/z/d/libvirt-mingw/docs/examples'
make[3]: *** [all-recursive] Error 1
make[3]: Target `all' not remade because of errors.
make[3]: Leaving directory `/z/d/libvirt-mingw/docs/examples'
Making all in devhelp
make[3]: Entering directory `/z/d/libvirt-mingw/docs/devhelp'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/z/d/libvirt-mingw/docs/devhelp'
make[2]: *** [all-recursive] Error 1
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/z/d/libvirt-mingw/docs'
Making all in gnulib/tests
make[2]: Entering directory `/z/d/libvirt-mingw/gnulib/tests'
make all-recursive
make[3]: Entering directory `/z/d/libvirt-mingw/gnulib/tests'
make[4]: Entering directory `/z/d/libvirt-mingw/gnulib/tests'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/z/d/libvirt-mingw/gnulib/tests'
make[3]: Leaving directory `/z/d/libvirt-mingw/gnulib/tests'
make[2]: Leaving directory `/z/d/libvirt-mingw/gnulib/tests'
Making all in tests
make[2]: Entering directory `/z/d/libvirt-mingw/tests'
Making all in virshdata
make[3]: Entering directory `/z/d/libvirt-mingw/tests/virshdata'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/z/d/libvirt-mingw/tests/virshdata'
Making all in confdata
make[3]: Entering directory `/z/d/libvirt-mingw/tests/confdata'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/z/d/libvirt-mingw/tests/confdata'
Making all in sexpr2xmldata
make[3]: Entering directory `/z/d/libvirt-mingw/tests/sexpr2xmldata'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/z/d/libvirt-mingw/tests/sexpr2xmldata'
Making all in xml2sexprdata
make[3]: Entering directory `/z/d/libvirt-mingw/tests/xml2sexprdata'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/z/d/libvirt-mingw/tests/xml2sexprdata'
Making all in xmconfigdata
make[3]: Entering directory `/z/d/libvirt-mingw/tests/xmconfigdata'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/z/d/libvirt-mingw/tests/xmconfigdata'
Making all in xencapsdata
make[3]: Entering directory `/z/d/libvirt-mingw/tests/xencapsdata'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/z/d/libvirt-mingw/tests/xencapsdata'
make[3]: Entering directory `/z/d/libvirt-mingw/tests'
gcc-sjlj -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../src -I../include -I../src -I/usr/local/include/libxml2 -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=199506L -DGETTEXT_PACKAGE=\"libvirt\" -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DWITH_TEST -DWITH_REMOTE -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -MT testutils.o -MD -MP -MF .deps/testutils.Tpo -c -o testutils.o testutils.c
In file included from ../gnulib/lib/sys/stat.h:28,
from testutils.c:17:
../gnulib/lib/sys/stat.h:272: warning: unused parameter 'mode'
testutils.c:18:22: error: sys/wait.h: No such file or directory
testutils.c: In function 'virtTestCaptureProgramExecChild':
testutils.c:137: warning: implicit declaration of function 'sysconf'
testutils.c:137: warning: nested extern declaration of 'sysconf'
testutils.c:137: error: '_SC_OPEN_MAX' undeclared (first use in this function)
testutils.c:137: error: (Each undeclared identifier is reported only once
testutils.c:137: error: for each function it appears in.)
testutils.c:153: warning: passing argument 2 of 'execve' from incompatible pointer type
testutils.c:153: warning: passing argument 3 of 'execve' from incompatible pointer type
testutils.c: In function 'virtTestCaptureProgramOutput':
testutils.c:168: warning: implicit declaration of function 'pipe'
testutils.c:168: warning: nested extern declaration of 'pipe'
testutils.c:171: warning: implicit declaration of function 'fork'
testutils.c:202: warning: implicit declaration of function 'waitpid'
testutils.c:202: warning: nested extern declaration of 'waitpid'
make[3]: *** [testutils.o] Error 1
/bin/sh ../libtool --tag=CC --mode=link gcc-sjlj -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -L /c/Users/rjones/Desktop/gnutls/lib -L /c/oncrpc/bin -o conftest.exe conftest.o -L/usr/local/lib -lxml2 -lws2_32 -lgnutls -lws2_32 -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables ../src/.libs/libvirt_la-bridge.o ../src/.libs/libvirt_la-buf.o ../src/.libs/libvirt_la-conf.o ../src/.libs/libvirt_la-event.o ../src/.libs/libvirt_la-hash.o ../src/.libs/libvirt_la-libvirt.o ../src/.libs/libvirt_la-nodeinfo.o ../src/.libs/libvirt_la-openvz_conf.o ../src/.libs/libvirt_la-openvz_driver.o ../src/.libs/libvirt_la-proxy_internal.o ../src/.libs/libvirt_la-qemu_conf.o ../src/.libs/libvirt_la-qemu_driver.o ../src/.libs/libvirt_la-sexpr.o ../src/.libs/libvirt_la-stats_linux.o ../src/.libs/libvirt_la-test.o ../src/.libs/libvirt_la-uuid.o ../src/.libs/libvirt_la-virterror.o ../src/.libs/libvirt_la-xen_internal.o ../src/.libs/libvirt_la-xen_unified.o ../src/.libs/libvirt_la-xend_internal.o ../src/.libs/libvirt_la-xm_internal.o ../src/.libs/libvirt_la-xml.o ../src/.libs/libvirt_la-xs_internal.o ../gnulib/lib/libgnu.la -lws2_32
gcc-sjlj -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc /c/Users/rjones/Desktop/gnutls/lib /c/oncrpc/bin -o conftest.exe conftest.o -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables ../src/.libs/libvirt_la-bridge.o ../src/.libs/libvirt_la-buf.o ../src/.libs/libvirt_la-conf.o ../src/.libs/libvirt_la-event.o ../src/.libs/libvirt_la-hash.o ../src/.libs/libvirt_la-libvirt.o ../src/.libs/libvirt_la-nodeinfo.o ../src/.libs/libvirt_la-openvz_conf.o ../src/.libs/libvirt_la-openvz_driver.o ../src/.libs/libvirt_la-proxy_internal.o ../src/.libs/libvirt_la-qemu_conf.o ../src/.libs/libvirt_la-qemu_driver.o ../src/.libs/libvirt_la-sexpr.o ../src/.libs/libvirt_la-stats_linux.o ../src/.libs/libvirt_la-test.o ../src/.libs/libvirt_la-uuid.o ../src/.libs/libvirt_la-virterror.o ../src/.libs/libvirt_la-xen_internal.o ../src/.libs/libvirt_la-xen_unified.o ../src/.libs/libvirt_la-xend_internal.o ../src/.libs/libvirt_la-xm_internal.o ../src/.libs/libvirt_la-xml.o ../src/.libs/libvirt_la-xs_internal.o -L/z/d/libvirt-mingw/tests -L/usr/local/lib /usr/local/lib/libxml2.dll.a -lgnutls ../gnulib/lib/.libs/libgnu.a -L/z/d/libvirt-mingw/gnulib/lib -lws2_32 -L/usr/local/lib -L/usr/local/lib
c:/mingw/bin/../lib/gcc/mingw32/4.2.1-sjlj/../../../../mingw32/bin/ld.exe: c:/Users/rjones/Desktop/gnutls/lib: No such file: Permission denied
collect2: ld returned 1 exit status
make[3]: *** [conftest.exe] Error 1
/bin/sh ../libtool --tag=CC --mode=link gcc-sjlj -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc -L /c/Users/rjones/Desktop/gnutls/lib -L /c/oncrpc/bin -o reconnect.exe reconnect.o -L/usr/local/lib -lxml2 -lws2_32 -lgnutls -lws2_32 -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables ../src/.libs/libvirt_la-bridge.o ../src/.libs/libvirt_la-buf.o ../src/.libs/libvirt_la-conf.o ../src/.libs/libvirt_la-event.o ../src/.libs/libvirt_la-hash.o ../src/.libs/libvirt_la-libvirt.o ../src/.libs/libvirt_la-nodeinfo.o ../src/.libs/libvirt_la-openvz_conf.o ../src/.libs/libvirt_la-openvz_driver.o ../src/.libs/libvirt_la-proxy_internal.o ../src/.libs/libvirt_la-qemu_conf.o ../src/.libs/libvirt_la-qemu_driver.o ../src/.libs/libvirt_la-sexpr.o ../src/.libs/libvirt_la-stats_linux.o ../src/.libs/libvirt_la-test.o ../src/.libs/libvirt_la-uuid.o ../src/.libs/libvirt_la-virterror.o ../src/.libs/libvirt_la-xen_internal.o ../src/.libs/libvirt_la-xen_unified.o ../src/.libs/libvirt_la-xend_internal.o ../src/.libs/libvirt_la-xm_internal.o ../src/.libs/libvirt_la-xml.o ../src/.libs/libvirt_la-xs_internal.o ../gnulib/lib/libgnu.la -lws2_32
gcc-sjlj -I /c/Users/rjones/Desktop/gnutls/include -I /c/oncrpc /c/Users/rjones/Desktop/gnutls/lib /c/oncrpc/bin -o reconnect.exe reconnect.o -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables ../src/.libs/libvirt_la-bridge.o ../src/.libs/libvirt_la-buf.o ../src/.libs/libvirt_la-conf.o ../src/.libs/libvirt_la-event.o ../src/.libs/libvirt_la-hash.o ../src/.libs/libvirt_la-libvirt.o ../src/.libs/libvirt_la-nodeinfo.o ../src/.libs/libvirt_la-openvz_conf.o ../src/.libs/libvirt_la-openvz_driver.o ../src/.libs/libvirt_la-proxy_internal.o ../src/.libs/libvirt_la-qemu_conf.o ../src/.libs/libvirt_la-qemu_driver.o ../src/.libs/libvirt_la-sexpr.o ../src/.libs/libvirt_la-stats_linux.o ../src/.libs/libvirt_la-test.o ../src/.libs/libvirt_la-uuid.o ../src/.libs/libvirt_la-virterror.o ../src/.libs/libvirt_la-xen_internal.o ../src/.libs/libvirt_la-xen_unified.o ../src/.libs/libvirt_la-xend_internal.o ../src/.libs/libvirt_la-xm_internal.o ../src/.libs/libvirt_la-xml.o ../src/.libs/libvirt_la-xs_internal.o -L/z/d/libvirt-mingw/tests -L/usr/local/lib /usr/local/lib/libxml2.dll.a -lgnutls ../gnulib/lib/.libs/libgnu.a -L/z/d/libvirt-mingw/gnulib/lib -lws2_32 -L/usr/local/lib -L/usr/local/lib
c:/mingw/bin/../lib/gcc/mingw32/4.2.1-sjlj/../../../../mingw32/bin/ld.exe: c:/Users/rjones/Desktop/gnutls/lib: No such file: Permission denied
collect2: ld returned 1 exit status
make[3]: *** [reconnect.exe] Error 1
make[3]: Target `all-am' not remade because of errors.
make[3]: Leaving directory `/z/d/libvirt-mingw/tests'
make[2]: *** [all-recursive] Error 1
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/z/d/libvirt-mingw/tests'
Making all in po
make[2]: Entering directory `/z/d/libvirt-mingw/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/z/d/libvirt-mingw/po'
Making all in scripts
make[2]: Entering directory `/z/d/libvirt-mingw/scripts'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/z/d/libvirt-mingw/scripts'
make[2]: Entering directory `/z/d/libvirt-mingw'
make[2]: Leaving directory `/z/d/libvirt-mingw'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/z/d/libvirt-mingw'
make: *** [all] Error 2
2
8
This is the last of the non-generated files requiring #include "config.h":
Include "config.h" in remaining non-generated files.
* docs/examples/info1.c: Likewise.
* docs/examples/suspend.c: Likewise.
* proxy/libvirt_proxy.c: Likewise.
* python/libvir.c: Likewise.
* python/types.c: Likewise.
* src/event.c: Likewise.
* src/xm_internal.c: Likewise.
* tests/reconnect.c: Likewise.
* tests/testutils.c: Likewise.
Signed-off-by: Jim Meyering <meyering(a)redhat.com>
---
docs/examples/info1.c | 2 ++
docs/examples/suspend.c | 2 ++
proxy/libvirt_proxy.c | 4 +++-
python/libvir.c | 4 +++-
python/types.c | 4 +++-
src/event.c | 1 +
src/xm_internal.c | 2 ++
tests/reconnect.c | 2 ++
tests/testutils.c | 2 ++
9 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/docs/examples/info1.c b/docs/examples/info1.c
index f17bde8..53a9844 100644
--- a/docs/examples/info1.c
+++ b/docs/examples/info1.c
@@ -9,6 +9,8 @@
* copy: see Copyright for the status of this software.
*/
+#include "config.h"
+
#include <stdio.h>
#include <libvirt/libvirt.h>
diff --git a/docs/examples/suspend.c b/docs/examples/suspend.c
index 80e4da7..5bc47a4 100644
--- a/docs/examples/suspend.c
+++ b/docs/examples/suspend.c
@@ -11,6 +11,8 @@
* copy: see Copyright for the status of this software.
*/
+#include "config.h"
+
#include <stdlib.h>
#include <stdio.h>
#include <libvirt/libvirt.h>
diff --git a/proxy/libvirt_proxy.c b/proxy/libvirt_proxy.c
index d7deb44..152df56 100644
--- a/proxy/libvirt_proxy.c
+++ b/proxy/libvirt_proxy.c
@@ -2,13 +2,15 @@
* proxy_svr.c: root suid proxy server for Xen access to APIs with no
* side effects from unauthenticated clients.
*
- * Copyright (C) 2006 Red Hat, Inc.
+ * Copyright (C) 2006, 2007 Red Hat, Inc.
*
* See COPYING.LIB for the License of this software
*
* Daniel Veillard <veillard(a)redhat.com>
*/
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/python/libvir.c b/python/libvir.c
index bab34b3..a025afd 100644
--- a/python/libvir.c
+++ b/python/libvir.c
@@ -4,11 +4,13 @@
* entry points where an automatically generated stub is
* unpractical
*
- * Copyright (C) 2005 Red Hat, Inc.
+ * Copyright (C) 2005, 2007 Red Hat, Inc.
*
* Daniel Veillard <veillard(a)redhat.com>
*/
+#include "config.h"
+
#include <Python.h>
#include "libvirt/libvirt.h"
#include "libvirt/virterror.h"
diff --git a/python/types.c b/python/types.c
index cc0f2b1..146bb24 100644
--- a/python/types.c
+++ b/python/types.c
@@ -2,11 +2,13 @@
* types.c: converter functions between the internal representation
* and the Python objects
*
- * Copyright (C) 2005 Red Hat, Inc.
+ * Copyright (C) 2005, 2007 Red Hat, Inc.
*
* Daniel Veillard <veillard(a)redhat.com>
*/
+#include "config.h"
+
#include "libvirt_wrap.h"
PyObject *
diff --git a/src/event.c b/src/event.c
index 2fe9a26..7dcbf32 100644
--- a/src/event.c
+++ b/src/event.c
@@ -21,6 +21,7 @@
* Author: Daniel P. Berrange <berrange(a)redhat.com>
*/
+#include "config.h"
#include "event.h"
diff --git a/src/xm_internal.c b/src/xm_internal.c
index 43263d7..07abbb1 100644
--- a/src/xm_internal.c
+++ b/src/xm_internal.c
@@ -23,6 +23,8 @@
*/
#ifdef WITH_XEN
+#include "config.h"
+
#include <dirent.h>
#include <time.h>
#include <sys/stat.h>
diff --git a/tests/reconnect.c b/tests/reconnect.c
index 246e3bb..d94f5c7 100644
--- a/tests/reconnect.c
+++ b/tests/reconnect.c
@@ -1,3 +1,5 @@
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include "libvirt/libvirt.h"
diff --git a/tests/testutils.c b/tests/testutils.c
index 6121785..1141edb 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -10,6 +10,8 @@
* $Id$
*/
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
--
1.5.3.7.1006.g8c6a6
3
5
Hey.
I'm using Fedora 8 and the included libvirt and virt-manager packages.
I just noticed that it is not possible so set scheddunling for qemu
guests.
Could this be implemented by setting the guests nice value, so instances
are handled different by Linux's prcoess scheduler?
- fabian
3
3
06 Dec '07
Here, "base" is set, gets memory allocated for it, and is written to,
then freed, but it is never used.
diff --git a/qemud/qemud.c b/qemud/qemud.c
index f88ed42..6b515d9 100644
--- a/qemud/qemud.c
+++ b/qemud/qemud.c
@@ -644,10 +644,8 @@ static int qemudInitPaths(struct qemud_server *server,
char *sockname,
char *roSockname,
int maxlen) {
- char *base = 0;
uid_t uid = geteuid();
-
if (!uid) {
if (snprintf (sockname, maxlen, "%s/run/libvirt/libvirt-sock",
LOCAL_STATE_DIR) >= maxlen)
@@ -678,15 +676,8 @@ static int qemudInitPaths(struct qemud_server *server,
if (snprintf(server->logDir, PATH_MAX, "%s/.libvirt/log", pw->pw_dir) >= PATH_MAX)
goto snprintf_error;
- if (asprintf (&base, "%s/.libvirt", pw->pw_dir) == -1) {
- qemudLog (QEMUD_ERR, "out of memory in asprintf");
- return -1;
- }
-
} /* !remote */
- if (base) free (base);
-
return 0;
snprintf_error:
--
1.5.3.7.949.g2221a6
2
2
The virsh prompt seems to depend on your UID, rather than whether the
connection is really readonly or not.
Rich.
--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
3
2
This patch adds a configure option --without-libvirtd which disables
building of libvirtd. It doesn't attempt any type of auto-detection and
the default is still to build libvirtd.
I had to move stuff around in the qemud/Makefile.am file in order to
bring the libvirtd-dependent parts together, but I didn't change any of it.
Rich.
--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
3
2
We recently added a call to getpass(3) function. Needless to say this
doesn't exist on Windows. More seriously the man-page for getpass on
Linux has strong exhortations not to use the function.
NAME
getpass - get a password
SYNOPSIS
#include <unistd.h>
char *getpass( const char * prompt );
DESCRIPTION
This function is obsolete. Do not use it.
The getpass() function opens /dev/tty (the controlling terminal
of the
process), outputs the string prompt, turns off echoing, reads
one line
(the "password"), restores the terminal state and closes
/dev/tty
again.
[...]
CONFORMING TO
Present in SUSv2, but marked LEGACY. Removed in POSIX.1-2001.
Should we remove it? Replace it?
Rich.
--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
3
4
I noticed that gnulib-tool had deposited a file named
link-warning.h into the top-level directory.
How odd, I thought. This doesn't affect other projects
because most of them define what autoconf calls the "AUX" directory,
with a line like this in configure.in or configure.ac:
AC_CONFIG_AUX_DIR(build-aux)
If you don't define that, it defaults to the top level directory,
and that's where files pulled in by gettextize like these are deposited:
config.guess
compile
libtool
ltconfig
ltmain.sh
config.sub
config.rpath
mkinstalldirs
Rather than committing link-warning.h in the top-level, I propose to add
the above AC_CONFIG_AUX_DIR line. That change should be transparent
to all the other tools, and would let me commit link-warning.h in the
build-aux subdir, instead of in the top-level dir.
Any objection?
2
2
These are preliminary packages for libvirt 0.3.3 on Debian. The libvirt
package is derived from the one in Ubuntu, originally packaged by Andrew
Mitchell.
Xen
---
Unfortunately a patch is needed to the base Xen package in Debian, so
that it includes the header files needed by libvirt. Doubly
unfortunately because of the strange way that Xen is packaged in Debian
it isn't possible to modify the changelog (therefore the version or
release number) without some voodoo which I don't understand[1]. So the
version here has the same version/release as the one currently in Debian
testing. As a result you'll have to manually install it using dpkg.
Binary for i386:
http://et.redhat.com/~rjones/debian-libvirt/xen-docs-3.1_3.1.1-1_all.deb
http://et.redhat.com/~rjones/debian-libvirt/xen-hypervisor-3.1-1-i386_3.1.1…
http://et.redhat.com/~rjones/debian-libvirt/xen-hypervisor-3.1-1-i386-nonpa…
http://et.redhat.com/~rjones/debian-libvirt/xen-utils-3.1-1_3.1.1-1_i386.deb
Patch required to get the right header files:
http://et.redhat.com/~rjones/debian-libvirt/debian-xen-includes.patch
libvirt
-------
Source:
http://et.redhat.com/~rjones/debian-libvirt/libvirt_0.3.3-1.diff.gz
http://et.redhat.com/~rjones/debian-libvirt/libvirt_0.3.3-1.dsc
http://et.redhat.com/~rjones/debian-libvirt/libvirt_0.3.3-1_i386.changes
http://et.redhat.com/~rjones/debian-libvirt/libvirt_0.3.3.orig.tar.gz
Binary for i386:
http://et.redhat.com/~rjones/debian-libvirt/libvirt0_0.3.3-1_i386.deb
http://et.redhat.com/~rjones/debian-libvirt/libvirt-bin_0.3.3-1_i386.deb
http://et.redhat.com/~rjones/debian-libvirt/libvirt-dev_0.3.3-1_i386.deb
http://et.redhat.com/~rjones/debian-libvirt/python-libvirt_0.3.3-1_i386.deb
virt-install & virt-manager
---------------------------
I'm working on these, although I managed to "brick" my Debian install
because of some stupidity in pycentral ...
Rich.
[1] See this thread for the full details:
http://lists.alioth.debian.org/pipermail/pkg-xen-devel/2007-November/001506…
--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
2
1
06 Dec '07
After applying this patch, you can compile CVS libvirt with -Werror.
Rich.
--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
3
2