From owner-freebsd-current@freebsd.org Mon Nov 30 09:39:57 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9C65DA3CE52 for ; Mon, 30 Nov 2015 09:39:57 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 169A6155E; Mon, 30 Nov 2015 09:39:56 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id tAU9dp0c080024 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 30 Nov 2015 11:39:51 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua tAU9dp0c080024 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id tAU9dnxY080023; Mon, 30 Nov 2015 11:39:49 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 30 Nov 2015 11:39:49 +0200 From: Konstantin Belousov To: "O. Hartmann" Cc: Henry Hu , FreeBSD CURRENT , jhb@freebsd.org Subject: Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6" Message-ID: <20151130093949.GH3448@kib.kiev.ua> References: <20151129210725.7baf95ee.ohartman@zedat.fu-berlin.de> <20151130080759.GG3448@kib.kiev.ua> <20151130100446.1af41a37.ohartman@zedat.fu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151130100446.1af41a37.ohartman@zedat.fu-berlin.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2015 09:39:57 -0000 On Mon, Nov 30, 2015 at 10:04:46AM +0100, O. Hartmann wrote: > Am Mon, 30 Nov 2015 10:07:59 +0200 > Konstantin Belousov 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 > > > 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.