From: Christoph Egger Subject: Re: xenstored vanished Date: Fri, 7 May 2010 11:47:51 +0200 Message-ID: <201005071147.52232.Christoph.Egger@amd.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_HH+4L1bnI4KyXad" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --Boundary-00=_HH+4L1bnI4KyXad Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Friday 07 May 2010 11:24:28 Keir Fraser wrote: > On 07/05/2010 10:17, "Christoph Egger" wrote: > >> I can't start xend as it can't find xenstored anymore. > >> > >> What happened ? > >> > >> Christoph > > > > OCAML_TOOLS are unconditionally enabled but I haven't installed > > the ocaml tools. So xenstored got build but not installed. > > I'm wondering why the build process did not fail. > > > > Please only build ocaml version when ocaml is installed. > > That is already the case: > > ifeq ($(OCAML_TOOLS),y) > ifeq ($(CONFIG_Linux),y) > OCAML_TOOLS := $(shell ocamlopt -v > /dev/null 2>&1 && echo "y" || echo > "n") else > OCAML_TOOLS := n > endif > endif > > I can only conclude that you do have the ocaml toolchain installed. The > ocaml stuff was broken when first checked in, but it's now building okay > for me (e.g., current tip, c/s 21326). > > If you are building on NetBSD then as you can see above, the ocaml build is > forcibly disabled on non-Linux systems. Attached patch fixes my problem. xenstored (C version) is there again. Signed-off-by: Christoph Egger Christoph -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_HH+4L1bnI4KyXad Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_ocaml.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_ocaml.diff" diff -r 6f53b34a3a5a Config.mk --- a/Config.mk Fri May 07 10:41:50 2010 +0200 +++ b/Config.mk Fri May 07 11:25:10 2010 +0200 @@ -163,15 +163,13 @@ XENSTAT_XENTOP ?= y VTPM_TOOLS ?= n LIBXENAPI_BINDINGS ?= n PYTHON_TOOLS ?= y -OCAML_TOOLS ?= y +OCAML_TOOLS ?= n CONFIG_MINITERM ?= n CONFIG_LOMOUNT ?= n ifeq ($(OCAML_TOOLS),y) ifeq ($(CONFIG_Linux),y) OCAML_TOOLS := $(shell ocamlopt -v > /dev/null 2>&1 && echo "y" || echo "n") -else -OCAML_TOOLS := n endif endif diff -r 6f53b34a3a5a tools/xenstore/Makefile --- a/tools/xenstore/Makefile Fri May 07 10:41:50 2010 +0200 +++ b/tools/xenstore/Makefile Fri May 07 11:25:10 2010 +0200 @@ -27,7 +27,7 @@ xenstore xenstore-control: CFLAGS += -st endif ALL_TARGETS = libxenstore.so libxenstore.a clients xs_tdb_dump -ifneq ($(CONFIG_OCAML_XENSTORED),y) +ifeq ($(OCAML_TOOLS),n) ALL_TARGETS += xenstored endif @@ -95,6 +95,11 @@ tarball: clean .PHONY: install install: all +ifeq ($(OCAML_TOOLS),n) + $(INSTALL_DIR) $(DESTDIR)/var/run/xenstored + $(INSTALL_DIR) $(DESTDIR)/var/lib/xenstored + $(INSTALL_PROG) xenstored $(DESTDIR)$(SBINDIR) +endif $(INSTALL_DIR) $(DESTDIR)$(BINDIR) $(INSTALL_DIR) $(DESTDIR)$(SBINDIR) $(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR) --Boundary-00=_HH+4L1bnI4KyXad Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_HH+4L1bnI4KyXad--