Bug 12576 - 2020.02-RC1: error while loading shared libraries: libsystemd-shared-244.so
Summary: 2020.02-RC1: error while loading shared libraries: libsystemd-shared-244.so
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-24 02:09 UTC by Melanie
Modified: 2020-03-01 18:19 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Melanie 2020-02-24 02:09:54 UTC
My post-build script contains the following line:

systemd-machine-id-setup --root=$1

My post-build script runs successful with previous buildroot versions
but since 2020.02-RC1 the command fails with the following error message:

>>>   Executing post-build script
systemd-machine-id-setup: error while loading shared libraries: libsystemd-shared-244.so: cannot open shared object file: No such file or directory
make[1]: *** [Makefile:760: target-finalize] Error 127
make: *** [Makefile:84: _all] Error 2
Comment 1 Thomas Petazzoni 2020-02-28 15:54:10 UTC
Hello Melanie,

Thanks for your bug report. Could you try the below patch, and see if it fixes the issue for you:

diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index 1150fd390e..20637f3a8a 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -570,6 +570,7 @@ HOST_SYSTEMD_DEPENDENCIES = \
 # * thus re-tweak rpath after the installation for all binaries that need it
 HOST_SYSTEMD_HOST_TOOLS = \
        systemd-analyze \
+       systemd-machine-id-setup \
        systemd-mount \
        systemctl \
        udevadm
Comment 2 Melanie 2020-02-29 22:47:15 UTC
Hello Thomas.

I've tested your patch and can confirm that it fixes the issue.
Would be great if this could be implemented into the final 2020.02 release.
Comment 3 Yann E. MORIN 2020-03-01 18:19:53 UTC
Melanie, All,

Thanks for the report, fixed with:
https://git.buildroot.org/buildroot/commit/?id=dabb5181ad2873e87935b778d1f6772ec361fa16

Thanks Thomas for the hint, too. ;-)

Regards,
Yann E. MORIN.