Re: LFS 12.3 -- Installing glibc-2.41

"Rainer Fiebig" ([email protected] via lfs-support Mailing List) <[email protected]> Thu, 26 Jun 2025 22:15:15 +0200
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>
Am 26.06.25 um 21:16 schrieb Nick Henry ([email protected] via
lfs-support Mailing List):
> Of course it is... figured I was missing something obvious.
In such cases "readlink" can be helpful:

/lib64> readlink ld-* && readlink -f ld-*
../lib/ld-linux-x86-64.so.2
../lib/ld-linux-x86-64.so.2
/usr/lib/ld-linux-x86-64.so.2
/usr/lib/ld-linux-x86-64.so.2

And please do not top-post.  Thanks.

Rainer

> 
> On Thu, Jun 26, 2025 at 6:53 PM Pierre Labastie <
> [email protected]> wrote:
> 
>> On Thu, 2025-06-26 at 17:43 +0000, Nick Henry wrote:
>>> Hello all,
>>>
>>> I am currently building version 12.3 of LFS and ran into some
>>> confusion. In chapter 5.5 for installing glibc the following
>>> instruction is given:
>>>
>>> case $(uname -m) in
>>>     i?86)   ln -sfv ld-linux.so.2 $LFS/lib/ld-lsb.so.3
>>>     ;;
>>>     x86_64) ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64
>>>             ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64/ld-lsb-
>>> x86-64.so.3
>>>     ;;
>>> esac
>>>
>>> However after building and installing glibc 'ld-linux-x86-64.so.2' is
>>> installed into '$LFS/usr/lib' not '$LFS/lib'. So the symlink created
>>> by the above command is broken. At no point is 'ld-linux-x86-64.so.2'
>>> installed or linked into '/lib'. I can easily fix this issue a few
>>> different ways, however I am uncertain whether it is a mistake on my
>>> part or the book. I am assuming I am mistaken and therefore asking
>>> the question on the mailing list. How does 'ld-linux-x86-64.so.2' get
>>> into '/lib' for this symlink to work? Is the symlink supposed to
>>> dangle?
>>
>> There is no error in the commands: /lib is linked to /usr/lib in
>> chapter 4...
>>
>> Pierre
>> --
>> http://lists.linuxfromscratch.org/sympa/info/lfs-support
>> Unsubscribe: See the above information page
> 
>

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page