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

Re: [Xen-devel] [PATCH 00 of 23] libxl: rationalise libxl_device_* APIs



On Wed, 2011-10-05 at 12:59 +0100, Roger Pau Monnà wrote:
> Hello (again),
> 
> After importing the series I realized that something is broken in
> xl_cmdimpl.c, I get the following errors:
> 
> gcc -L/usr/xen42/lib   -o xl xl.o xl_cmdimpl.o xl_cmdtable.o
> libxlutil.so -L/root/xen-04102011/tools/libxl/../../tools/libxl
> -Wl,-rpath-link=/root/xen-04102011/tools/libxl/../../tools/libxc
> -Wl,-rpath-link=/root/xen-04102011/tools/libxl/../../tools/xenstore
> -lxenlight -L/root/xen-04102011/tools/libxl/../../tools/libxc
> -lxenctrl
> xl_cmdimpl.o: In function `parse_disk_config_multistring':
> /root/xen-04102011/tools/libxl/xl_cmdimpl.c:497: undefined reference
> to `libxl_device_disk_init'

This function was added by "libxl: convert disk handling to device
API" (patch #17/23). The others were generally added by the "convert XXX
handling to ..." patches.

I suspect that the -L/usr/xen42/lib in your link line has caused it to
try and link against the installed libxenlight.so and not the just built
one. My link line does not include this, it is just:
gcc    -o xl xl.o xl_cmdimpl.o xl_cmdtable.o libxlutil.so
-L/local/scratch/ianc/devel/xen-unstable.hg/tools/libxl/../../tools/libxl 
-Wl,-rpath-link=/local/scratch/ianc/devel/xen-unstable.hg/tools/libxl/../../tools/libxc
 
-Wl,-rpath-link=/local/scratch/ianc/devel/xen-unstable.hg/tools/libxl/../../tools/xenstore
 
-Wl,-rpath-link=/local/scratch/ianc/devel/xen-unstable.hg/tools/libxl/../../tools/blktap2/control
 -lxenlight 
-L/local/scratch/ianc/devel/xen-unstable.hg/tools/libxl/../../tools/libxc 
-lxenctrl

SO I guess you have LDFLAGS=-L/usr/xen42/lib -- what is that for? It
should not be necessary when building Xen itself.

> xl_cmdimpl.o: In function `main_blockdetach':
> /root/xen-04102011/tools/libxl/xl_cmdimpl.c:4202: undefined reference
> to `libxl_device_disk_remove'
> xl_cmdimpl.o: In function `main_networkdetach':
> /root/xen-04102011/tools/libxl/xl_cmdimpl.c:4099: undefined reference
> to `libxl_device_nic_remove'
> xl_cmdimpl.o: In function `main_networklist':
> /root/xen-04102011/tools/libxl/xl_cmdimpl.c:4052: undefined reference
> to `libxl_device_nic_list'
> /root/xen-04102011/tools/libxl/xl_cmdimpl.c:4057: undefined reference
> to `libxl_device_nic_getinfo'
> xl_cmdimpl.o: In function `pcidetach':
> /root/xen-04102011/tools/libxl/xl_cmdimpl.c:2087: undefined reference
> to `libxl_device_pci_force_remove'
> xl_cmdimpl.o: In function `pcilist':
> /root/xen-04102011/tools/libxl/xl_cmdimpl.c:2048: undefined reference
> to `libxl_device_pci_list'
> gmake: *** [xl] Error 1



_______________________________________________
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®.