From: Ian Campbell Subject: Re: Xen 4.1.0 RC2 released, Date: Fri, 28 Jan 2011 08:53:57 +0000 Message-ID: <1296204837.14780.6925.camel@zakaz.uk.xensource.com> References: <4D41FA20.40509@gt.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4D41FA20.40509@gt.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Nathan March Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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.