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
Created attachment 633782 [details] Build log
Created attachment 633784 [details] Build info
Created attachment 633786 [details] Emerge -pqv results
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.
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.
Sorry, missed a space in the latter command: equery b /usr/lib64/pkgconfig/libsystemd.pc
(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.