From owner-freebsd-questions@FreeBSD.ORG Tue Jul 14 13:17:37 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2DC71065675 for ; Tue, 14 Jul 2009 13:17:37 +0000 (UTC) (envelope-from pervect@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id 874A38FC14 for ; Tue, 14 Jul 2009 13:17:37 +0000 (UTC) (envelope-from pervect@gmail.com) Received: by yxe11 with SMTP id 11so5230582yxe.3 for ; Tue, 14 Jul 2009 06:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=coV+6PRXL8Hnue9hlNz2WKnx5Z273QaQtiZ1/k3WcyA=; b=Sl2igz100ihpiBmq+hZOehi4/EQCxo3jFiGM49n/eriJPgkiaJ+mlLWPtCcEY0tDAx J8QghRsQ0GnYoXhxXgWYjAZApsW+XIRoH+2Yrer6+DvsOKBbT10z+Rbtm5YHSck68IjZ mycOsgFvYq2AEi+jmYHUeMyQwnEnicXSXRzu4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=io1TC/Zqp4Tw33V5s/bNklMc1dV5Rof78UkN1M/tTEVkZRxWdWtvwzBRQbCr7kwYVC SaQhwMgLa+csFa5Yj4FDLW0xgf4ZmD9WHmwH7EJYGxL5bmpVbh/PUPF81gsUveCgu7FX qAZqHA2ZYvKe2/KDelSi3lzJP4SricYASKc4o= MIME-Version: 1.0 Sender: pervect@gmail.com Received: by 10.231.39.136 with SMTP id g8mr1092328ibe.41.1247577456272; Tue, 14 Jul 2009 06:17:36 -0700 (PDT) In-Reply-To: <20090714024358.8095.qmail@us1.tomahawkonline.net> References: <20090714024358.8095.qmail@us1.tomahawkonline.net> Date: Tue, 14 Jul 2009 09:17:35 -0400 X-Google-Sender-Auth: 9a6309673e235f3c Message-ID: From: Victor Starenky To: Sagara Wijetunga Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch") X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 13:17:38 -0000 Actually I am running this without GUI (X is a luxury on this machine) .But if I restore it from the live CD I understand that all ports I have will be messed up? So my only option would be to go and install/reinstall all of them from the scratch? Building anything that needs Ruby for example takes like 24 hours on this machine :( Can you think of any way I could try to fix just the damaged part (nss/nsswitch)? Is there any place I could search for the backed up libraries (I think portupgrade would back them up first?). Thanks guys, I really appreciate your help! Victor On Mon, Jul 13, 2009 at 10:43 PM, Sagara Wijetunga wrote: > Victor Starenky writes: > > Hi guys, > I was running FreeBSD server at home for a few years on an old box for > mail, > some web and ftp etc. I've been through a number of upgrades even though > it's not easy with the box as old as this one (PII 350). Right now I'm at > 7.0 Release. > Now last weekend something's screwed up there pretty badly and machine is > pretty much unusable. > The sympthom is that pretty much any command results in the following > error: > /libexec/ld-elf.so.1: /lib/libc.so.7: Undefined symbol "_nsdispatch" > Specifically this is thrown when trying to login (after entering login > name) > on the console, ssh, ftp. > This is also thrown for "fetch"or for "ls -l" (plain ls works). > So I'm lucky to have one root session on the console as I can't login at > any > other... > Most recent thing that might have something to do with it would be an > (unsuccessful) attempt to portupgrade cups-base. This failed with the error > > message of wrong cups client. Now this is not new and I have a number of > ports that wouldn't upgrade - cups-base, apache for example. But before > portupgrade would fail without affecting the system. Same cups-base failed > before without any side effects. > As I said this might have nothing to do with the errors I'm getting, just > most recent my actions. > So currently server is not usable - it won't even accept mail (Currier > server) with the same error message. > I tried portupgrade bash but portupgrade itslef also fails with the same > message. I do have one mean of getting new files there through mounted smb > directory. I've tried putting all new bash files into > /usr/ports/distfiles/bash but portupgrade still fails (just a bit further > now). > I ran pkg_libchk which shows a bunch of missing libraries, mostly for > compat4x-i386-5.3_9 but for example courier also misses one: > courier-0.54.0: /usr/local/libexec/filters/perlfilter misses libperl.so > At this point I think I'm lost. I'd really rather avoid complete reinstall > of the server if possible. > I would greatly appreciate any help troubleshooting the libraries. Still > hope there is something that can be done other than reinstall. > Thanks in advance! > Victor > > Hi Victor > > What you could do is put it back what is missing/damaged using an live > FreeBSD CD and get the base system to work again without any GUI. > > Regards > Sagara > >