From owner-freebsd-current@freebsd.org Mon Nov 30 17:51:06 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 1550DA3D319 for ; Mon, 30 Nov 2015 17:51:06 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::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 E3A7B1242 for ; Mon, 30 Nov 2015 17:51:05 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id D8AA7B980; Mon, 30 Nov 2015 12:51:03 -0500 (EST) From: John Baldwin To: NGie Cooper Cc: Konstantin Belousov , "O. Hartmann" , Henry Hu , FreeBSD CURRENT Subject: Re: Shared object "libelf.so.2" not found, required by "libkvm.so.6" Date: Mon, 30 Nov 2015 09:49 -0800 Message-ID: <1639772.qjkNgKOJT0@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: <835C8EDF-C059-46F5-9143-8133B69F5F92@gmail.com> References: <20151129210725.7baf95ee.ohartman@zedat.fu-berlin.de> <20151130093949.GH3448@kib.kiev.ua> <835C8EDF-C059-46F5-9143-8133B69F5F92@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 30 Nov 2015 12:51:03 -0500 (EST) 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 17:51:06 -0000 On Monday, November 30, 2015 09:33:49 AM NGie Cooper wrote: >=20 > > On Nov 30, 2015, at 01:39, Konstantin Belousov wrote: >=20 > =E2=80=A6 >=20 > > Just to explicitely state the obvious, the problem is that libkvm g= rown > > the dependency on libelf after r291406, and libelf lives in /usr. l= ibkvm > > is used before /usr is mounted. > >=20 > > 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. >=20 > This patch should fix the problem in theory: https://people.freebsd.o= rg/~ngie/fix-libkvm-use-when-usr-and-root-split.patch > Thanks, Looks fine to me if kib@ is ok with it. --=20 John Baldwin