Menu

#1 [PATCH] Fix PAM include dirs: Fixes `pam.c:7:10: fatal error: pam_appl.h: No such file or directory`.

1.0
closed
None
2026-05-20
2026-05-20
Drei Eck
No

Ahoj,

I want to compile this on Artix GNU/Linux with PAM version 1.7.2.

Compilation fails with

    Compiling loginx.c ...
    Compiling pam.c ...
    Compiling uacct.c ...
    Compiling ui.c ...
pam.c:7:10: fatal error: pam_appl.h: No such file or directory
    7 | #include <pam_appl.h>
      |          ^~~~~~~~~~~~
compilation terminated.

According to https://man.archlinux.org/man/pam.3.en, I think you should use #include <security/pam_appl.h> instead.

Attached file fix_pam_include_dir.patch fixes the build error.

Regards!

1 Attachments

Discussion

  • Mike Sharov

    Mike Sharov - 2026-05-20

    Patch accepted. Commit 8a821b25c65c74e57af2f5a0b4df2e5cf17d0771.

     
  • Mike Sharov

    Mike Sharov - 2026-05-20
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB