From owner-freebsd-current@FreeBSD.ORG Thu Feb 16 15:01:40 2012 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 D7F3D106567A; Thu, 16 Feb 2012 15:01:40 +0000 (UTC) (envelope-from bugReporter@Haakh.de) Received: from mo-p00-ob6.rzone.de (mo-p00-ob6.rzone.de [IPv6:2a01:238:20a:202:53f0::1]) by mx1.freebsd.org (Postfix) with ESMTP id CBA208FC16; Thu, 16 Feb 2012 15:01:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1329404497; l=1962; s=domk; d=haakh.de; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References: Subject:CC:To:MIME-Version:From:Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=Mu9fAKSiHTpiT7J7R+1VynSgv3Q=; b=oxi4yszQ8upy7XuDiOFpo+HDSkydIwAkPF13/BbgCSk5mwF7u7/yo7rp88AOhWTxmeb NNouI5AL2TvAoRlZN9Ypn3qaatdL6W0vYKgHDN3QDHha0VWprYFycMnCIDD72ySFJZigB 6N28VNp/3pPD44mGUG6dYNmnVgerrrwdqS8= X-RZG-AUTH: :LWQcbViwW/e6OTbW0dHzwKkCepY3+zAQY9KdRPw9VcHc3bN9H/b7W23VtQ== X-RZG-CLASS-ID: mo00 Received: from abaton.Haakh.de (p57A7160E.dip.t-dialin.net [87.167.22.14]) by smtp.strato.de (cohen mo13) (RZmta 27.6 DYNA|AUTH) with ESMTPA id y03b82o1GEKXxE ; Thu, 16 Feb 2012 16:01:32 +0100 (MET) Received: from Crabberio.Haakh.de (crabberio.Haakh.de [192.168.63.16]) by abaton.Haakh.de (8.14.5/8.14.5) with ESMTP id q1GF1SuN014340; Thu, 16 Feb 2012 16:01:28 +0100 (CET) (envelope-from bugReporter@Haakh.de) Message-ID: <4F3D1A48.3040005@Haakh.de> Date: Thu, 16 Feb 2012 16:01:28 +0100 From: "Dr. A. Haakh" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.1) Gecko/20120211 Firefox/10.0.1 SeaMonkey/2.7.1 MIME-Version: 1.0 To: "O. Hartmann" References: <4F3B89FC.4020802@mail.zedat.fu-berlin.de> <4F3B9B4C.5070508@FreeBSD.org> <20120215120130.GP93151@e-new.0x20.net> <4F3BA719.3060702@mail.zedat.fu-berlin.de> <4F3BABDE.30908@FreeBSD.org> <4F3CD464.6090507@mail.zedat.fu-berlin.de> In-Reply-To: <4F3CD464.6090507@mail.zedat.fu-berlin.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 16 Feb 2012 16:27:05 +0000 Cc: Current FreeBSD , Dimitry Andric , Lars Engels , Andriy Gapon , krassi@bulinfo.net Subject: Re: killed libc.so.7 somehow - help./ISO images of CURRENT 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: Thu, 16 Feb 2012 15:01:40 -0000 O. Hartmann wrote: > On 02/15/12 13:58, Dimitry Andric wrote: >> On 2012-02-15 13:37, O. Hartmann wrote: >>> ;-) Problem: I can not even login anymore, since I have "insecured" the >>> console for security reasons and the shell is rejecting due to a symbol >>> missing. I tried booting into single user mode, but that doesn't help >>> much. >> When booting in single user mode, use /rescue/sh as initial shell. This >> is statically linked, so should always be able to run. Then use the >> tools in /rescue to copy back a known good libc.so.7. > Last night I did and tried with no success. > > First I booted from a boot-only cd. After copying libc.so.7, I still > received on binaries of the local disc > > Symbol "_ThreadRuneLocal" not found. So I copied all libs from cd to > /lib/ on disc. That helped - for short. I tried to build world again > with no success, since cc was missing on the boot/rescue cd. > > So I booted the regular system again and tried building world. It > failed, clang obviously suffered from the same missing symbol. > > The I did > > make clean cleandepend depend obj all install > > in folder > > /usr/src/lib. > > But after a reboot, I found myself confronted with the same initial > situation when I started the thread. > > I guess I have "old" binaries and now too recent libs? I fear I'm > missing one little specific point to repair the system. > > Regards, > > Oliver If You have started the whole 'disaster' using 'make buildworld' then all the necessary build-tools should still reside under /usr/obj/usr/src/tmp or /usr/obj/usr/src/tmp/legacy including a statically linked clang. At least this is the layout on 9.0-STABLE. You can either setup your environment in single usermode to use these (/usr/src/Makefile will give you some hints what to do) or copy them to /usr/bin ... Then try to rebuild and install your world (and kernel). Hope this helps Andreas