Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833753 - sys-auth/polkit-0.120_p20220127 fails to compile: ld: polkitbackendinteractiveauthority.c:(.text+0x4a08): undefined reference to getnetgrent
Summary: sys-auth/polkit-0.120_p20220127 fails to compile: ld: polkitbackendinteractiv...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2022-02-19 06:49 UTC by Agostino Sarubbo
Modified: 2022-03-05 08:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,241.53 KB, text/plain)
2022-02-19 06:49 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-02-19 06:49:20 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-auth/polkit-0.120_p20220127 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-02-19 06:49:22 UTC
Created attachment 765436 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-02-19 06:49:23 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: polkitbackendinteractiveauthority.c:(.text+0x4a08): undefined reference to `getnetgrent'
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: polkitbackendinteractiveauthority.c:(.text+0x4a98): undefined reference to `endnetgrent'
Error: no ID for constraint linkend: "PolkitAgentTextListener-struct".
Error: no ID for constraint linkend: "PolkitIdentity-struct".
Error: no ID for constraint linkend: "eggdbus-signal-org.freedesktop.PolicyKit1.Authority::Changed".
Error: no ID for constraint linkend: "pkaction.1".
Error: no ID for constraint linkend: "pkcheck.1".
Error: no ID for constraint linkend: "pkexec.1".
Error: no ID for constraint linkend: "pkttyagent.1".
Error: no ID for constraint linkend: "polkit.8".
Error: no ID for constraint linkend: "polkitd.8".
polkitbackendduktapeauthority.c:(.text+0x8fe): undefined reference to `innetgr'
polkitbackendinteractiveauthority.c:(.text+0x49bf): undefined reference to `setnetgrent'
Message: how to call pam_strerror: unknown
Comment 3 crabbed halo ablution 2022-02-19 22:56:39 UTC
Looks like the same problem uclibc had: https://bugs.gentoo.org/561672
See also the freedesktop bug linked from that report: https://bugs.freedesktop.org/show_bug.cgi?id=50145
Which was migrated to gitlab: https://gitlab.freedesktop.org/polkit/polkit/-/issues/14
Comment 4 Larry the Git Cow gentoo-dev 2022-02-20 00:43:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cca21561571e00e88f434ad94a9cde6851fab244

commit cca21561571e00e88f434ad94a9cde6851fab244
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-20 00:42:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-20 00:42:58 +0000

    sys-auth/polkit: add musl patch to 0.120_p20220127
    
    Pulled in from ::musl.
    
    Closes: https://bugs.gentoo.org/833753
    Bug: https://bugs.gentoo.org/561672
    Signed-off-by: Sam James <sam@gentoo.org>

 ...lkit-0.118-make-netgroup-support-optional.patch | 228 +++++++++++++++++++++
 sys-auth/polkit/polkit-0.120_p20220127.ebuild      |   3 +
 2 files changed, 231 insertions(+)