http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=858
------- Comment #2 from ccof...@novell.com 2007-07-06 13:34 -------
Strict aliasing (which defaults to on in gcc 4.2 when using -O2, -O3, or -Os)
is breaking libxenstore. As posted on xen-devel, a work-around is:
--- xen-3.1-testing.orig/tools/xenstore/Makefile
+++ xen-3.1-testing/tools/xenstore/Makefile
@@ -6,7 +6,7 @@ MAJOR = 3.0
MINOR = 0
PROFILE=#-pg
-BASECFLAGS=-Werror
+BASECFLAGS=-Werror -fno-strict-aliasing
# Make gcc generate dependencies.
BASECFLAGS += -Wp,-MD,.$(@F).d
PROG_DEP = .*.d