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

Re: [Xen-API] Building libxen

> xen-api-bounces@xxxxxxxxxxxxxxxxxxx wrote on 03/20/2008 10:18:44 AM:
>> I'm looking at playing around with libxen, which I understand to be the
> C
>> bindings of Xen-API. I have built xen3.2 but have not installed it yet.
> It
>> looks like I should still be able to build libxen even though Xen itself
>> hasn't been installed. Obviously I can't use it but I'm just looking to
>> get access to start playing around with the code.
>> Anyway I'm running CentOS 4.4 and I installed both libxml2-devel and
>> curl-devel. However when I CD in tools/libxen and run "make" I get the
>> following output/error:
>> gcc  -Iinclude -I/usr/include/libxml2  -W -Wall -Wmissing-prototypes
>> -Werror -std=c99 -O2 -fPIC -c -o src/xen_common.o src/xen_common.c
>> src/xen_common.c: In function `make_body':
>> src/xen_common.c:1384: warning: implicit declaration of function
>> `xmlSaveToBuffer'
>> src/xen_common.c:1384: error: `XML_SAVE_NO_XHTML' undeclared (first use
> in
>> this function)
>> src/xen_common.c:1384: error: (Each undeclared identifier is reported
> only
>> once
>> src/xen_common.c:1384: error: for each function it appears in.)
>> src/xen_common.c:1384: warning: initialization makes pointer from
> integer
>> without a cast
>> make: *** [src/xen_common.o] Error 1
> The XML_SAVE_NO_XHTML is defined in /usr/include/libxml2/libxml/xmlsave.h
> . I have version 2.6.31 of llibxml2-devel installed on FedoraCore8. It
> compiles fine.
>    Stefan
>> Has anyone ran into this before? Does libxen build on xen 3.2.0? Is
> there
>> a specific version of libxml that I need?
>> Thanks to all those who are willing to take a second and help me out.
>> Ryan

Well I started working my way up through the libxml2 versions and the
winner is....

libxml2-2.6.23-1 is the minimum version needed to build libxen.

It would be nice if that was documented somewhere, but at least it is not
in the mail-list archives :).

Thanks for the help Stefan.


xen-api mailing list



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