Bug 31136 - LoongArch glibc does not provide libutil shared object, against LSB 5.0
Summary: LoongArch glibc does not provide libutil shared object, against LSB 5.0
Status: UNCONFIRMED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.40
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-11 09:17 UTC by Icenowy Zheng
Modified: 2023-12-25 16:46 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Icenowy Zheng 2023-12-11 09:17:49 UTC
The Linux Standard Base Core Specification, Generic Part 5.0 (adapted as ISO/IEC 23360-1-2:2021) defines a libutil.so.1 shared object with 6 required functions, see [1].

However, as LoongArch is a new architecture introduced to glibc after the merging of auxiliary libraries to libc.so.6, it does not provide a libutil.so.1 at all, only libutil.a ; this breaks programs that tries to dlopen libutil.so.1 to access these 6 functions according to LSB.

[1] https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/libutil.html
Comment 1 Florian Weimer 2023-12-11 11:19:33 UTC
ISO/IEC 23360-1-2:2021 is architecture-specific, so you cannot achieve compliance except with one of the described architectures.

I do not have access to the 2021 version, but unless they did substantial updates (that are not reflected on the LSB web site), it mostly applies to obsolete architectures no longer in use, and obsolete software versions.
Comment 2 Icenowy Zheng 2023-12-12 14:30:20 UTC
ISO/IEC 23360-1-2:2021 is not architecture specific, it corresponds to [1] , which is a "Generic" part instead of a architecture-specific part; and the define of libutil.so.1 here is thus architecture-neutral, and at least could get implemented on new architectures.

[1] https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/book1.html
Comment 3 Andreas Schwab 2023-12-12 14:48:29 UTC
If it's only about dlopen/dlsym, then a dummy link libutil.so.1 -> libc.so.6 should solve that.