From owner-freebsd-questions@FreeBSD.ORG Wed Oct 8 13:14:08 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEBA916A4B3 for ; Wed, 8 Oct 2003 13:14:07 -0700 (PDT) Received: from services.cam.org (services.cam.org [198.73.180.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BE5043F75 for ; Wed, 8 Oct 2003 13:14:07 -0700 (PDT) (envelope-from owilson@cam.org) Received: from dialup-141-45-84-199.hip.cam.org ([199.84.45.141] helo=cam.org) by hiruko.services.cam.org with smtp (CAM Internet) id 1A7KhA-0007au-00 for ; Wed, 08 Oct 2003 16:14:05 -0400 Message-ID: <3F842C93.632C5FD5@cam.org> Date: Wed, 08 Oct 2003 16:26:11 +0100 From: Oliver Wilson X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG X-Priority: 2 (High) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Broken /usr/lib on FreeBSD 4.7 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2003 20:14:08 -0000 Hello, I inadvertently broke the /usr/lib on my FreeBSD 4.7 box. Here's how this happened. * In an xterm as root, I issued the command "ldconfig -r" as root, and attempted to copy the ldconfig output using the mouse. I selected the first 20 lines of this output with the mouse, and was about to paste it into an editor, when I inadvertently pressed the middle button while the cursor was still in the xterm. * The system immediately froze. I rebooted the system in single user mode, fsck'ed the filesystems, then mounted them. I then issued "ctrl d" to allow the boot sequence to continue, which it did. * The built-in ldconfig issued many errors, all of them stating that /usr/lib components had an invalid file formats. I rebooted the system back to single user, and issued an "ldconfig -r" which listed the ld-elf "so.hints" search directories, together with all the actual load libraries for elf . * I assumed that the first 20 library files were corrupted, and sought to replace these with files from a /usr/lib library that I found on the web. * Working in single user mode I now find that when I attempted any command that sends formatted output to the screen (e.g. ls -la), I get the following message: "/usr/libexec/ld-elf.so.1: /usr/lib/libncurses.so.5: Shared object has no run-time symbol table" * It seems to me that the approximately first 20 /usr/lib files have been corrupted. * However the system continues to boot the kernel OK. How can I fix this? Any tips or advice will be greatly appreciated Oliver Wilson