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-devel

Re: [Xen-devel] Compile error for xen-4.0.1 if xen-tools is not installe

To: Milan Holzäpfel <listen@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Compile error for xen-4.0.1 if xen-tools is not installed already
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 30 Aug 2010 21:48:10 +0100
Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Delivery-date: Mon, 30 Aug 2010 13:49:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C8A1D5F2.5C92%keir.fraser@xxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: ActIfkXTyPfaJ2drR/mdEyRkB5r+JgABWVaoAAA/LhQ=
Thread-topic: [Xen-devel] Compile error for xen-4.0.1 if xen-tools is not installed already
User-agent: Microsoft-Entourage/12.26.0.100708
On 30/08/2010 21:41, "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx> wrote:

> On 30/08/2010 21:01, "Milan Holzäpfel" <listen@xxxxxxxx> wrote:
> 
>> Hello, 
>> 
>> 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.)
> 
> Hmmm, 4.0.1's blktap2 builds okay for me, and my build system does not have
> 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
> 
>> Regards,
>> Milan Holzäpfel
>> 
>> 
>> 
>> 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.000000000
>> +0000
>> @@ -20,6 +20,8 @@ CFLAGS    += -I $(MEMSHR_DIR)
>>  CFLAGS    += -D_GNU_SOURCE
>>  CFLAGS    += -DUSE_NFS_LOCKS
>>  
>> +LDFLAGS   += $(LDFLAGS_libxenctrl)
>> +
>>  ifeq ($(CONFIG_X86_64),y)
>>  CFLAGS            += -fPIC
>>  endif
>> @@ -38,7 +40,7 @@ else
>>  CRYPT_LIB += -lcrypto
>>  endif
>>  
>> -LDFLAGS_img := $(LDFLAGS_libxenctrl) $(CRYPT_LIB) -lpthread -lz -lm
>> +LDFLAGS_img := $(CRYPT_LIB) -lpthread -lz -lm
>>  
>>  LIBS += -L$(LIBVHDDIR) -lvhd
>>  
>> 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.000000000
>> +0000
>> @@ -19,6 +19,8 @@ CFLAGS          += -D_GNU_SOURCE
>>  CFLAGS          += -fPIC
>>  CFLAGS          += -g
>>  
>> +LDFLAGS         += $(LDFLAGS_libxenctrl)
>> +
>>  ifeq ($(CONFIG_Linux),y)
>>  LIBS            := -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.000000000
>> +0000
>> +++ xen-4.0.1/tools/blktap2/vhd/Makefile 2010-08-30 19:41:11.000000000 +0000
>> @@ -13,6 +13,8 @@ CFLAGS            += -Wno-unused
>>  CFLAGS            += -I../include
>>  CFLAGS            += -D_GNU_SOURCE
>>  
>> +LDFLAGS           += $(LDFLAGS_libxenctrl)
>> +
>>  ifeq ($(CONFIG_X86_64),y)
>>  CFLAGS            += -fPIC
>>  endif
>> 
>> 
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel
> 



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

<Prev in Thread] Current Thread [Next in Thread>