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

[Xen-API] api-xen-lib build error

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] api-xen-lib build error
From: Matthias Blankenhaus <matthiasblankenhaus@xxxxxxxxx>
Date: Wed, 13 Jul 2011 22:47:08 -0700 (PDT)
Delivery-date: Wed, 13 Jul 2011 22:47:17 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1310622428; bh=SBNYggY3QsPrndhTloBrwQ4Npt2YJZPEGNyihgGMz/c=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=dEJbJGiwHyFWSax2SnXWyH/lEYiTqABJbG6cY8XxKg6zU0eMM8/d+L90RFdIDe1jYdEmUhifCUrFizkwCOBHpv3c4iOB6TbfhXsAkhSdAhSnVSTvipFvyDX1Q2FLs2nsExB+N5s0mgv0X/cjasBqgFsJ86eK0cQBnj1H1laifIY=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=PsdbKXNXIgcXiMlZRpxGA8SYiRKBB+Km0fre0+vgyKID+T3dei44Gm7qdK/qohm7OnY+KeC9RyOd/H7pXk++rAPu4vSkCQjmPrpaFiTuTvPWaZ9i2Optz1Jd/1QygSCp16qj7x7wNbN2DMEsfRAgAlwoXsSOQW7APAVtKpvBhis=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hi !

I am attempting to build xapi from scratch.  Thus, I started with xen-api-libs, 
downloading the sources from github.  Before starting my build I installed the 
following packges:

# yum install ocaml ocaml-findlib ocaml-getopt ocaml-type-conv ocaml-xmlm omake 
ocaml-xmlm-devel

I then got the following build error:

make -C stdext
ocamlfind: Package `type-conv' not found
make[1]: Entering directory `/root/xen-api-libs/stdext'
ocamlc -g -pp 'camlp4o -I ../rpc-light -I  pa_type_conv.cmo pa_rpc.cma' -I 
../jsonrpc -I ../rpc-light -c -o fe.cmo fe.ml
Camlp4: Uncaught exception: DynLoader.Error ("pa_rpc.cma", "file not found in 
path")

File "fe.ml", line 1, characters 0-1:


I realized that some of the caml pkgs were placed under /usr/lib/ocaml instead 
of /usr/lib64/ocaml: 

# ls /usr/lib/ocaml/
getopt  type-conv  xmlm

Next, I copied those dirs to /usr/lib64/ocaml.  This seems to have improved the 
situtation slightly as the type-conv module can now be found.  However, I now 
receive the following error:

make[1]: Entering directory `/root/xen-api-libs/stdext'
ocamlc -g -pp 'camlp4o -I ../rpc-light -I /usr/lib64/ocaml/type-conv 
pa_type_conv.cmo pa_rpc.cma' -I ../jsonrpc -I ../rpc-light -c -o fe.cmo fe.ml
Camlp4: Uncaught exception: DynLoader.Error 
("/usr/lib64/ocaml/type-conv/pa_type_conv.cmo", 
"/usr/lib64/ocaml/type-conv/pa_type_conv.cmo is not a bytecode object file")

File "fe.ml", line 1, characters 0-1:
Error: Preprocessor error
make[1]: *** [fe.cmo] Error 2
make[1]: Leaving directory `/root/xen-api-libs/stdext'
make: *** [all] Error 2


Your help is much appreciated.

Matthias



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

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