Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2012 20:07:15 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Dan Plassche <dplassche@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: FreeBSD 1.x Binaries Work Except under Chroot
Message-ID:  <20120810170715.GI2425@deviant.kiev.zoral.com.ua>
In-Reply-To: <CAOD8YqpVzT0pdBCHaMcu2krpjHcP3eotyDtiBR7OzUK1E9Hi5g@mail.gmail.com>
References:  <CAOD8YqpVzT0pdBCHaMcu2krpjHcP3eotyDtiBR7OzUK1E9Hi5g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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