Page MenuHomeFreeBSD

pam_krb5: fix the GCC build
ClosedPublic

Authored by ivy on Jul 27 2025, 5:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 16, 1:37 PM
Unknown Object (File)
Wed, Sep 16, 1:36 PM
Unknown Object (File)
Wed, Sep 16, 10:42 AM
Unknown Object (File)
Mon, Sep 14, 9:25 PM
Unknown Object (File)
Fri, Aug 28, 12:53 PM
Unknown Object (File)
Fri, Aug 28, 3:36 AM
Unknown Object (File)
Fri, Aug 21, 10:54 AM
Unknown Object (File)
Aug 19 2026, 5:15 PM
Subscribers

Details

Summary

GCC doesn't recognise
-Wno-error=incompatible-pointer-types-discards-qualifiers.

Remove it and just fix the error instead: our pam_message does not have
a const msg member.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.Jul 27 2025, 5:16 PM

The real question is, why are we using this module instead of our own?

according to https://lists.freebsd.org/archives/dev-commits-src-all/2025-May/055576.html,

The reason for this import is to provide an MIT KRB5 compatible
pam_krb5 PAM module. The existing pam_krb5 in FreeBS only works
with Heimdal.
emaste added a subscriber: emaste.

We can sort out whether this code should exist separately; this change seems reasonable given that it does currently exist in the tree.

This revision is now accepted and ready to land.Jul 31 2025, 10:13 PM
This revision was automatically updated to reflect the committed changes.