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] xen-api compile issue

To: Terence Kent <tkent@xxxxxxxxx>
Subject: Re: [Xen-API] xen-api compile issue
From: Jonathan Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx>
Date: Tue, 20 Sep 2011 17:23:11 +0100
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 20 Sep 2011 09:23:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <02BDCFBE-4262-42DD-8B4E-B994F8B796D9@xxxxxxxxx>
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: <02BDCFBE-4262-42DD-8B4E-B994F8B796D9@xxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acx3sZdBlFf3R2gaR8SWd4aZDNmzAw==
Thread-topic: [Xen-API] xen-api compile issue
Apologies, those instructions are a little out-of-date. The problem is that 
xapi and xen-api-libs progress more-or-less in lockstep, and the RPMs of the 
libs haven't been updated in a while.

The best thing to do until I can update the RPMs purge xapi-libs, then build it 
from the github repo (check it out, ./autogen.sh, ./configure, etc), then make 
install. Then try xapi again. You'll need ocaml-3.12.0 too.

Jon

On 20 Sep 2011, at 02:26, Terence Kent wrote:

> Hello all,
> 
> I'm attempting to install the xapi toolstack on a 32bit CentOS 5.6 system 
> with ocaml 3.11.0, but I'm running into an issue. When I follow the 
> instructions for CentOS 5.5 
> (http://wiki.xensource.com/xenwiki/XCP_Building_Instructions), I get the 
> following error when attempting to build:
> 
> omake phase1
> *** omake: reading OMakefiles
> *** omake: finished reading OMakefiles (0.27 sec)
> --- Checking for ocamlfind... (found /usr/bin/ocamlfind)===================== 
>                                                                               
>  ] 00163 / 00333
> --- Checking for ocamlc.opt... (found /usr/bin/ocamlc.opt)
> --- Checking for ocamlopt.opt... (found /usr/bin/ocamlopt.opt)
> --- Checking whether ocamlc understands the "z" warnings... (yes)
> *** omake: done (28.99 sec, 38/38 scans, 52/108 rules, 199/571 digests)       
>                                                                               
>                 
> omake phase2
> *** omake: reading OMakefiles
> *** omake: finished reading OMakefiles (0.22 sec)
> - build ocaml/idl/ocaml_backend xmlrpcclient.cmi                              
>                                                                               
>                 
> + ocamlfind ocamlc -package 
> stdext,log,xml-light2,stunnel,sexpr,http-svr,rpc-light -g -dtypes -thread 
> -warn-error +a-4-6-9-27-28-29 -g -g -I +ocamldoc -I .. -I ../.. -I 
> ../../database -I ../../autogen -I ../../xapi -I ../../client_records -I 
> ../../util -c xmlrpcclient.mli
> File "xmlrpcclient.mli", line 50, characters 16-30:
> Error: Unbound type constructor 
> Http.Request.t=======================================================         
>                                                ] 00262 / 00407
> *** omake: 262/407 targets are up to date                                     
>                                                                               
>                 
> *** omake: failed (1.24 sec, 5/25 scans, 9/68 rules, 20/427 digests)
> *** omake: targets were not rebuilt because of errors:                        
>                                                                               
>                 
>   ocaml/idl/ocaml_backend/xmlrpcclient.cmi
>      depends on: ocaml/idl/ocaml_backend/xmlrpcclient.mli
> make: *** [all] Error 2
> 
> 
> I know very little about ocaml, so I've been unable to debug the error. I've 
> gone through the exercise of installing ocaml-http, in case that was a 
> dependency, but was just a guess and didn't have any effect on the error. Can 
> somebody point me in the right direction?
> 
> Thanks!
> Terence
> 
> 
> _______________________________________________
> xen-api mailing list
> xen-api@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/mailman/listinfo/xen-api


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

<Prev in Thread] Current Thread [Next in Thread>