[Pkg-xen-devel] Fwd: Re: xen-qemu-dm does not build with backported xen-4.1
Ian Campbell
ijc at hellion.org.uk
Wed Apr 27 16:43:36 UTC 2011
On Thu, 2011-04-28 at 00:02 +0800, Thomas Goirand wrote:
> On 04/27/2011 09:08 PM, Ian Campbell wrote:
> > On Wed, 2011-04-27 at 15:00 +0200, Niccolò Belli wrote:
> >> Il 27/04/2011 14:37, Ian Campbell ha scritto:
> >>> Which specific revision of qemu-xen-4.1 are you using?
> >>
> >> I'm using a tarball from
> >> http://bits.xensource.com/oss-xen/release/4.1.0/xen-4.1.0.tar.gz
> >> It seems Thomas used the tools/ioemu-qemu-xen subdirectory as source for
> >> xen-qemu-dm. At a first glance I didn't notice
> >> debian/mypatches/add-rules.patch: it adds Rules.mk from the tools
> >> directory, which get lots of changes from 4.0 to 4.1, so that's probably
> >> what causes the error.
> >> Thomas, did you try with a newer version of Rules.mk?
> >
> > You need to use the tools/ioemu-qemu-xen from xen-4.1.0.tar.gz too, just
> > changing the Rules.mk isn't going to be sufficient.
> >
> > Ian.
>
> I fixed the Rules.mk, Config.mk and others in a bit hackish way, but it
> works. I got something that builds, but doesn't link:
>
> LINK i386-dm/qemu-dm
> /usr/bin/ld: /usr/lib/libxenctrl.a(xc_private.o): undefined reference to
> symbol 'dlclose@@GLIBC_2.2.5'
> /usr/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO
> /lib64/libdl.so.2 so try adding it to the linker command line
> /lib64/libdl.so.2: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
>
> It's currently a bit late here in Zhengzhou, China. So I'll finish to
> work on it tomorrow. But maybe in the mean while I can get some help.
> Ian, do you know what I can do to fix?
Looks like you are statically linking (e.g. the above refers
to /usr/lib/libxenctrl.a and not libxenctrl.so). You should be
dynamically linking (for various reasons, including Debian policy) in
which case this problem should go away. I don't know why it is trying to
statically link though, perhaps libxenctrl.so is missing somehow?
If you really want to statically link you will need to add all the
appropriate libraries to the link line, in this case "-ldl", but there
will likely be many more.
Ian.
>
> My hack is here:
> http://ftparchive.gplhost.com/xen-qemu-dm-4.1/
>
> Thomas
>
--
Ian Campbell
Lots of people drink from the wrong bottle sometimes.
-- Edith Keeler, "The City on the Edge of Forever",
stardate unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20110427/1933bb59/attachment.pgp>
More information about the Pkg-xen-devel
mailing list