Created attachment 737185 [details] build.log hppa2.0-unknown-linux-gnu-gcc -O2 -pipe -march=2.0 -fPIC -Wl,-O1 -Wl,--as-needed -L./libdm -L./lib -L./libdaemon/client -L./daemons/dmeventd -L../libdm -L../lib -L../libdaemon/client -L../daemons/dmeventd -L../../libdm -L../../lib -L../../libdaemon/client -L../../daemons/dmeventd -Wl,--no-export-dynamic -static -L. -L../../libdm/ioctl dmeventd.o \ -o dmeventd.static -ldl -ldevmapper-event -ldevmapper -lpthread -ludev -lrt -pthread -lblkid -lm /usr/lib/gcc/hppa2.0-unknown-linux-gnu/9.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: dmeventd.o: in function `_do_process_request': (.text+0x24f0): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/hppa2.0-unknown-linux-gnu/9.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: cannot find -ludev I think something like this is missing: diff --git a/sys-fs/lvm2/lvm2-2.02.188-r1.ebuild b/sys-fs/lvm2/lvm2-2.02.188-r1.ebuild index b657f6fca27..e3d7d2126a6 100644 --- a/sys-fs/lvm2/lvm2-2.02.188-r1.ebuild +++ b/sys-fs/lvm2/lvm2-2.02.188-r1.ebuild @@ -41,6 +41,7 @@ DEPEND="${DEPEND_COMMON} static? ( selinux? ( sys-libs/libselinux[static-libs] ) >=sys-apps/util-linux-2.16[static-libs] + >=virtual/libudev-208:=[static-libs] )" BDEPEND=" sys-devel/autoconf-archive For the problem with the "version" symbol (see https://github.com/systemd/systemd/issues/20600) I have fixed it like this: sed 's/ version(/ sd_version(/' -i $(grep -rl ' version(' src/)
The dependency should be conditional on the udev USE flag.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dbacd04e9ca6e8288089f5d566eb29e1c672799 commit 6dbacd04e9ca6e8288089f5d566eb29e1c672799 Author: Rolf Eike Beer <eike@sf-mail.de> AuthorDate: 2021-09-03 17:25:22 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2021-09-03 20:50:40 +0000 sys-fs/udev: depend on static libudev when also building static binaries Bug: https://bugs.gentoo.org/811438 Closes: https://github.com/gentoo/gentoo/pull/22206 Signed-off-by: Rolf Eike Beer <eike@sf-mail.de> Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-fs/lvm2/lvm2-2.02.187-r3.ebuild | 1 + sys-fs/lvm2/lvm2-2.02.188-r1.ebuild | 1 + sys-fs/lvm2/lvm2-2.03.13-r1.ebuild | 1 + 3 files changed, 3 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bee913293f7dc9492a247e10fdb8374e7e6cdd95 commit bee913293f7dc9492a247e10fdb8374e7e6cdd95 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-09-03 21:05:15 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-09-03 21:05:37 +0000 sys-fs/lvm2: fix syntax error Bug: https://bugs.gentoo.org/811438 Fixes: 6dbacd04e9ca6e8288089f5d566eb29e1c672799 Signed-off-by: Sam James <sam@gentoo.org> sys-fs/lvm2/lvm2-2.02.188-r1.ebuild | 2 +- sys-fs/lvm2/lvm2-2.03.13-r1.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)