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

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

To: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Subject: Re: [Xen-API] Re: Compile errors when building toolstack
From: Ritu kaur <ritu.kaur.us@xxxxxxxxx>
Date: Wed, 17 Feb 2010 06:59:32 -0800
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 17 Feb 2010 07:04:38 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=O5aLeSi4/d6sOu+ZooIRL2OWtaSbQzmNAFVtUSRB2Lw=; b=dj+Dhwl0Led+nY+EBJQW5vX35CmWCa7KDd/94FuybG1V13ZXbc+lRva12VYfh5OmIE T+8H57QIxtGUiXU2aZpivuKDutLCbBYp0CSp4R1JBFc3bz8ZwLZ0M9xUlL/n/Z3yzCB+ HvGVpCReUxH/Gz78mBgxcivxWLI3txufElM8s=
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 :cc:content-type; b=feooSjAD/m7pXj/KoBhjUseSWic7C7fW5XpZJLsYeAGp61aBksJPSifdWJFtw8rDsC 4kOXYPOo4CmXh2PZaABui+kKtZzm0qditvgBuKtjzQqZYFoJrp6JDo0AUpd7jq2s05a7 8kpJQ9zX1wjFpBX0hmZwIv7ktrFYd+R2sv7X4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <81A73678E76EA642801C8F2E4823AD2143E92239F5@xxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <29b32d341002151617o7b6cfeedp2dd9d72853782c51@xxxxxxxxxxxxxx> <29b32d341002160939y64405b9h684efb73ce346c65@xxxxxxxxxxxxxx> <81A73678E76EA642801C8F2E4823AD2143E92239F5@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hi Dave,

motd file in /etc is empty. Assuming it's older version, I don't see a way to upgrade from 0.1 to 0.1.1, is reinstallation the only option? "uname -a" on DDK gives

Linux myxenddk 2.6.18-128.1.6.el5.xs5.5.0.496.1012xen #1 SMP Fri May 29 07:35:00 EDT 2009 i686 i686 i386 GNU/Linux

Thanks

On Tue, Feb 16, 2010 at 12:41 PM, Dave Scott <Dave.Scott@xxxxxxxxxxxxx> wrote:

Hi,

 

The last time I saw an error about SENDTRIGGER_SLEEP and SENDTRIGGER_POWER it was because the DDK version was too old. Could you confirm the build number? I think it’s in /etc/motd. I bet the XCP 0.1 DDK is too old—you’ll need at least the XCP 0.1.1 version.

 

Part of the reason our build is so fragile atm is because we haven’t hooked in the build of xen and the dom0 kernel. Once we have that it should be possible to rebuild basically everything with one ‘make’. That’ll be a big improvement.

 

Cheers,

Dave

 

 

From: xen-api-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Ritu kaur
Sent: 16 February 2010 17:39
To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Re: Compile errors when building toolstack

 

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
<Prev in Thread] Current Thread [Next in Thread>