Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 683328 - sys-apps/smartmontools-7.0-r1[static]: configure: error: libsystemd headers found but library is missing
Summary: sys-apps/smartmontools-7.0-r1[static]: configure: error: libsystemd headers f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-14 17:50 UTC by ernsteiswuerfel
Modified: 2021-01-02 20:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (smartmontools-7.0-r1:20190414-174348.log,6.99 KB, text/plain)
2019-04-14 17:50 UTC, ernsteiswuerfel
Details
config.log (config.log,44.25 KB, text/plain)
2019-04-14 17:51 UTC, ernsteiswuerfel
Details
emerge --info (file_683328.txt,5.94 KB, text/plain)
2019-04-14 17:51 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2019-04-14 17:50:50 UTC
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"
Comment 1 ernsteiswuerfel archtester 2019-04-14 17:51:20 UTC
Created attachment 572814 [details]
config.log
Comment 2 ernsteiswuerfel archtester 2019-04-14 17:51:43 UTC
Created attachment 572816 [details]
emerge --info
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-04-14 19:08:03 UTC
@systemd team: Can you help us here please?
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-04-16 06:44:12 UTC
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?
Comment 5 ernsteiswuerfel archtester 2019-04-16 07:03:35 UTC
(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"
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-04-16 07:05:59 UTC
qlist systemd | grep libsystemd
Comment 7 ernsteiswuerfel archtester 2019-04-16 09:22:59 UTC
# 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.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-04-16 10:09:35 UTC
That could make sense.  systemd does not install static libraries.
Comment 9 Larry the Git Cow gentoo-dev 2021-01-02 20:24:44 UTC
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(+)