Re: killed libc.so.7 somehow - help./ISO images of CURRENT

看板FB_current作者時間14年前 (2012/02/17 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串10/10 (看更多)
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 _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1FFKHVND (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 10 之 10 篇):
文章代碼(AID): #1FFKHVND (FB_current)