Subject: Re: pkg/28905: samba won't build and
To: None <christos@netbsd.org, gnats-admin@netbsd.org,>
From: Tom Weissmann <trmsw@yahoo.co.uk>
List: pkgsrc-bugs
Date: 10/04/2005 11:02:02
The following reply was made to PR pkg/28905; it has been noted by GNATS.

From: Tom Weissmann <trmsw@yahoo.co.uk>
To: pkgsrc-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/28905: samba won't build and
Date: Tue, 4 Oct 2005 10:27:58 +0000 (UTC)

  <htodd <at> twofifty.com> 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/
 include/security/_pam_types.h:
 
 [...]
 #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.
 Regards,
 TSW