Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 718560 - =net-misc/networkmanager-1.18.4-r3 fails to build without systemd/sd-daemon.h
Summary: =net-misc/networkmanager-1.18.4-r3 fails to build without systemd/sd-daemon.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-20 07:02 UTC by Lehi Toskin
Modified: 2020-04-20 15:14 UTC (History)
0 users

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


Attachments
Build log (networkmanager-1.18.4-r3-build.log.bz2,36.65 KB, application/x-bzip)
2020-04-20 07:04 UTC, Lehi Toskin
Details
Build info (networkmanager-1.18.4-r3-info.txt,6.68 KB, text/plain)
2020-04-20 07:05 UTC, Lehi Toskin
Details
Emerge -pqv results (networkmanager-1.18.4-r3-pqv.txt,310 bytes, text/plain)
2020-04-20 07:05 UTC, Lehi Toskin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lehi Toskin 2020-04-20 07:02:52 UTC
Building =net-misc/networkmanager-1.18.4-r3 when systemd is not installed fails with the error message:
systemd/sd-daemon.h: No such file or directory
   30 | #include <systemd/sd-daemon.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

I specifically set the USE flag to have "-systemd", as well.

Reproducible: Always

Steps to Reproduce:
1. emerge =net-misc/networkmanager-1.18.4-r3
2. do not have systemd installed
3. error in compilation
Actual Results:  
Package fails to build


I only have openrc installed
Comment 1 Lehi Toskin 2020-04-20 07:04:39 UTC
Created attachment 633782 [details]
Build log
Comment 2 Lehi Toskin 2020-04-20 07:05:10 UTC
Created attachment 633784 [details]
Build info
Comment 3 Lehi Toskin 2020-04-20 07:05:46 UTC
Created attachment 633786 [details]
Emerge -pqv results
Comment 4 Mart Raudsepp gentoo-dev 2020-04-20 07:11:29 UTC
checking for SYSTEMD_200... no
checking for LIBSYSTEMD... yes
checking for SYSTEMD_LOGIN... yes

The problem is that LIBSYSTEMD is enabled, while you apparently don't have the header somehow.

This means you have /usr/lib64/pkgconfig/libsystemd.pc or similar from somewhere wrongly. Please look into that.
Comment 5 Mart Raudsepp gentoo-dev 2020-04-20 07:13:14 UTC
Maybe elogind provides it, but not a systemd/sd-daemon.h?

This will tell the owner of the file, if it exists:
qfile /usr/lib64/pkgconfig/libsystemd.pc

qfile command is provided by the app-portage/portage-utils package.
Alternatively this can tell it too:

equery b/usr/lib64/pkgconfig/libsystemd.pc

equery is provided by the gentoolkit package.
Comment 6 Mart Raudsepp gentoo-dev 2020-04-20 07:13:49 UTC
Sorry, missed a space in the latter command:


equery b /usr/lib64/pkgconfig/libsystemd.pc
Comment 7 Lehi Toskin 2020-04-20 15:14:34 UTC
(In reply to Mart Raudsepp from comment #4)
...
> 
> This means you have /usr/lib64/pkgconfig/libsystemd.pc or similar from
> somewhere wrongly. Please look into that.

This was the issue exactly. I was playing around with systemd components a few weeks ago and installed it into /usr/local, but somehow missed libsystemd when I removed everything. Deleting libsystemd allowed me to emerge networkmanager again. Thank you for the assistance.