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

[Xen-devel] [PATCH] blktap: correct order of linker options to avoid lin

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] blktap: correct order of linker options to avoid link errors with recent toolchains
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Wed, 28 Jul 2010 14:54:19 +0200
Delivery-date: Wed, 28 Jul 2010 05:55:35 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1280321665; l=1448; s=domk; d=aepfle.de; h=Content-Type:MIME-Version:Subject:To:From:Date:X-RZG-CLASS-ID: X-RZG-AUTH; bh=1IzPRP1+NFwHt0nBmZHAKq5nsiI=; b=C43zOEuPUhMbZ4tMzTVD3eoOe7D+LIBU0+LAGb/bzRdOg2bJ7NQ6Z4BE1uSB8OgLqYM 4cgIOmUzCmVP3nd7fP37hMGaH1nGgYHfF0jxje3KbNyDALhES292/cVMXAUb6YmgpVYlm fftaxvTvXfNKP5NCWKaKoJxGGi4hLmQbYZU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
User-agent: Mutt/1.5.20 (2009-06-14)
Fix link error in openSuSE 11.2. 
The order of objects and linked libraries is important with recent toolchain
when --as-needed is used.

../../memshr/libmemshr.a(interface.o): In function 
`memshr_vbd_issue_ro_request':
/usr/src/packages/BUILD/xen-unstable.hg-4.1.21864/tools/memshr/interface.c:165: 
undefined reference to `xc_memshr_nominate_gref'
/usr/src/packages/BUILD/xen-unstable.hg-4.1.21864/tools/memshr/interface.c:179: 
undefined reference to `xc_memshr_share'
../../memshr/libmemshr.a(interface.o): In function `memshr_vbd_initialize':
/usr/src/packages/BUILD/xen-unstable.hg-4.1.21864/tools/memshr/interface.c:116: 
undefined reference to `xc_interface_open'
collect2: ld returned 1 exit status
make[5]: *** [blktapctrl] Error 1

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

---
 tools/blktap/drivers/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- xen-unstable.hg-4.1.21864.orig/tools/blktap/drivers/Makefile
+++ xen-unstable.hg-4.1.21864/tools/blktap/drivers/Makefile
@@ -29,7 +29,7 @@ CFLAGS += -DMEMSHR
 MEMSHRLIBS += $(MEMSHR_DIR)/libmemshr.a
 endif
 
-LDFLAGS_blktapctrl := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) 
$(MEMSHRLIBS) -L../lib -lblktap -lrt -lm -lpthread
+LDFLAGS_blktapctrl := $(MEMSHRLIBS) $(LDFLAGS_libxenctrl) 
$(LDFLAGS_libxenstore) -L../lib -lblktap -lrt -lm -lpthread
 LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz
 
 BLK-OBJS-y  := block-aio.o

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] blktap: correct order of linker options to avoid link errors with recent toolchains, Olaf Hering <=