From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 10 17:07:21 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A9994106564A for ; Fri, 10 Aug 2012 17:07:21 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 084E28FC12 for ; Fri, 10 Aug 2012 17:07:20 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q7AH7SHK031112; Fri, 10 Aug 2012 20:07:28 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q7AH7FTO011918; Fri, 10 Aug 2012 20:07:15 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q7AH7Fp3011917; Fri, 10 Aug 2012 20:07:15 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 10 Aug 2012 20:07:15 +0300 From: Konstantin Belousov To: Dan Plassche Message-ID: <20120810170715.GI2425@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zqjkMoGlbUJ91oFe" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 1.x Binaries Work Except under Chroot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2012 17:07:21 -0000 --zqjkMoGlbUJ91oFe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 10, 2012 at 12:06:46PM -0400, Dan Plassche wrote: > Hello, >=20 > I'm successfully running FreeBSD 1.1.5.1 binaries from a > directory on an 8.2 system. The goal is to ultimately setup a > chroot build environment targeting 1.x for an old 386. However, > whenever I chroot to the /freebsd-1.1.5.1 directory tree, the old > binaries suddenly start failing with linker error messages such > as this one: "ld.so: whereis: libc.so.1.1". >=20 > I've tried to run ldconfig (static old and new versions) on > clean copies of /freebsd-1.1.5.1 to correct the problem. Each > copy of the tree has libc.so.1.1 under /usr/lib and the full > /usr/lib/compat/aout (just in case). >=20 > Running the old ldconfig with the -v flag against both library > directories shows the libraries added and produces a new > /var/run/ld.so.hints file. Running that same old ldconfig with > -r shows "2:-lc.1.1 =3D> /usr/lib/libc.so.1.1 (9-> -1)" but the > binaries still fail in the chroot. >=20 > The same process with the 8.2 ldconfig (after copying > in /libexec/ld-elf.so.1 and /lib/libc.so.7 to make it > work) also fails to resolve the problem after creating the > aout /var/run/ld.so.hints file for /usr/lib/* and the elf > /var/run/ld-elf.so.hints file for /lib. >=20 > Would anyone have a suggestion please? The setup outside of the > chroot works with the 1.x compat libraries combines with a kernel > compiled with the compat options and PID_MAX set to 3000. Try to ktrace the binaries to see what is going on. I suspect that sources for 1.1.5 are not in our cvs/svn, so it is troublesome to say anuthing without ktrace dump. --zqjkMoGlbUJ91oFe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlAlP8MACgkQC3+MBN1Mb4gmtwCfaKwBh5MuLx424XhWqzzCF0jW gkQAn3j/gAktg7qUSMXv0jRsj6NlOaNj =bM3g -----END PGP SIGNATURE----- --zqjkMoGlbUJ91oFe--