Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"

From: Konstantin Belousov <kostikbel_at_gmail.com>
Date: Mon, 30 Nov 2015 11:39:49 +0200
On Mon, Nov 30, 2015 at 10:04:46AM +0100, O. Hartmann wrote:
> Am Mon, 30 Nov 2015 10:07:59 +0200
> Konstantin Belousov <kostikbel_at_gmail.com> schrieb:
> 
> > On Sun, Nov 29, 2015 at 03:11:42PM -0500, Henry Hu wrote:
> > > On Sun, Nov 29, 2015 at 3:07 PM, O. Hartmann <ohartman_at_zedat.fu-berlin.de>
> > > wrote:
> > >   
> > > >
> > > > On most recent CURRENT (Revision: 291458), ob booting I receive this on
> > > > the console:
> > > >
> > > > Shared object "libelf.so.2" not found, required by "libkvm.so.6"
> > > >
> > > > What looking at the shared object cache with ldconfig -r, I find
> > > > libelf.so.2 as well as
> > > > libkvm.so.6 listed.
> > > >
> > > > What is this weird message?
> > > >  
> > >   
> > >  > locate libelf.so.2  
> > > ...
> > > /usr/lib/libelf.so.2
> > > ...  
> > > > locate libkvm.so.6  
> > > /lib/libkvm.so.6
> > > ...  
> > > > ldd /lib/libkvm.so.6  
> > > /lib/libkvm.so.6:
> > >         libc.so.7 => /lib/libc.so.7 (0x800822000)
> > > 
> > > It's strange that your libkvm.so.6 depends on libelf.so.2. Where does it
> > > come from?  
> > 
> > Does the original reporter have root and /usr volumes split ?
> > Show the 'mount' output on the affected machine.
> 
> 
> Yes, I have split them, of course. / is a partition, /usr is also a partition, also
> /var and /usr/local.
> 
> In fstab, / is the first, /usr the second getting mounted.
> 

Just to explicitely state the obvious, the problem is that libkvm grown
the dependency on libelf after r291406, and libelf lives in /usr. libkvm
is used before /usr is mounted.

I do not know what is the best way to handle it. Most simple is to move
libelf to /lib. How feasible is to move libkvm to /usr/lib (and all
stuff in / which needs libkvm) is the open question.
Received on Mon Nov 30 2015 - 08:39:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:01 UTC