Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 822054 - sys-fs/lvm2-2.03.14 - lvmlockd-core.c: fatal error: systemd/sd-daemon.h: No such file or directory
Summary: sys-fs/lvm2-2.03.14 - lvmlockd-core.c: fatal error: systemd/sd-daemon.h: No s...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-06 08:18 UTC by Toralf Förster
Modified: 2021-11-10 20:11 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.55 KB, text/plain)
2021-11-06 08:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,397.46 KB, text/plain)
2021-11-06 08:18 UTC, Toralf Förster
Details
environment (environment,120.34 KB, text/plain)
2021-11-06 08:18 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,44.68 KB, application/x-bzip)
2021-11-06 08:18 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,15.93 KB, application/x-bzip)
2021-11-06 08:18 UTC, Toralf Förster
Details
sys-fs:lvm2-2.03.14:20211105-231657.log (sys-fs:lvm2-2.03.14:20211105-231657.log,202.19 KB, text/plain)
2021-11-06 08:18 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,43.40 KB, application/x-bzip)
2021-11-06 08:18 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-11-06 08:18:50 UTC
  fi \
) > .exported_symbols_generated
lvmlockd-core.c:35:10: fatal error: systemd/sd-daemon.h: No such file or directory
   35 | #include <systemd/sd-daemon.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [../../make.tmpl:464: lvmlockd-core.o] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j4-20211030-090004

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
/usr/lib/llvm/13
13.0.0
Python 3.9.7
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.56.1
  [2]   rust-1.56.1 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.4
  [2]   php8.0 *

  HEAD of ::gentoo
commit 8eb79a71239cbf46c4f9b7619be05db0b93739cc
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Nov 5 23:06:34 2021 +0000

    2021-11-05 23:06:33 UTC

emerge -qpvO sys-fs/lvm2
[ebuild     U ] sys-fs/lvm2-2.03.14 [2.02.188-r2] USE="lvm2create_initrd readline sanlock udev -device-mapper-only (-selinux) -static -static-libs -systemd -thin"
Comment 1 Toralf Förster gentoo-dev 2021-11-06 08:18:51 UTC
Created attachment 748944 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-11-06 08:18:53 UTC
Created attachment 748947 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-11-06 08:18:54 UTC
Created attachment 748950 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-11-06 08:18:55 UTC
Created attachment 748953 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-11-06 08:18:56 UTC
Created attachment 748956 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-11-06 08:18:58 UTC
Created attachment 748959 [details]
sys-fs:lvm2-2.03.14:20211105-231657.log
Comment 7 Toralf Förster gentoo-dev 2021-11-06 08:18:59 UTC
Created attachment 748962 [details]
temp.tar.bz2
Comment 8 Remus-Gabriel Chelu 2021-11-10 18:47:35 UTC
Hello, I had the same problem, which is due to the use of flags: sanlock (-systemd); and I have solved it by doing a new ebuild, which contains the following lines, inside the src_prepare () section, before the 'eautoreconf' line:
	if ! use systemd ; then
        if use sanlock ; then
            sed -i -e "s:systemd/sd-daemon.h:elogind/systemd/sd-daemon.h:" daemons/lvmlockd/lvmlockd-core.c || die
            sed -i -e "s:libsystemd:libelogind:" daemons/lvmlockd/Makefile.in || die
		fi
	fi

Good luck, I hope I have been of help to someone...

PS:
This happens because you don't like 'systemd' and refuse to have it installed on your machine...  :)
Comment 9 Mike Gilbert gentoo-dev 2021-11-10 20:11:17 UTC
In daemons/lvmlockd/Makefile.in, USE_SD_NOTIFY is hard-coded to yes. It should probably be populated by configure instead.