[PATCH] polkit-0.115 fails to build on POSIX platforms (like Linux/musl) due to requiring netgroup support
Submitted by Natanael Copa
Assigned to David Zeuthen @david
Description
Fails to build with the error:
CCLD polkitd
../../src/polkitbackend/.libs/libpolkit-backend-1.so: undefined reference to setnetgrent' ../../src/polkitbackend/.libs/libpolkit-backend-1.so: undefined reference to
innetgr'
../../src/polkitbackend/.libs/libpolkit-backend-1.so: undefined reference to getnetgrent' ../../src/polkitbackend/.libs/libpolkit-backend-1.so: undefined reference to
endnetgrent'
collect2: ld returned 1 exit status
make[1]: *** [polkitd] Error 1
make[1]: Leaving directory `/home/ncopa/aports/main/polkit/src/polkit-0.105/src/polkitd'
The problem is that netgroup (introduced with 674357c2) is not defined in POSIX and therefore not implemented in uclibc. The netgroup support should be a compiletime option.
Please note that it is during linking that the error happens so the configure script could check for getnetgrent linking.
related bug: #43610