From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: Xen-devel@lists.xensource.com
Subject: error while static linking of libxenctrl and libxenguest
Date: Mon, 19 May 2008 17:16:06 +0200 [thread overview]
Message-ID: <20080519151606.GR5731@implementation> (raw)
Hello,
When statically linking the following program:
#include <stdio.h>
#include <xenctrl.h>
#include <xenguest.h>
int main(void) {
printf("%p\n", xc_domain_resume);
printf("%p\n", xc_domain_save);
return 0;
}
gcc -static test.c -o test -lxenguest -lxenctrl -lpthread -lz
we get
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib/libxenctrl.a(xc_private.o): In function `lock_pages':
/home/sthibault/xen-unstable-stubdom.hg/tools/libxc/xc_private.c:130: multiple definition of `lock_pages'
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib/libxenguest.a(xg_private.o):/home/sthibault/xen-unstable-stubdom.hg/tools/libxc/xg_private.c:15: first defined here
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib/libxenctrl.a(xc_private.o): In function `unlock_pages':
/home/sthibault/xen-unstable-stubdom.hg/tools/libxc/xc_private.c:142: multiple definition of `unlock_pages'
/usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib/libxenguest.a(xg_private.o):/home/sthibault/xen-unstable-stubdom.hg/tools/libxc/xg_private.c:24: first defined here
Since libxenguest depends on libxenctrl anyway, shouldn't it use
xc_private's lock/unlock functions?
Samuel
next reply other threads:[~2008-05-19 15:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-19 15:16 Samuel Thibault [this message]
2008-05-20 7:30 ` error while static linking of libxenctrl and libxenguest Keir Fraser
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=20080519151606.GR5731@implementation \
--to=samuel.thibault@eu.citrix.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.