From owner-freebsd-current@freebsd.org Mon Dec 31 14:20:12 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2DC55143613B for ; Mon, 31 Dec 2018 14:20:12 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C1B0A6E1F6 for ; Mon, 31 Dec 2018 14:20:11 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from x59cc8775.dyn.telefonica.de ([89.204.135.117] helo=[127.0.0.1]) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1gdyQK-0007Ou-BQ for freebsd-current@freebsd.org; Mon, 31 Dec 2018 15:20:08 +0100 Date: Mon, 31 Dec 2018 14:20:06 +0000 From: Matthias Apitz To: freebsd-current@freebsd.org Subject: Re: stop in make installworld: ld-elf.so.1: symbol lstat1@FBSD_1.5 not found Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable In-Reply-To: <87A4E7BB-97E0-4823-B910-4E3706EA088D@FreeBSD.org> References: <20181231112755.GA2358@e6330-r314251> <87A4E7BB-97E0-4823-B910-4E3706EA088D@FreeBSD.org> Message-ID: MIME-Version: 1.0 X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.135.117 X-Rspamd-Queue-Id: C1B0A6E1F6 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.994,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Mon, 31 Dec 2018 14:20:12 -0000 On Mon, 31 Dec 2018 13:12:15 +0000, Dimitry Andric wrote: > On 31 Dec 2018, at 13:08, Matthias Apitz wrote: >> >> On Mon, 31 Dec 2018 12:27:55 +0100, Matthias Apitz wrote: >>> >>> Hello, >>> >>> I'm updating the usual way a system from r314251 to tje >>> actual CURRENT r342378. >>> The 'make installworld' failes in single user mode with: >>> >>> ld-elf.so.1: /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin/rm: >>> Undefined symbol lstat1@FBSD_1.5 >>> >>> What can I do? >> >> As I had no other idead, I run the 'make installworld' again, >> now with success. >> >> What does this mean? > > I think what may have happened was the following. > > The "legacy" rm which failed was likely a symlink to /bin/rm, like so: > > $ ls -l /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin/rm > lrwxr-xr-x 1 dim dim 7 2018-12-29 16:22:12 > /usr/obj/usr.old/src/amd64.amd64/tmp/legacy/usr/bin/rm@ -> > /bin/rm > > For some reason, /bin/rm may have been overwritten before your > /lib/libc.so.7, which caused the "Undefined symbol" error from > ld-elf.so.1. > > Alternatively, installing /lib/libc.so.7 may have failed without the > Makefile noticing it, after which the first /bin/rm would show that same= > error. > > When you re-ran "make installworld", the installation of /lib/libc.so.7 > likely succeeded, and after that the symlinked commands in > /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin which used new symbols > started to work. > I still have two identical updates scheduled, based on extactly the same= src and precompiled obj tree. I will investigate the next and file a PR. matthias -- Sent using Dekko from my Ubuntu device http://www.unixarea.de/ +49 176 38902045