From owner-freebsd-current@FreeBSD.ORG Fri Aug 7 18:56:21 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CB2D106566C for ; Fri, 7 Aug 2009 18:56:21 +0000 (UTC) (envelope-from yr.retarded@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id C4E328FC25 for ; Fri, 7 Aug 2009 18:56:20 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 9so471308eyd.7 for ; Fri, 07 Aug 2009 11:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=unsWp5WCJ3rVwbgIEKkRv5GEDS1OGXdKGCKR4naGEm4=; b=hgx0tdNrGGOLkizUbL5oh/X/ntPpFfvniQLW05aPfi+U+a27WsHYJlU1c7elRzPgLx dCq8IirZMiqThMPacBYg5X12l30Sh7e+fLsMUuyyUWQWAR6d6RJG1naA/cCtoKDfewjo aX0pYXMeDZnz+yAWdECoOQmeDrQk8HltUAyAo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=vlNNYJGvQ5IVvkWPP/DmDctlFWI7Zj5CqMVe17I1WfNMTVBKYGvpg7I5LifE+xE9tA F+zQqaKfjQLphm5Yk0BRLJ/Paisqag9A0FODn7FF9tr3to7EQeHjPo4YurJZZMMsSNlo DPQs8JwVacCmly1peSDfHd8bnHAqrTVoAToyk= MIME-Version: 1.0 Received: by 10.211.179.6 with SMTP id g6mr1750089ebp.94.1249671379412; Fri, 07 Aug 2009 11:56:19 -0700 (PDT) In-Reply-To: <4A7C77B6.8000209@mykitchentable.net> References: <4A7C7220.2090309@mykitchentable.net> <4A7C72E0.8080303@acm.poly.edu> <4A7C77B6.8000209@mykitchentable.net> Date: Fri, 7 Aug 2009 13:56:19 -0500 Message-ID: <58c737d70908071156l2f5f2deds526a996ef9f386b@mail.gmail.com> From: Chris Ruiz To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Fwd: How To Recover From Missing /lib/libc.so.7?] 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: Fri, 07 Aug 2009 18:56:21 -0000 On Fri, Aug 7, 2009 at 1:51 PM, Drew Tomlinson wro= te: > Boris Kochergin wrote: >> Drew Tomlinson wrote: >>> I was running FreeBSD8.0-BETA2 amd64 and attempted to upgrade with >>> current sources as of yesterday (8/6/09). I successfully built world an= d >>> kernel, and installed the kernel. However when I attempted to install >>> world, I got this error: >>> >>> =3D=3D=3D> lib/libc (install) >>> install -C -o root -g wheel -m 444 =A0 libc.a /usr/lib >>> install -C -o root -g wheel -m 444 =A0 libc_p.a /usr/lib >>> install -s -o root -g wheel -m 444 =A0 -fschg -S =A0libc.so.7 /lib >>> install: /lib/libc.so.7: chflags: Invalid argument >>> *** Error code 71 >>> >>> Stop in /usr/src/lib/libc. >>> *** Error code 1 >>> >>> >>> And now I can't do anything as every command fails with: >>> >>> /libexec/ld-elf.so.1: Shared object "libc.so.7" not found >>> >>> How can I recover from this error? >>> >>> Thanks, >>> >>> Drew >>> >>> >> There are statically-linked versions of essential utilities in >> /rescue/. For example, you can use /rescue/mount_nfs to mount an NFS >> server with the files you need, then /rescue/cp to copy them to your >> system. > > Thanks for the reply. =A0As I mentioned in my reply to Jakob Lach, I > really have no business running -CURRENT but loaded BETA2 because the > release is expected soon. > > So basically I have the rescue tools and the BETA2 cd. =A0Can I just moun= t > the BETA2 CD, search for libc.so.7, can copy it to /lib? =A0Will that giv= e > me enough to attempt grabbing updated sources and trying again. =A0Or > should I just somehow install world from the BETA2 CD and move > /boot/kernel.old back to /boot/kernel? =A0If so, how? You must specify NO_FSCHG=3D when you installworld on an unupgraded ZFS filesystem, otherwise you will lose libc.so.7! I'll spare you the details on why this happens. Here's a quick fix: #/rescue/cp /usr/obj/usr/src/lib/libc/libc.so.7 /lib --=20 @chrisattack ----------------------------------------- http://twitter.com/chrisattack http://chrisattack.com