The KIO KPAC DHCP helper uses setgroups(2). But this is apparently not specified in POSIX due to being a "privileged call", so it is only available as an extension, typically needing _BSD_SOURCE to be explicitly defined from what I can gather.
glibc will gladly provide setgroups() as a GNU extension without requiring _BSD_SOURCE, but musl libc requires one of _{BSD_GNU}_SOURCE and doesn't pre-define either.
Defining _BSD_SOURCE is easy enough but it seems that glibc now complains about that, calling it deprecated, so I also threw in a _DEFAULT_SOURCE define, which appears to be the new hotness. But maybe it would be easier to find a way to avoid setgroups()?