I met this on the latest git tree.
==
From fdd982b0cf3b772f61825736e6fc98bf948c4792 Mon Sep 17 00:00:00 2001
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu(a)jp.fujitsu.com>
Date: Thu, 28 Oct 2010 16:18:07 +0900
Subject: [PATCH] libvirt-audit-printf-warning-fix
fix warning
CC libvirt_util_la-virtaudit.lo
cc1: warnings being treated as errors
util/virtaudit.c: In function 'virAuditEncode':
util/virtaudit.c:146: error: implicit declaration of function 'virAsprintf'
[-Wimplicit-function-declaration]
util/virtaudit.c:146: error: nested extern declaration of 'virAsprintf'
[-Wnested-externs]
---
src/util/virtaudit.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/util/virtaudit.c b/src/util/virtaudit.c
index d568660..6af7af0 100644
--- a/src/util/virtaudit.c
+++ b/src/util/virtaudit.c
@@ -30,6 +30,7 @@
#include "virterror_internal.h"
#include "logging.h"
#include "virtaudit.h"
+#include "util.h"
/* Provide the macros in case the header file is old.
FIXME: should be removed. */
--
1.7.2.3