I encountered this error /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: ../libsubid/.libs/libsubid.so: undefined reference to `freezero' while I had libbsd-0.10.0. Manually emerging libbsd-0.11.8 first fixed the problem, but shadow should automatically rebuild libbsd in this case I think. And I don't know exactly which version of libbsd introduces freezero. Reproducible: Always
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af6ed27691d4161c67f60740f74188523e300dc4 commit af6ed27691d4161c67f60740f74188523e300dc4 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2024-05-10 14:43:45 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2024-05-10 14:43:45 +0000 sys-apps/shadow: do not use libbsd Only 2 functions are used: readpassphrase and freezero. freezero is a trivial wrapper around explicit_bzero and free. readpassphrase has been copied locally from OpenBSD. No need to pull in libbsd and its deps for this. Closes: https://bugs.gentoo.org/924684 Closes: https://bugs.gentoo.org/931668 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-apps/shadow/{shadow-4.14.6.ebuild => shadow-4.14.6-r1.ebuild} | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)