Build problem on CentOS 5.4
by Richard W.M. Jones
guestmount.c: In function 'fg_utimens':
guestmount.c:537: error: 'UTIME_NOW' undeclared (first use in this function)
guestmount.c:537: error: (Each undeclared identifier is reported only once
guestmount.c:537: error: for each function it appears in.)
guestmount.c:539: error: 'UTIME_OMIT' undeclared (first use in this function)
I'm not sure what's the best thing to do here. We could copy the
definitions of those out of the Fedora header file, ie something like:
#ifndef UTIME_NOW
# define UTIME_NOW ((1l << 30) - 1l)
#endif
Or we could disable the feature if the symbols aren't defined,
although that is a little more complex. Or perhaps emulate the
feature ...
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
15 years, 1 month
[PATCH] Add missing dependencies for targets of generator.ml
by Matthew Booth
Parallel make was failing because guestfs-structs.h was required before
generator.ml ran.
---
src/Makefile.am | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 469f6d6..ae10ed8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -34,8 +34,6 @@ stamp-generator: generator.ml
mkdir -p $(top_srcdir)/java/com/redhat/et/libguestfs
cd $(top_srcdir) && ocaml -warn-error A src/generator.ml
-guestfs_protocol.x: stamp-generator
-
include_HEADERS = guestfs.h guestfs-actions.h guestfs-structs.h
lib_LTLIBRARIES = libguestfs.la
@@ -49,6 +47,8 @@ BUILT_SOURCES = \
guestfs-actions.c \
guestfs-bindtests.c
+$(BUILT_SOURCES): stamp-generator
+
# This convenience library is solely to avoid compiler warnings
# in its generated sources.
libprotocol_la_SOURCES = \
--
1.6.5.2
15 years, 1 month