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

Re: [Xen-devel] Xen Store API in userspace


  • To: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
  • From: Artur Baruchi <mail.baruchi@xxxxxxxxx>
  • Date: Tue, 17 Mar 2009 16:04:53 -0300
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 17 Mar 2009 12:05:24 -0700
  • 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:content-transfer-encoding; b=A5k2/Bh3CWi7qRJ4py8Y4PzhyuC7E9qjrBEfVPqxWNPQmiP5mrt13b1cLt/9rZqSN2 e2QGyneezC4Zx65nxc5/33gGMGmoqosuyxEqs4tnFekL8eWLOuWvYzYrDVAu/HJv925g WzYujIj2JF/g8d3ISIgRAxC2X/aPJRIRqy//Q=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi.

I used the xs.h but when tring to compile it, I got the follow error messages:

get_info.c:(.text+0x9): undefined reference to `xs_daemon_open'
get_info.c:(.text+0x5a): undefined reference to `xs_write'
get_info.c:(.text+0x63): undefined reference to `xs_daemon_close'
collect2: ld returned 1 exit status


The command to compile is:
gcc -Wall get_info.c -o get_info.o

Part of the code:
#include <xs.h>
...
struct xs_handle *xsh;
xsh = xs_daemon_open();
...
xs_write (xsh, XBT_NULL, "testing", mem, strlen(mem));
xs_daemon_close(xsh);


I dont think its a problem in my code, but it is in my libs or the way
that Im tring to compile it.


Thanks in advance.

Att.
Artur Baruchi



On Mon, Mar 16, 2009 at 9:46 PM, Zhigang Wang <zhigang.x.wang@xxxxxxxxxx> wrote:
> Artur Baruchi wrote:
>> Hi Guys,
>>
>> Is possible to use functions like xenbus_printf in user space? If
>> yes.. which libraries do I should use ?
>
> xen-unstable/tools/xenstore/xs.h
>
> use this lib.
>
> zhigang
>
>>
>> Thanks in advance.
>>
>> Att.
>> Artur Baruchi
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel
>
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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