Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 2015 11:39:49 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        Henry Hu <henry.hu.sh@gmail.com>, FreeBSD CURRENT <freebsd-current@freebsd.org>, jhb@freebsd.org
Subject:   Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6"
Message-ID:  <20151130093949.GH3448@kib.kiev.ua>
In-Reply-To: <20151130100446.1af41a37.ohartman@zedat.fu-berlin.de>
References:  <20151129210725.7baf95ee.ohartman@zedat.fu-berlin.de> <CAEJt7hb_45a-XOddf8QLWcLpYLTKvB65Ci2O928wPrTvJTo0%2BQ@mail.gmail.com> <20151130080759.GG3448@kib.kiev.ua> <20151130100446.1af41a37.ohartman@zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151130093949.GH3448>