From owner-freebsd-current@FreeBSD.ORG Tue Aug 15 21:02:37 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 6EB7D16A4DA for ; Tue, 15 Aug 2006 21:02:37 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from sccmmhc91.asp.att.net (sccmmhc91.asp.att.net [204.127.203.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3272243D5E for ; Tue, 15 Aug 2006 21:02:36 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net ([12.207.12.9]) by sccmmhc91.asp.att.net (sccmmhc91) with ESMTP id <20060815210234m910085keje>; Tue, 15 Aug 2006 21:02:34 +0000 Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.6/8.13.6) with ESMTP id k7FL2ST8030430; Tue, 15 Aug 2006 16:02:28 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.6/8.13.6/Submit) id k7FL2RFh030367; Tue, 15 Aug 2006 16:02:27 -0500 (CDT) (envelope-from brooks) Date: Tue, 15 Aug 2006 16:02:27 -0500 From: Brooks Davis To: Michael Gardner Message-ID: <20060815210227.GA5160@lor.one-eyed-alien.net> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Cc: freebsd-current@freebsd.org Subject: Re: Ldconfig mistake renders system unbootable? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 15 Aug 2006 21:02:37 -0000 --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--