Subject: Re: pkg/28905: samba won't build and
To: None <>
From: Tom Weissmann <>
List: pkgsrc-bugs
Date: 10/04/2005 10:27:58
 <htodd <at>> writes:

> nsswitch/pam_winbind.c:341: error: `PAM_AUTHTOK_RECOVER_ERR' undeclared (first 
use in this function)

I had the same problem, and discovered that sometimes PAM_AUTHTOK_RECOVER_ERR is 
used, sometimes PAM_AUTHTOK_RECOVERY_ERR. A temporary fix is to edit /usr/pkg/

#define PAM_AUTHTOK_RECOVER_ERR 21 /* Authentication information */
                                   /* cannot be recovered */
#define PAM_AUTHTOK_RECOVERY_ERR 21 /* Add this doppelganger to build samba */

It's not a real solution but it might help.