From: Keir Fraser Subject: Re: Compile error for xen-4.0.1 if xen-tools is not installed already Date: Mon, 30 Aug 2010 21:48:10 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable 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: Milan =?ISO-8859-1?B?SG9seuRwZmVs?= , "xen-devel@lists.xensource.com" Cc: Ian Jackson List-Id: xen-devel@lists.xenproject.org On 30/08/2010 21:41, "Keir Fraser" wrote: > On 30/08/2010 21:01, "Milan Holz=E4pfel" wrote: >=20 >> Hello,=20 >>=20 >> I need the patch below to compile xen-4.0.1 on a systems where >> xen-tools is not installed already, i.e. /usr/lib/libxenctrl.so is not >> present. (The errors are "cannot find -lxenctrl" from the places where >> LDFLAGS are modified.) >=20 > Hmmm, 4.0.1's blktap2 builds okay for me, and my build system does not ha= ve > libxenctrl already installed. Perhaps you have got a slightly modified version of the 4.0.1 sources? Certainly our blktap2 only gets -lxenctrl from LDFLAGS_libxenctrl, which includes the appropriate -L path option. -- Keir > -- Keir >=20 >> Regards, >> Milan Holz=E4pfel >>=20 >>=20 >>=20 >> diff -Nurp xen-4.0.1-orig/tools/blktap2/drivers/Makefile >> xen-4.0.1/tools/blktap2/drivers/Makefile >> --- xen-4.0.1-orig/tools/blktap2/drivers/Makefile 2010-08-25 >> 10:22:07.000000000 +0000 >> +++ xen-4.0.1/tools/blktap2/drivers/Makefile 2010-08-30 19:42:42.0000000= 00 >> +0000 >> @@ -20,6 +20,8 @@ CFLAGS +=3D -I $(MEMSHR_DIR) >> CFLAGS +=3D -D_GNU_SOURCE >> CFLAGS +=3D -DUSE_NFS_LOCKS >> =20 >> +LDFLAGS +=3D $(LDFLAGS_libxenctrl) >> + >> ifeq ($(CONFIG_X86_64),y) >> CFLAGS +=3D -fPIC >> endif >> @@ -38,7 +40,7 @@ else >> CRYPT_LIB +=3D -lcrypto >> endif >> =20 >> -LDFLAGS_img :=3D $(LDFLAGS_libxenctrl) $(CRYPT_LIB) -lpthread -lz -lm >> +LDFLAGS_img :=3D $(CRYPT_LIB) -lpthread -lz -lm >> =20 >> LIBS +=3D -L$(LIBVHDDIR) -lvhd >> =20 >> diff -Nurp xen-4.0.1-orig/tools/blktap2/vhd/lib/Makefile >> xen-4.0.1/tools/blktap2/vhd/lib/Makefile >> --- xen-4.0.1-orig/tools/blktap2/vhd/lib/Makefile 2010-08-25 >> 10:22:07.000000000 +0000 >> +++ xen-4.0.1/tools/blktap2/vhd/lib/Makefile 2010-08-30 19:41:00.0000000= 00 >> +0000 >> @@ -19,6 +19,8 @@ CFLAGS +=3D -D_GNU_SOURCE >> CFLAGS +=3D -fPIC >> CFLAGS +=3D -g >> =20 >> +LDFLAGS +=3D $(LDFLAGS_libxenctrl) >> + >> ifeq ($(CONFIG_Linux),y) >> LIBS :=3D -luuid >> endif >> diff -Nurp xen-4.0.1-orig/tools/blktap2/vhd/Makefile >> xen-4.0.1/tools/blktap2/vhd/Makefile >> --- xen-4.0.1-orig/tools/blktap2/vhd/Makefile 2010-08-25 10:22:07.000000= 000 >> +0000 >> +++ xen-4.0.1/tools/blktap2/vhd/Makefile 2010-08-30 19:41:11.000000000 += 0000 >> @@ -13,6 +13,8 @@ CFLAGS +=3D -Wno-unused >> CFLAGS +=3D -I../include >> CFLAGS +=3D -D_GNU_SOURCE >> =20 >> +LDFLAGS +=3D $(LDFLAGS_libxenctrl) >> + >> ifeq ($(CONFIG_X86_64),y) >> CFLAGS +=3D -fPIC >> endif >>=20 >>=20 >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >=20