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

[Xen-API] Re: Compile errors when building toolstack


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: Ritu kaur <ritu.kaur.us@xxxxxxxxx>
  • Date: Tue, 16 Feb 2010 09:39:21 -0800
  • Delivery-date: Tue, 16 Feb 2010 09:39:23 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=pHTZvE6CN4w+v49Q+JW4yKijpCVq5xdrmCb/EVFz7r3IYlSCvGvuZVdrQDE4u1NPfU C1WyGBNcCdbur9egITsM79BN7KeUHULV9sQTNGfMZGJ9fYoyV4jC/Y0oYwxEQLWhPRVc io6pqdKEvkWpJ4deOK8cbTYCdWXIoWFRLUYN4=
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

Hi,

I added XEN_DOMCTL_SENDTRIGGER_SLEEP and XEN_DOMCTL_SENDTRIGGER_POWER into include/xen/domctl.h file. Compilation moves forward and I get link errors

xenguest.opt xenguest.cmxa xenguest_main.cmx xenguest_stubs.a -linkpkg -cclib -L/usr/lib -cclib -L/usr/lib -cclib -lxenguest -cclib -lxenctrl -cclib -lxenstore
/data/repo/xen-api.hg/ocaml/xenguest/xenguest_stubs.a(xenguest_stubs.o): In function `stub_xc_hvm_build_native':
/data/repo/xen-api.hg/ocaml/xenguest/xenguest_stubs.c:342: undefined reference to `xc_hvm_build_target_mem'
collect2: ld returned 1 exit status
File "caml_startup", line 1, characters 0-1:
Error: Error during linking

Not sure which library this function is defined and what am I missing. I thought it should be a clean build as long as I had latest DDK. It doesn't look like that's the case. Any inputs?

Thanks


On Mon, Feb 15, 2010 at 4:17 PM, Ritu kaur <ritu.kaur.us@gmail.com> wrote:
Hi,

I am trying to build xapi toolstack and getting following build errors

xc_lib.c:1205: warning: assignment from incompatible pointer type
xc_lib.c: In function 'xc_domain_trigger_power':
xc_lib.c:1557: error: 'XEN_DOMCTL_SENDTRIGGER_POWER' undeclared (first use in this function)
xc_lib.c:1557: error: (Each undeclared identifier is reported only once
xc_lib.c:1557: error: for each function it appears in.)
xc_lib.c: In function 'xc_domain_trigger_sleep':
xc_lib.c:1570: error: 'XEN_DOMCTL_SENDTRIGGER_SLEEP' undeclared (first use in this function)
make[1]: *** [xc_lib.o] Error 1
make[1]: Leaving directory `/data/repo/xen-api-libs.hg/xc'

I have followed the steps mentioned in "Build the toolstack", since I already have a DDK installed, I added 10GB disk and followed the following steps mentioned on the website i.e

mkfs.ext3 /dev/xvdd
mount /dev/xvdd /data
mv build-xapi-toolstack.sh /data
cd /data
chmod +x build-xapi-toolstack.sh

./build-xapi-toolstack.sh

I don't see anything obvious I am missing, any inputs?

Thanks

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

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