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] [PATCH 00 of 23] libxl: rationalise libxl_device_* APIs

To: Roger Pau Monné <roger.pau@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 00 of 23] libxl: rationalise libxl_device_* APIs
From: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Date: Wed, 5 Oct 2011 14:08:00 +0100
Cc: Jim Fehlig <jfehlig@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Scott <Dave.Scott@xxxxxxxxxxxxx>, Mike McClurg <mike.mcclurg@xxxxxxxxxx>, Jonathan Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx>, Dave
Delivery-date: Wed, 05 Oct 2011 06:09:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAPLaKK54T=8SQR-ZOn82HQaK9V7D46SvS+MyUYgb0DfydurS_A@xxxxxxxxxxxxxx>
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: <patchbomb.1317389593@xxxxxxxxxxxxxxxxxxxxx> <CAPLaKK7qFpZcrjWdNESwotc70KVVvNpC1SOoSqc9esFKJoM3=Q@xxxxxxxxxxxxxx> <1317715976.21903.73.camel@xxxxxxxxxxxxxxxxxxxxxx> <1317717163.21903.80.camel@xxxxxxxxxxxxxxxxxxxxxx> <CAPLaKK5w_ott56OYzwHg7b2SXbkoDyVsLCe+gauASUCaHeiv2w@xxxxxxxxxxxxxx> <1317807198.21903.184.camel@xxxxxxxxxxxxxxxxxxxxxx> <CAPLaKK54T=8SQR-ZOn82HQaK9V7D46SvS+MyUYgb0DfydurS_A@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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