From owner-freebsd-current@freebsd.org Mon Dec 31 13:12:22 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 50DC21433BFA for ; Mon, 31 Dec 2018 13:12:22 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D7B4D6B1E1 for ; Mon, 31 Dec 2018 13:12:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::142a:a2b0:ddaf:2740] (unknown [IPv6:2001:470:7a58:0:142a:a2b0:ddaf:2740]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B74F498E3; Mon, 31 Dec 2018 14:12:19 +0100 (CET) From: Dimitry Andric Message-Id: <87A4E7BB-97E0-4823-B910-4E3706EA088D@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_96455FFE-B2A7-45B8-BBEE-380F3F3A7F65"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: stop in make installworld: ld-elf.so.1: symbol lstat1@FBSD_1.5 not found Date: Mon, 31 Dec 2018 14:12:15 +0100 In-Reply-To: Cc: freebsd-current@freebsd.org To: Matthias Apitz References: <20181231112755.GA2358@e6330-r314251> X-Mailer: Apple Mail (2.3445.9.1) 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 13:12:22 -0000 --Apple-Mail=_96455FFE-B2A7-45B8-BBEE-380F3F3A7F65 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 31 Dec 2018, at 13:08, Matthias Apitz wrote: >=20 > On Mon, 31 Dec 2018 12:27:55 +0100, Matthias Apitz wrote: >>=20 >> Hello, >>=20 >> I'm updating the usual way a system from r314251 to tje actual = CURRENT r342378. >> The 'make installworld' failes in single user mode with: >>=20 >> ld-elf.so.1: /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin/rm: >> Undefined symbol lstat1@FBSD_1.5 >>=20 >> What can I do? >=20 > As I had no other idead, I run the 'make installworld' again, now with = success. >=20 > 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. -Dimitry --Apple-Mail=_96455FFE-B2A7-45B8-BBEE-380F3F3A7F65 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXCoVrwAKCRCwXqMKLiCW o4LBAKDp1eLU34ntDF9hwhR+kl76xpiHiQCeJilgVtq/PFc2r4+oL2fRlwwQD80= =eEhy -----END PGP SIGNATURE----- --Apple-Mail=_96455FFE-B2A7-45B8-BBEE-380F3F3A7F65--