[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
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>
Attachment:
xen-4.0.1-tools.diff _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |