It will not compile with latest gcc/glibc (3.3/2.3.2) There is an alternative kerberos5 pam module. Ebuilds in bug 26509. Reproducible: Always Steps to Reproduce: 1. emerge pam_krb5 Actual Results: patching file Makefile gcc -c -march=athlon-xp -Os -pipe -I/usr/include pam_krb5_auth.c pam_krb5_auth.c: In function `pam_sm_authenticate': pam_krb5_auth.c:72: warning: passing arg 2 of `pam_get_user' from incompatible pointer type pam_krb5_auth.c:77: warning: passing arg 3 of `pam_get_item' from incompatible pointer type pam_krb5_auth.c:129: warning: passing arg 3 of `pam_get_item' from incompatible pointer type pam_krb5_auth.c:148: warning: passing arg 3 of `pam_get_item' from incompatible pointer type pam_krb5_auth.c:166: warning: passing arg 3 of `pam_get_item' from incompatible pointer type pam_krb5_auth.c: In function `pam_sm_setcred': pam_krb5_auth.c:291: warning: assignment discards qualifiers from pointer target type pam_krb5_auth.c:295: warning: passing arg 3 of `pam_get_item' from incompatible pointer type pam_krb5_auth.c:300: warning: passing arg 3 of `pam_get_item' from incompatible pointer type pam_krb5_auth.c:418: error: `errno' undeclared (first use in this function) pam_krb5_auth.c:418: error: (Each undeclared identifier is reported only once pam_krb5_auth.c:418: error: for each function it appears in.) make: *** [pam_krb5_auth.o] Error 1 !!! ERROR: app-crypt/pam_krb5-1.0 failed. !!! Function src_compile, Line 20, Exitcode 2 !!! (no error message)
Created attachment 20331 [details, diff] New ebuild for 1.3-r7 This is an updated ebuild for pam_krb5 that builds the 1.3-rc7 from sourceforge.
Created attachment 20332 [details, diff] Patch file for 1.3-rc7
One hack is to temporarily place "#include <errno.h>" in /usr/include/stdio.h. Don't leave it there, though.
Bug #35059 duplicates this bug, but I put three patches there that fix the 1.0 ebuild w/o using an new version.
*** This bug has been marked as a duplicate of 35059 ***