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] Xen 4.1.0 RC2 released,

To: Nathan March <nathan@xxxxxx>
Subject: Re: [Xen-devel] Xen 4.1.0 RC2 released,
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Fri, 28 Jan 2011 08:53:57 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 28 Jan 2011 00:55:34 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4D41FA20.40509@xxxxxx>
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>
Organization: Citrix Systems, Inc.
References: <4D41FA20.40509@xxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2011-01-27 at 23:05 +0000, Nathan March wrote:
> There seem to be library issues compiling on a system with as-needed. 
> This is directly off xen-unstable tip:

> `/var/home/xen41/xen-unstable.hg/tools/flask/utils'
> gcc  -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m64 -g 
> -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes 
> -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD 
> -MF .loadpolicy.o.d  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -Wall -g 
> -Werror  -I../../../tools/libxc -I../../../tools/include 
> -I../../../tools/flask/libflask/include -I. -c -o loadpolicy.o loadpolicy.c
> gcc -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m64 -g 
> -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes 
> -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD 
> -MF .flask-loadpolicy.d  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  
> -Wall -g -Werror  -I../../../tools/libxc -I../../../tools/include 
> -I../../../tools/flask/libflask/include -I.    loadpolicy.o   
> -L../../../tools/libxc -L../../../tools/flask/libflask -L. -lflask 
> -L../../../tools/libxc -lxenctrl -ldl -o flask-loadpolicy
> ../../../tools/libxc/libxenctrl.so: undefined reference to `dlsym'
> ../../../tools/libxc/libxenctrl.so: undefined reference to `dlerror'
> ../../../tools/libxc/libxenctrl.so: undefined reference to `dlopen'
> ../../../tools/libxc/libxenctrl.so: undefined reference to `dlclose'

libxenctrl.so is linked with -ldl (in tools/libxc/Makefile via
$(DLOPEN_LIBS) from config/StdGNU.mk) _and_ it is included in the above
link line too.

Can you confirm further back in your logs that libxenctrl actually
linked against -ldl correctly (it does in my build at least)? Also "ldd
tools/libxc/libxenctrl.so" should list libdl I think.

I'm not sure what else as-needed needs/expects?

Ian.




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