From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 13:03:40 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2098316A4BF for ; Sun, 7 Sep 2003 13:03:40 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id B54DF43FCB for ; Sun, 7 Sep 2003 13:02:40 -0700 (PDT) (envelope-from ru@sunbay.com) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h87K2CEV066147 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 7 Sep 2003 23:02:15 +0300 (EEST) (envelope-from ru@sunbay.com) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h87K2BaI066142; Sun, 7 Sep 2003 23:02:11 +0300 (EEST) (envelope-from ru) Date: Sun, 7 Sep 2003 23:02:11 +0300 From: Ruslan Ermilov To: masta@yazzy.org Message-ID: <20030907200211.GB56123@sunbay.com> References: <19588.12.238.113.137.1062963171.squirrel@mail.yazzy.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1LKvkjL3sHcu1TtY" Content-Disposition: inline In-Reply-To: <19588.12.238.113.137.1062963171.squirrel@mail.yazzy.org> User-Agent: Mutt/1.5.4i cc: current@freebsd.org Subject: Re: problems with_dynamicroot =yes/noshared=no ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 07 Sep 2003 20:03:40 -0000 --1LKvkjL3sHcu1TtY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 07, 2003 at 09:32:51PM +0200, masta@yazzy.org wrote: > Hello friends, >=20 > I'm seeing a weird issue with my recent build, here goes: >=20 > shiba# ls -ld /lib > drwxr-xr-x 2 root wheel 1024 Sep 7 01:53 /lib > shiba# ls -lh /lib/libc.so.5 > -r--r--r-- 1 root wheel 862K Sep 7 01:50 /lib/libc.so.5 > shiba# ls -lh /usr/lib/libc.so.5 > -r--r--r-- 1 root wheel 875K Jul 6 19:53 /usr/lib/libc.so.5 > shiba# ldd /sbin/init > /sbin/init: > libutil.so.3 =3D> /usr/lib/libutil.so.3 (0x28076000) > libcrypt.so.2 =3D> /usr/lib/libcrypt.so.2 (0x28082000) > libc.so.5 =3D> /usr/lib/libc.so.5 (0x2809b000) >=20 > Nothing in my /bin or /sbin is linked to anything in /lib. =3D( > My environment is a jail where I use NOSHARED=3DNO, and WITH_DYNAMICROOT. > At first I though my init was linking to stuff in /usr/lib for > compatibility, but libc is not a symbolic link, so this is not a > compatability-link issue. My working theory thus far is that maybe > NOSHARED=3DNO might be interfearing with WITH_DYNAMICROOT, but I'm not su= re > how to find out if that is true/false. Anybody know what is going on? >=20 Most probably, you forgot to upgrade your /etc/rc.d/ldconfig. Check with ``ldconfig -r'', the ``search directories: '' should start with ``/lib:/usr/lib''. Also, the latest bsd.lib.mk,v 1.154 takes care of removing stale /usr/lib/libfoo.so.X libraries. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --1LKvkjL3sHcu1TtY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/W47DUkv4P6juNwoRAt/IAJ9I7UFNRJoYLUZQNg7n0LuA/pKfTQCfR2U0 esWiJZNH42BUj+sHewtLHbM= =U6LP -----END PGP SIGNATURE----- --1LKvkjL3sHcu1TtY--