WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits

To: Olaf Hering <olaf@xxxxxxxxx>
Subject: Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
From: Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>
Date: Thu, 16 Dec 2010 18:21:59 -0200
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxx>, Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 16 Dec 2010 12:23:15 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=bzEMLwOSGyDixBmSAfj6OKvSn2Vv2Dvw74p/Thp7RYA=; b=Kf5w5MivjgjniNrQiyefd1w+YbKrebfD+aZNy4nf+AiJKpR0BM+E7ePG9J9Lpmh9dq nh6ti46DGl9qexpNKpMn5yySkmv88KWvXAcdbom6aw1lG4E0msMHimcDtpQW3K1xfVx2 jp6dDdYaECp1NTU1l3sYVpcQjr/pMmBvLrCvk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=ir6qEFpP/hYhWVqBQVjq8KBPHNF0SxCtNnuAZThyWl1YtEhV3ojOBO1zkeyW3ZXuSP BYNYn9dF1381Gu70NV9mCPk7aTGBl4ta4RJXKNrzonyG/CP45JIE9xyRhBvmEBBy/S3D d2GpKaWSjnxeaVHfjq5SSE/Qsb5H8KSXc2K9I=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20101216191620.GA28208@xxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTimVEuNnj2ARQmK+8Uc2djmVzs7nMGeFnubs1A9K@xxxxxxxxxxxxxx> <AANLkTimbPnkWj=y8vSARk0LPv_wLSAgE+3TCcq0iCSV7@xxxxxxxxxxxxxx> <AANLkTimjQTE71F81Db09YiHhEDYkQFZCkfvfM3Lz0_u2@xxxxxxxxxxxxxx> <1292492084.32368.6927.camel@xxxxxxxxxxxxxxxxxxxxxx> <AANLkTimZrNZQTxe2q8HVbu+pWoGfQLnkCScOHGao4iJU@xxxxxxxxxxxxxx> <20101216173605.GA21326@xxxxxxxxx> <AANLkTikMPmMk7p-eFV1ZfZ0-fxAX_C99j_SOj0rsvMcQ@xxxxxxxxxxxxxx> <20101216191620.GA28208@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Olaf,

 You are the man!  :-D

 Problem solved!

 Here is the patch to run "make xen ; make tools" from xen-4.0.1.tar.gz source on top of Ubuntu 11.04:


diff -Nru xen-4.0.1/tools/blktap/drivers/blk_linux.c xen-4.0.1-patched/tools/blktap/drivers/blk_linux.c
--- xen-4.0.1/tools/blktap/drivers/blk_linux.c    2010-08-25 07:22:07.000000000 -0300
+++ xen-4.0.1-patched/tools/blktap/drivers/blk_linux.c    2010-12-16 17:42:14.694504013 -0200
@@ -1,6 +1,6 @@
 #include <inttypes.h>
 #include <sys/ioctl.h>
-#include <linux/fs.h>
+#include <sys/mount.h>
 #include "tapdisk.h"
 #include "blk.h"
 
diff -Nru xen-4.0.1/tools/blktap/drivers/Makefile xen-4.0.1-patched/tools/blktap/drivers/Makefile
--- xen-4.0.1/tools/blktap/drivers/Makefile    2010-08-25 07:22:07.000000000 -0300
+++ xen-4.0.1-patched/tools/blktap/drivers/Makefile    2010-12-16 17:45:06.214503843 -0200
@@ -29,8 +29,9 @@
 MEMSHRLIBS += $(MEMSHR_DIR)/libmemshr.a
 endif
 
-LDFLAGS_blktapctrl := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) $(MEMSHRLIBS) -L../lib -lblktap -lrt -lm -lpthread
-LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz
+LDFLAGS_xen := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore)
+LDFLAGS_blktapctrl := $(LDFLAGS_xen) $(MEMSHRLIBS) -L../lib -lblktap -lrt -lm -lpthread $(LDFLAGS_xen)
+LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz $(LDFLAGS_xen)
 
 BLK-OBJS-y  := block-aio.o
 BLK-OBJS-y  += block-sync.o
diff -Nru xen-4.0.1/tools/blktap2/drivers/blk_linux.c xen-4.0.1-patched/tools/blktap2/drivers/blk_linux.c
--- xen-4.0.1/tools/blktap2/drivers/blk_linux.c    2010-08-25 07:22:07.000000000 -0300
+++ xen-4.0.1-patched/tools/blktap2/drivers/blk_linux.c    2010-12-16 17:43:12.624504046 -0200
@@ -1,7 +1,7 @@
 #include <inttypes.h>
+#include <errno.h>
 #include <sys/ioctl.h>
-#include <linux/fs.h>
-#include <linux/errno.h>
+#include <sys/mount.h>
 #include "tapdisk.h"
 #include "blk.h"
 
diff -Nru xen-4.0.1/tools/xenpaging/Makefile xen-4.0.1-patched/tools/xenpaging/Makefile
--- xen-4.0.1/tools/xenpaging/Makefile    2010-08-25 07:22:10.000000000 -0300
+++ xen-4.0.1-patched/tools/xenpaging/Makefile    2010-12-16 17:45:35.264502700 -0200
@@ -27,7 +27,7 @@
 all: $(IBINS)
 
 xenpaging: $(OBJS)
-    $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+    $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
 
 install: all
     $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)


----

 Thank you!

Thiago

2010/12/16 Olaf Hering <olaf@xxxxxxxxx>
On Thu, Dec 16, Martinx - ジェームズ wrote:

>  Can you help me again?!

(xen-unstable changeset:   21972:d3de6f484610)


--- xen-4.0.1-testing.orig/tools/xenpaging/Makefile
+++ xen-4.0.1-testing/tools/xenpaging/Makefile
@@ -27,7 +27,7 @@ IBINS    = xenpaging
 all: $(IBINS)

 xenpaging: $(OBJS)
-       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+       $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)

 install: all
       $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)

Attachment: xen-4.0.1-tools.diff
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel