From owner-freebsd-current@FreeBSD.ORG Fri Aug 7 23:17:05 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 057D4106564A for ; Fri, 7 Aug 2009 23:17:05 +0000 (UTC) (envelope-from drew@mykitchentable.net) Received: from smtp2.mc.surewest.net (qsmtp.mc.surewest.net [66.60.130.145]) by mx1.freebsd.org (Postfix) with SMTP id C69548FC15 for ; Fri, 7 Aug 2009 23:17:04 +0000 (UTC) Received: (qmail 14464 invoked from network); 7 Aug 2009 16:04:10 -0700 Received: by simscan 1.1.0 ppid: 14418, pid: 14419, t: 2.2729s scanners: regex: 1.1.0 attach: 1.1.0 spam: 3.1.7-deb X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on smtp2.surewest.net. X-Spam-Level: * X-Spam-Status: No, score=1.0 required=10.0 tests=PLING_PLING autolearn=disabled version=3.1.7-deb X-Spam-CMAE-Analysis: v=1.0 c=1 a=-toGl5vkkxsA:10 a=jDt-9pEAAAAA:8 a=k2CNxw65PACp6cmkuI8A:9 a=f7BsfeY-UYDjOSZi9GMA:7 a=IFDaPmDmlzmCbmsMY8-grGdGhskA:4 a=Sllw8v0m4fwA:10 Received: from unknown (HELO blacklamb.mykitchentable.net) (69.62.230.77) by smtp2 with SMTP; 7 Aug 2009 16:04:08 -0700 Received: from [192.168.2.3] (unknown [192.168.2.3]) by blacklamb.mykitchentable.net (Postfix) with ESMTPA id E5D8A164D16; Fri, 7 Aug 2009 16:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mykitchentable.net; s=default; t=1249687021; bh=ZiAeuDhORKfbN6RKaoB6u8vB8ZrUuDIMrGliLakaRz8=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=MJbNOtfv8whdvTGdouvav9GarA3Lbu1LLZ1YHJ56j6WHxdKx15eHjkQK2OrLhw8p4 vD+zdrRaZzJoS1DDyaq1HSdd8a5NISEP6FqyUbtI8OtGNFp2Hoh+oDm9aVNif9h2pY OVGmiNEd/6DdaOKT0ZSfdsflYYTAu0ehFf6fjSts= Message-ID: <4A7CB5EC.4010404@mykitchentable.net> Date: Fri, 07 Aug 2009 16:17:00 -0700 From: Drew Tomlinson User-Agent: Thunderbird 2.0.0.22 (X11/20090805) MIME-Version: 1.0 To: Chris Ruiz References: <4A7C7220.2090309@mykitchentable.net> <4A7C72E0.8080303@acm.poly.edu> <4A7C77B6.8000209@mykitchentable.net> <58c737d70908071156l2f5f2deds526a996ef9f386b@mail.gmail.com> In-Reply-To: <58c737d70908071156l2f5f2deds526a996ef9f386b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: [Fwd: How To Recover From Missing /lib/libc.so.7? -- SOLVED!!! 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 23:17:05 -0000 Chris Ruiz wrote: > On Fri, Aug 7, 2009 at 1:51 PM, Drew Tomlinson wrote: > >> 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 and >>>> kernel, and installed the kernel. However when I attempted to install >>>> world, I got this error: >>>> >>>> ===> lib/libc (install) >>>> install -C -o root -g wheel -m 444 libc.a /usr/lib >>>> install -C -o root -g wheel -m 444 libc_p.a /usr/lib >>>> install -s -o root -g wheel -m 444 -fschg -S libc.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. As 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. Can I just mount >> the BETA2 CD, search for libc.so.7, can copy it to /lib? Will that give >> me enough to attempt grabbing updated sources and trying again. Or >> should I just somehow install world from the BETA2 CD and move >> /boot/kernel.old back to /boot/kernel? If so, how? >> > > You must specify NO_FSCHG= 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 > Thanks, this worked perfectly. For those like me that might not understand how to "specify NO_FSCHG=", I Googled and found "make installworld NO_FSCHG=" is the way in this case. After restoring libc.so.7 and redoing the installworld, everything seems fine. For my own info, is this something that's documented somewhere and I missed it? Or is this just one of those quirks that has come up and will likely be fixed before the release? Cheers, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com