[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] build: fix 'make dist' error



On 10/13/2011 03:40 PM, Daniel Veillard wrote:
On Thu, Oct 13, 2011 at 03:18:31PM +0800, Wen Congyang wrote:
When I run 'make dist', I receive the following error messages:
make[1]: Entering directory `/home/wency/source/libvirt/src'
   GEN    remote/remote_protocol.h
   GEN    remote/remote_protocol.c
   GEN    remote/qemu_protocol.h
   GEN    remote/qemu_protocol.c
   GEN    remote/qemu_client_bodies.h
   CC     libvirt_driver_remote_la-remote_protocol.lo
In file included from ./remote/remote_protocol.h:16,
                  from ./remote/remote_protocol.c:7:
./internal.h:249:23: error: probes.h: No such file or directory
make[1]: *** [libvirt_driver_remote_la-remote_protocol.lo] Error 1
make[1]: Leaving directory `/home/wency/source/libvirt/src'
make: *** [distdir] Error 1

The reason is that we use probes.h before generating it.

---
  src/Makefile.am |    5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 302d395..510e5ef 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -189,6 +189,11 @@ REMOTE_DRIVER_GENERATED = \
  		$(srcdir)/remote/qemu_protocol.h		\
  		$(srcdir)/remote/qemu_client_bodies.h

+# The remote RPC driver needs probes.h
+if WITH_DTRACE
+REMOTE_DRIVER_GENERATED += $(srcdir)/probes.h
+endif
+
  REMOTE_PROTOCOL = $(srcdir)/remote/remote_protocol.x
  QEMU_PROTOCOL = $(srcdir)/remote/qemu_protocol.x
  REMOTE_DRIVER_PROTOCOL = $(REMOTE_PROTOCOL) $(QEMU_PROTOCOL)

   ACK,

Thanks, pushed
Wen Congyang


Daniel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]