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

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



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

The -L/usr/xen42/lib is for yajl, the problem was that it was missing
libxenlight.so, so it could not link to the proper functions (or it
was trying to use the old library from /usr/xen42/lib instead of the
new one). I've modified a patch in your series to include
libxenligh.so when compiling xl.

Now I have a similar problem, and I think it's because Xen is trying
to use the old header files and libraries in /usr/xen42/ instead of
the new ones.

gcc -O2 -g -DHAVE_DB_185_H -I/usr/include -I/usr/pkg/include
-I/usr/xen42/include -O1 -fno-omit-frame-pointer -m64 -g
-fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
-Wno-unused-value -Wdeclaration-after-statement -O1
-fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall
-Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement
-O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99
-Wall -Wstrict-prototypes -Wno-unused-value
-Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF
.subdirs-install.d -fno-optimize-sibling-calls -O1
-fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall
-Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement
-D__XEN_TOOLS__ -MMD -MF .subdir-install-python.d
-fno-optimize-sibling-calls -O1 -fno-omit-frame-pointer -m64 -g
-fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
-Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD
-MF .build.d -fno-optimize-sibling-calls -fPIC -I../../tools/include
-I../../tools/libxl -I../../tools/libxc -Ixen/lowlevel/xl
-I/usr/pkg/include/python2.6 -c xen/lowlevel/xl/xl.c -o
build/temp.netbsd-5.99.52-amd64-2.6-pydebug/xen/lowlevel/xl/xl.o
-fno-strict-aliasing -Werror
cc1: warnings being treated as errors
xen/lowlevel/xl/xl.c: In function 'pyxl_pci_del':
xen/lowlevel/xl/xl.c:525: warning: implicit declaration of function
'libxl_device_pci_force_remove'
xen/lowlevel/xl/xl.c:530: error: too few arguments to function
'libxl_device_pci_remove'
xen/lowlevel/xl/xl.c: In function 'pyxl_pci_list_assignable':
xen/lowlevel/xl/xl.c:568: warning: passing argument 2 of
'libxl_device_pci_list_assignable' from incompatible pointer type
xen/lowlevel/xl/xl.c:568: error: too few arguments to function
'libxl_device_pci_list_assignable'
xen/lowlevel/xl/xl.c: In function 'pyxl_pci_list':
xen/lowlevel/xl/xl.c:605: warning: implicit declaration of function
'libxl_device_pci_list'
xen/lowlevel/xl/xl.c:605: warning: assignment makes pointer from
integer without a cast
error: command 'gcc' failed with exit status 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®.