Created attachment 572812 [details] build.log [...] configure: error: libsystemd headers found but library is missing !!! Please attach the following file when seeking support: !!! /var/tmp/portage/sys-apps/smartmontools-7.0-r1/work/smartmontools-7.0/config.log * ERROR: sys-apps/smartmontools-7.0-r1::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 124: Called src_configure * environment, line 2687: Called econf '--with-drivedbdir=/var/db/smartmontools' '--with-initscriptdir=/etc/init.d' '--without-libcap-ng' '--without-selinux' '--with-libsystemd' '--without-gnupg' '--without-update-smart-drivedb' '--with-systemdsystemunitdir=/lib/systemd/system' * phase-helpers.sh, line 718: Called __helpers_die 'econf failed' # emerge -pqv systemd [ebuild R ] sys-apps/systemd-239-r4 USE="acl elfutils gcrypt kmod lzma pam pcre policykit resolvconf seccomp split-usr ssl sysv-utils (-apparmor) -audit -build -cryptsetup -curl (-gnuefi) -http -idn -importd -libidn2 -lz4 -nat -qrcode (-selinux) -test -vanilla -xkb"
Created attachment 572814 [details] config.log
Created attachment 572816 [details] emerge --info
@systemd team: Can you help us here please?
configure:6400: checking for sd_notify in -lsystemd configure:6425: powerpc-unknown-linux-gnu-g++ -o conftest -O2 -mcpu=7450 -mtune=7450 -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -static conftest.cpp -lsystemd >&5 /usr/lib/gcc/powerpc-unknown-linux-gnu/8.2.0/../../../../powerpc-unknown-linux-gnu/bin/ld: cannot find -lsystemd collect2: error: ld returned 1 exit status configure:6425: $? = 1 Do you have a reasonably recent systemd version installed?
(In reply to Michał Górny from comment #4) > Do you have a reasonably recent systemd version installed? Yes, it's systemd-239-r4. # emerge -pqv systemd [ebuild R ] sys-apps/systemd-239-r4 USE="acl elfutils gcrypt kmod lz4 lzma pam pcre policykit resolvconf seccomp split-usr ssl sysv-utils (-apparmor) -audit -build -cryptsetup -curl (-gnuefi) -http -idn -importd -libidn2 -nat -qrcode (-selinux) -test -vanilla -xkb"
qlist systemd | grep libsystemd
# qlist systemd | grep libsystemd /usr/lib/pkgconfig/libsystemd.pc /lib/systemd/libsystemd-shared-239.so /lib/libsystemd.so.0.23.0 /lib/libsystemd.so /lib/libsystemd.so.0 Got this during package testing: # cat smartmontools-682592.report USE tests started on So 14. Apr 19:14:40 CEST 2019 FEATURES=' test' USE='' succeeded for =sys-apps/smartmontools-7.0-r1 USE='-caps -daemon -static -systemd -update_drivedb' succeeded for =sys-apps/smartmontools-7.0-r1 USE='-caps daemon -static -systemd -update_drivedb' succeeded for =sys-apps/smartmontools-7.0-r1 USE='caps daemon -static -systemd -update_drivedb' succeeded for =sys-apps/smartmontools-7.0-r1 USE='-caps -daemon static -systemd -update_drivedb' succeeded for =sys-apps/smartmontools-7.0-r1 USE='caps daemon static -systemd -update_drivedb' succeeded for =sys-apps/smartmontools-7.0-r1 USE='caps daemon -static systemd -update_drivedb' succeeded for =sys-apps/smartmontools-7.0-r1 USE='-caps -daemon static systemd -update_drivedb' failed for =sys-apps/smartmontools-7.0-r1 USE='-caps daemon static systemd -update_drivedb' failed for =sys-apps/smartmontools-7.0-r1 USE='-caps daemon -static -systemd update_drivedb' succeeded for =sys-apps/smartmontools-7.0-r1 USE='-caps daemon static -systemd update_drivedb' succeeded for =sys-apps/smartmontools-7.0-r1 USE='-caps daemon -static systemd update_drivedb' succeeded for =sys-apps/smartmontools-7.0-r1 USE='caps daemon -static systemd update_drivedb' succeeded for =sys-apps/smartmontools-7.0-r1 Looking closer now I see only the builds with USE='static systemd' are failing.
That could make sense. systemd does not install static libraries.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbb4c3e23a636402c56c0158d715328d64f1d172 commit fbb4c3e23a636402c56c0158d715328d64f1d172 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2021-01-02 20:20:10 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2021-01-02 20:24:39 +0000 sys-apps/smartmontools: Bump to version 7.2 - Renamed "update_drivedb" USE flag to "update-drivedb" (#695108) - Enabled "update-drivedb" USE flag by default (#684160) - USE="static" fails with USE="systemd" - exclude each other (#683328) Bug: https://bugs.gentoo.org/695108 Closes: https://bugs.gentoo.org/684160 Closes: https://bugs.gentoo.org/683328 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> sys-apps/smartmontools/Manifest | 1 + sys-apps/smartmontools/metadata.xml | 1 + sys-apps/smartmontools/smartmontools-7.2.ebuild | 151 ++++++++++++++++++++++++ 3 files changed, 153 insertions(+)