Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 762017

Summary: sys-fs/lvm2-2.02.187-r2: Fails to build with static use flag due to undefined reference
Product: Gentoo Linux Reporter: Stefan Huber <shuber>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: agk, robbat2
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build log

Description Stefan Huber 2020-12-27 23:00:19 UTC
The package sys-fs/lvm2-2.02.187-r2 fails to build with the use flag 'static' enabled due to a couple of undefined reference errors like these:

/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: (.text.capability_quintet_enforce+
0x4af): undefined reference to `cap_free'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9
.3.0/../../../../lib64/libsystemd.a(src_libsystemd_sd-daemon_sd-daemon.c.o): in function `sd_is_mq':
(.text.sd_is_mq+0x3a): undefined reference to `mq_getattr'

I am using gcc-9.3.0-r2.

Reproducible: Always
Comment 1 Stefan Huber 2020-12-27 23:00:40 UTC
Created attachment 679910 [details]
emerge --info
Comment 2 Stefan Huber 2020-12-27 23:00:55 UTC
Created attachment 679913 [details]
build log
Comment 3 Stefan Huber 2021-04-13 00:04:10 UTC
There is some progress upstream: