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)
Tue, Apr 7, 7:29 AM
Unknown Object (File)
Sun, Apr 5, 6:44 AM
Unknown Object (File)
Fri, Apr 3, 5:09 AM
Unknown Object (File)
Fri, Mar 27, 6:22 AM
Unknown Object (File)
Thu, Mar 26, 10:01 PM
Unknown Object (File)
Mar 12 2026, 8:43 AM
Unknown Object (File)
Mar 4 2026, 12:03 PM
Unknown Object (File)
Mar 3 2026, 11:32 AM
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.