From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Novotny Subject: Re: Re: Xen-unstable save error Date: Mon, 21 Jun 2010 15:18:22 +0200 Message-ID: <4C1F669E.4090605@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 06/21/2010 03:08 PM, Keir Fraser wrote: > On 21/06/2010 13:57, "Michal Novotny" 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, RHCE Virtualization Team (xen userspace), Red Hat