[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Xen 4.1.0 RC2 released,



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.