Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPATH is not inhereted by dependencies #1196

Open
48cf opened this issue Dec 5, 2024 · 0 comments
Open

RPATH is not inhereted by dependencies #1196

48cf opened this issue Dec 5, 2024 · 0 comments
Labels
bug This issue reports a bug

Comments

@48cf
Copy link
Contributor

48cf commented Dec 5, 2024

systemd shared libraries and binaries are installed under /usr/lib/systemd, while binaries do have RPATH set the shared libraries don't and the dynamic linker fails to find other systemd libraries when they depend on each other

[    1.579582] Run /usr/sbin/init as init process
Could not satisfy dependency libsystemd-shared-256.so
czapek@raptor-wsl:~/src/linux-mlibc$ readelf -d build/system-root/usr/lib/systemd/systemd

Dynamic section at offset 0x17488 contains 31 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libsystemd-core-256.so]
 0x0000000000000001 (NEEDED)             Shared library: [libsystemd-shared-256.so]
 0x0000000000000001 (NEEDED)             Shared library: [libssp.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so]
 0x000000000000000f (RPATH)              Library rpath: [/usr/lib/systemd]
czapek@raptor-wsl:~/src/linux-mlibc$ readelf -d build/system-root/usr/lib/systemd/libsystemd-core-256.so

Dynamic section at offset 0x20d158 contains 33 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libsystemd-shared-256.so]
 0x0000000000000001 (NEEDED)             Shared library: [libmount.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libssp.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so]
 0x000000000000000e (SONAME)             Library soname: [libsystemd-core-256.so]
@Dennisbonke Dennisbonke added the bug This issue reports a bug label Dec 5, 2024
@64 64 changed the title Invalid RPATH handling for dependencies that are found through RPATH RPATH is not inhereted by dependencies Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue reports a bug
Projects
None yet
Development

No branches or pull requests

2 participants