You should probably not #define SSH_AUTH_METHOD_PUBLICKEY in auth_funcs.c and rely on the version in pam_sshauth.h
You should probably not #define SSH_AUTH_ METHOD_ PUBLICKEY in auth_funcs.c and rely on the version in pam_sshauth.h