Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Dec 2018 14:12:15 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: stop in make installworld: ld-elf.so.1: symbol lstat1@FBSD_1.5 not found
Message-ID:  <87A4E7BB-97E0-4823-B910-4E3706EA088D@FreeBSD.org>
In-Reply-To: <mjdhqj.pkloey.2tncs5-qmf@ms-10.1blu.de>
References:  <20181231112755.GA2358@e6330-r314251> <mjdhqj.pkloey.2tncs5-qmf@ms-10.1blu.de>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On 31 Dec 2018, at 13:08, Matthias Apitz <guru@unixarea.de> 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.

-Dimitry


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXCoVrwAKCRCwXqMKLiCW
o4LBAKDp1eLU34ntDF9hwhR+kl76xpiHiQCeJilgVtq/PFc2r4+oL2fRlwwQD80=
=eEhy
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87A4E7BB-97E0-4823-B910-4E3706EA088D>