Re: nss-ldapd-0.6.11 on RedHat
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
Re: nss-ldapd-0.6.11 on RedHat
- From: Arthur de Jong <arthur [at] arthurdejong.org>
- To: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: Re: nss-ldapd-0.6.11 on RedHat
- Date: Fri, 27 Apr 2012 21:05:32 +0200
On Fri, 2012-04-27 at 12:10 -0300, Felipe wrote:
> But when I tried make I got these errors:
>
> [root@dig1 nss-pam-ldapd-0.7.16]# make
> Making all in compat
> make[2]: Entering directory `/root/tmp/nss-pam-ldapd-0.7.16/compat'
> gcc -DHAVE_CONFIG_H -I. -I.. -I.. -fPIC -g -O2 -MT pam_get_authtok.o -MD
> -MP -MF .deps/pam_get_authtok.Tpo -c -o pam_get_authtok.o pam_get_authtok.c
> pam_get_authtok.c: In function `pam_get_authtok':
> pam_get_authtok.c:74: error: `PAM_AUTHTOK_RECOVERY_ERR' undeclared (first use
> in this function)
> pam_get_authtok.c:74: error: (Each undeclared identifier is reported only once
> pam_get_authtok.c:74: error: for each function it appears in.)
> make[2]: *** [pam_get_authtok.o] Error 1
> make[2]: Leaving directory `/root/tmp/nss-pam-ldapd-0.7.16/compat'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/tmp/nss-pam-ldapd-0.7.16'
> make: *** [all] Error 2
Thanks for pointing this out. You need to add the following code to the
top of compat/pam_get_authtok.c after the includes. This code is from
the 0.8 branch:
#ifndef PAM_AUTHTOK_RECOVERY_ERR
#ifdef PAM_AUTHTOK_RECOVER_ERR
#define PAM_AUTHTOK_RECOVERY_ERR PAM_AUTHTOK_RECOVER_ERR
#else
#define PAM_AUTHTOK_RECOVERY_ERR 21 /* not defined anywhere */
#endif
#endif
I will add these compatibility changes to the next 0.7 release.
--
-- arthur - arthur@arthurdejong.org - http://arthurdejong.org --
--
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/