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] Few Questions About Xen management API

To: "Ewan Mellor" <ewan@xxxxxxxxxxxxx>
Subject: Re: [Xen-API] Few Questions About Xen management API
From: "rickey berkeley" <rickey.berkeley@xxxxxxxxx>
Date: Sun, 13 Aug 2006 19:41:56 +0800
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 13 Aug 2006 04:42:13 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=sRKib8jXC3NebdXo9kvA9Y5pH4AnAUvLED1RDmYO7hlED6cW/sGQe9A8vxNcX0n3AmSHHQDq3Xl86R4ulHS+bGn14viXYJKceoAxPXrO+0scFWH5YO5byDYqycWNBUil0xhvYUEw3lWSTecfqYA94S5vMNVm8t1cqwbY9a5430M=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060812093030.GA14322@xxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <8061f8830608120102t2c7af69bk252a3c5b5d131feb@xxxxxxxxxxxxxx> <20060812093030.GA14322@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx

Hi Ewan:
 
Thanks so much for your particular explaination ! That's really helpful !
And I try the c-bings from the wiki page, but seems that there are lot of unexpected
problems. I konw this is not a stable version API, but can u help me find what's the reason cause these problems? I just wanna see the snap-shot of these test_bings. 
I list the my install steps for investigation.
Thanks in advance!
 
============
 Softwate Env
============
 
Fedora Core release 5 (Bordeaux)
 
gcc          version 4.1.0 20060304 (Red Hat 4.1.0-3)
libxml2     libxml2-2.6.23-1.2
               libxml2-python-2.6.23-1.2
                libxml2-devel-2.6.23-1.2
curl          curl-devel-7.15.1-1.2.1
               curl-7.15.1-1.2.1
xen          3.0.2
============
 Steps
============
1 make

there are a lot of warnnings and make error
-----------------------------------------------------------------------------------------
cc -Iinclude -I/usr/include/libxml2  -W -Wall -Werror -std=c99 -O2 -fPIC   -c -o src/xen_common.o src/xen_common.c
cc1: warnings being treated as errors
src/xen_common.c: In function ¡®xen_init¡¯:
src/xen_common.c:102: warning: pointer targets in passing argument 1 of ¡®xmlXPathCompile¡¯ differ in signedness
src/xen_common.c:105: warning: pointer targets in passing argument 1 of ¡®xmlXPathCompile¡¯ differ in signedness
src/xen_common.c: In function ¡®call_raw¡¯:
src/xen_common.c:243: warning: pointer targets in passing argument 2 of ¡®parse_result¡¯ differ in signedness
src/xen_common.c: In function ¡®is_container_node¡¯:
src/xen_common.c:293: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:293: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:293: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:293: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:293: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:293: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c: In function ¡®string_from_value¡¯:
src/xen_common.c:308: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:308: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:308: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:308: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:308: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:308: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c: In function ¡®string_from_name¡¯:
src/xen_common.c:327: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:327: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:327: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:327: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:327: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:327: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c: In function ¡®count_children¡¯:
src/xen_common.c:345: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:345: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:345: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:345: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:345: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:345: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c: In function ¡®parse_into¡¯:
src/xen_common.c:386: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:386: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:386: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:386: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:386: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:386: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:506: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:506: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:506: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:506: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:506: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:506: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:523: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:523: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:523: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:523: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:523: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:523: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:547: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:547: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:547: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:547: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:547: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:547: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:598: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:598: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:598: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:598: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:598: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:598: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:619: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:619: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:619: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:619: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:619: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:619: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c: In function ¡®parse_structmap_value¡¯:
src/xen_common.c:754: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:754: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:754: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:754: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:754: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:754: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c: In function ¡®parse_fault¡¯:
src/xen_common.c:810: warning: pointer targets in passing argument 1 of ¡®xen_strdup_¡¯ differ in signedness
src/xen_common.c:811: warning: pointer targets in passing argument 1 of ¡®xen_strdup_¡¯ differ in signedness
src/xen_common.c: In function ¡®parse_result¡¯:
src/xen_common.c:912: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:912: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:912: warning: pointer targets in passing argument 1 of ¡®strlen¡¯ differ in signedness
src/xen_common.c:912: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:912: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
src/xen_common.c:912: warning: pointer targets in passing argument 1 of ¡®__builtin_strcmp¡¯ differ in signedness
make: *** [src/xen_common.o] Error 1
-----------------------------------------------------------------------------------------
Waring 
   gcc version cause these waring message 
   delete -Werror in the Makefile will ignore these warnnings and compile successfully
 
3 cp
  cp hacked-XMLRPCServer.py  /usr/lib/python/xen/xend/server/XMLRPCServer.py
4 start xend
 
5 test_bindings failed
 
   export LD_LIBRARY_PATH=src
  ./test/test_bindings localhost:8005/RPC2 root 123456
 
-----------------------------------------------------------------------------------------

:5: parser error : Opening and ending tag mismatch: META line 2 and HEAD
</HEAD><BODY>
       ^
:8: parser error : Specification mandate value for attribute noshade
<HR noshade size="1px">
            ^
:8: parser error : attributes construct error
<HR noshade size="1px">
            ^
:8: parser error : Couldn't find end of Start Tag HR line 8
<HR noshade size="1px">
            ^
:19: parser error : Opening and ending tag mismatch: LI line 15 and UL
</UL>
     ^
:28: parser error : Opening and ending tag mismatch: LI line 27 and UL
</UL>
     ^
:32: parser error : Specification mandate value for attribute noshade
<HR noshade size="1px">
            ^
:32: parser error : attributes construct error
<HR noshade size="1px">
            ^
:32: parser error : Couldn't find end of Start Tag HR line 32
<HR noshade size="1px">
            ^
:36: parser error : Opening and ending tag mismatch: BR line 31 and BODY
</BODY></HTML>
       ^
:36: parser error : Opening and ending tag mismatch: P line 29 and HTML
</BODY></HTML>
              ^
:37: parser error : Premature end of data in tag LI line 26

^
:37: parser error : Premature end of data in tag LI line 25

^
:37: parser error : Premature end of data in tag LI line 24

^
:37: parser error : Premature end of data in tag UL line 23

^
:37: parser error : Premature end of data in tag P line 21

^
:37: parser error : Premature end of data in tag UL line 14

^
:37: parser error : Premature end of data in tag P line 12

^
:37: parser error : Premature end of data in tag P line 9

^
:37: parser error : Premature end of data in tag BODY line 5

^
:37: parser error : Premature end of data in tag HEAD line 2

^
:37: parser error : Premature end of data in tag HTML line 2

^
Error: 2SERVER_FAULT Couldn't parse the server response

-----------------------------------------------------------------------------------------

can you show me which steps I got mistake ? Thanks.
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>