From owner-freebsd-questions@FreeBSD.ORG Fri Apr 7 17:39:18 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 6B31F16A401 for ; Fri, 7 Apr 2006 17:39:18 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC57343D46 for ; Fri, 7 Apr 2006 17:39:17 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout3.cac.washington.edu (8.13.6+UW06.03/8.13.5+UW06.03) with ESMTP id k37HdHn3006336 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 7 Apr 2006 10:39:17 -0700 X-Auth-Received: from [128.208.5.99] (nilakantha.cs.washington.edu [128.208.5.99]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.6+UW06.03/8.13.5+UW06.03) with ESMTP id k37HdG93018655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 7 Apr 2006 10:39:16 -0700 Message-ID: <4436A3C4.5020505@u.washington.edu> Date: Fri, 07 Apr 2006 10:39:16 -0700 From: Garrett Cooper User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <820FAFD6-ED04-41BE-A0C6-209980A7B376@u.washington.edu> <20060407080957.351b13b0.wmoran@collaborativefusion.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __STOCK_SUBJ_9 0, __USER_AGENT 0' Subject: Re: Login broken and rc.conf variables suddenly invalid after kernel/world upgrade (?!?!) 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: Fri, 07 Apr 2006 17:39:18 -0000 Garrett Cooper wrote: > > > On Fri, 7 Apr 2006, Bill Moran wrote: > >> On Thu, 6 Apr 2006 21:14:33 -0700 >> Garrett Cooper wrote: >> >>> So, I basically upgraded my source again and did installworld. Had >>> to run make quite a few times because it appeared that the makefile >>> for /usr/src was broken (or at least the targets were incorrect since >>> it kept on complaining about stuff not being compiled in buildworld). >>> So I ran mergemaster, and things appeared to be running smoothly, but >>> now it appears that my system is screwed up, due to bash. Granted, I >>> used bash as my login shell for both root and my local account, and >>> to solve this problem I tried recompiling the program from ports in >>> single user mode, but every single time I login it complains about >>> not being able to find libintl.so.6 (I believe), which is a part of >>> gettext. I eventually gave up on trying to reinstall and fix bash and >>> gettext, but when I try and login, the stupid machine still claims to >>> be missing the library, regardless of the fact that it's no longer my >>> login shell and I sed'ed both /etc/shells and /etc/passwd and /etc/ >>> master.passwd so that they no longer have bash in them. >>> I'm just basically stumped and I need a lot of help here, because >>> the machine's inaccessible (the rc 'daemon' complains all the >>> variables setup in rc.conf aren't valid--although they are), and I >>> would greatly appreciate any help anyone can give me. >> >> >> It doesn't sound like you correctly followed the upgrade procedure, >> since >> there is no "make" in that procedure. > > > I did though (which is the confusing part). What I did when trying to > upgrade from 6.0 to 6.1-PR2: > > make buildworld; reboot; # booted into single user mode. mergemaster -p > make installworld; # failed here partway through claiming that > dependencies hadn't been compiled. > make buildworld; # still failed > #many makes later and make all's later > make installworld # success mergemaster > exit > #login attempt > /libexec/ld-elf.so.1: Shared object "libintl.so.6" not found, required > by "-bash" > #rebooted into single user mode. > #sed'ed /etc/passwd and /etc/master.passwd to change shell from /bin/csh > exit > #repeat from login attempt. > > I've chased down the library to gcc, and I did later clean and remake > libiconv, gettext, and bash, but still no dice (get the same error > message as before). > >> Additionally, you can't just change /etc/master.passwd without running >> cap_mkdb to have the changes take effect. > > > Did that just a while ago; thanks for the tip. Didn't change the > overall behavior though... :( > >> As a hint for future work: If you think a Makefile provided by the >> FreeBSD >> team is "broken", the wisest course of action would be to post here >> _before_ >> you commit to an upgrade that is unlikey to work. > > > I know that if I didn't follow through with the makes my system would > have been completely crippled since some libs had been recompiled and > installed, whereas others had not been because 6.0 features a > different version of gcc and libc than 6.1 does. > > If you could provide a command which corrects the spwd.db and pwd.db > files, I think that will allow me to permanently set my shell to > /bin/csh, which will allow me to login and start fixing my machine > from something other than single-user mode. > > TIA again, > -Garrett By the way, I also ran mergemaster as shown above. I forgot to originally include that. -Garrett