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-devel

Re: [Xen-devel] Re: Xen-unstable save error

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: Xen-unstable save error
From: Michal Novotny <minovotn@xxxxxxxxxx>
Date: Mon, 21 Jun 2010 15:18:22 +0200
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 21 Jun 2010 06:22:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C84522F0.180EE%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C84522F0.180EE%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Thunderbird/3.0.4
On 06/21/2010 03:08 PM, Keir Fraser wrote:
On 21/06/2010 13:57, "Michal Novotny"<minovotn@xxxxxxxxxx>  wrote:

Well, those are objdumps:

$ objdump -x /xen-unstable.hg/tools/xcutils/xc_save | grep xs_sus
0000000000000000       F *UND*  00000000000000ad
xs_suspend_evtchn_port
$ objdump -x /usr/lib64/xen/bin/xc_save | grep xs_suspend
0000000000000000       F *UND*  00000000000000ad
xs_suspend_evtchn_port
$ ls -al /usr/lib64/libxenctrl.so
lrwxrwxrwx 1 root root 17 Jun 21 13:52 /usr/lib64/libxenctrl.so ->
libxenctrl.so.4.0

I was having some libxenctrl* files at /lib64 so I removed them in order
to make linked link those from /usr/lib64 so it did. However, the error
now is:
Well what was the above supposed to achieve? xs_suspend_evtchn_port is
provided by libxenstore. It's that library which is getting mis-linked.
Moving the xc_save binary itself, and/or libxenctrl, isn't going to change
that. Go use ldd to find what libxenstore is being linked against; work out
why it's the wrong one; put the right one in its place.

  -- Keir


Well, I was trying to show that the version that's being linked it the 4.0 version and not 3.4 or older one.

Also,
# ldd /usr/lib64/libxenctrl.so
        linux-vdso.so.1 =>  (0x00007fff275ff000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x000000391ec00000)
        libc.so.6 => /lib64/libc.so.6 (0x000000391e000000)
        /lib64/ld-linux-x86-64.so.2 (0x000000391dc00000)
# objdump -x /usr/lib64/libxenctrl.so | grep xs_
#

So there's no xs_suspend_evtchn_port (or anything xs_*) function being exported by /usr/lib64/libxenctrl.so (which is the symlink to /usr/lib64/libxenctrl.so.4.0.0), therefore:

#objdump -x /usr/lib64/libxenctrl.so.4.0.0 | grep xs_
#objdump -x /xen-unstable.hg/tools/libxc/libxenctrl.so.4.0.0  | grep xs_
#

So the problem here is the missing xs_*.

Note: /xen-unstable.hg/* is the path with Xen-4.1-unstable source codes downloaded from Mercurial and compiled.

Michal

--
Michal Novotny<minovotn@xxxxxxxxxx>, RHCE
Virtualization Team (xen userspace), Red Hat


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