Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2006 16:02:27 -0500
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Michael Gardner <gardnermj@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Ldconfig mistake renders system unbootable?
Message-ID:  <20060815210227.GA5160@lor.one-eyed-alien.net>
In-Reply-To: <d920be5d0608151358vf22dcd8jde97b39db6b9ad93@mail.gmail.com>
References:  <d920be5d0608151358vf22dcd8jde97b39db6b9ad93@mail.gmail.com>

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

--qDbXVdCdHGoSgWSk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Aug 15, 2006 at 03:58:59PM -0500, Michael Gardner wrote:
> I was trying to get a Linux binary to run
> (http://filter24.org/seq24/), and was having problems with linking, so
> I messed around with ldconfig a bit and somehow ended up breaking my
> system completely. The command I ran before everything broke was
> "ldconfig -elf /usr/compat/linux/lib", which I now realize was not at
> all what I wanted to do. Now when I try to boot FreeBSD, even in
> single user mode, I get the folowing:
>=20
> libexec/ld-elf.so.1: Undefined symbol "__stdoutp" referenced from COPY
> relocation in -sh
> libexec/ld-elf.so.1: Undefined symbol "__stdoutp" referenced from COPY
> relocation in sh
>=20
> It then asks me for the location of my shell, but keeps giving the
> errors above no matter which shell I choose (/bin/sh being the obvious
> one).
>=20
> I'm running FreeBSD 6.1 (and have been since it came out, so this
> shouldn't have anything to do with upgrading). I know I did something
> monumentally dumb, but how can I fix things?

Use /rescue/sh as your shell (it's statically linked) and then use
/rescue/ldconfig to fix the databases.

-- Brooks

--qDbXVdCdHGoSgWSk
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFE4jZiXY6L6fI4GtQRAkOzAKCc6TME3a9kl0qg7ClmHwhKmop9uwCfUoYU
Ib5Durm1PrWokueO7GPQmPc=
=xq1l
-----END PGP SIGNATURE-----

--qDbXVdCdHGoSgWSk--



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