From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: Artur Baruchi <mail.baruchi@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Xen Store API in userspace
Date: Wed, 18 Mar 2009 08:43:27 +0800 [thread overview]
Message-ID: <49C043AF.5010607@oracle.com> (raw)
In-Reply-To: <e3977d9c0903171204j6cd582e5g43d477d2045006f3@mail.gmail.com>
Artur Baruchi wrote:
> 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
try to add: -lxenstore
>
> 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@oracle.com> 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@lists.xensource.com
>>> http://lists.xensource.com/xen-devel
>>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
prev parent reply other threads:[~2009-03-18 0:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-16 22:47 Xen Store API in userspace Artur Baruchi
2009-03-17 0:46 ` Zhigang Wang
2009-03-17 19:04 ` Artur Baruchi
2009-03-17 19:12 ` Artur Baruchi
2009-03-18 0:43 ` Zhigang Wang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49C043AF.5010607@oracle.com \
--to=zhigang.x.wang@oracle.com \
--cc=mail.baruchi@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.