1.1.7 compilation error in rlm_otp
I'm trying to build the latest 1.1.7 on RHEL4, and I'm getting this: otp_pw_valid.c -fPIC -DPIC -o .libs/otp_pw_valid.o otp_pw_valid.c: In function `otprc2rlmrc': otp_pw_valid.c:55: error: `OTP_RC_NEXTPASSCODE' undeclared (first use in this function) otp_pw_valid.c:55: error: (Each undeclared identifier is reported only once otp_pw_valid.c:55: error: for each function it appears in.) gmake[6]: *** [otp_pw_valid.lo] Error 1 gmake[6]: Leaving directory `/usr/local/src/freeradius/radiusd/src/modules/rlm_otp' 1.1.6 builds just fine on the same box. -- hugh
otp_pw_valid.c:55: error: `OTP_RC_NEXTPASSCODE' undeclared (first use in this function)
Ah hah ... [root@PMX66 rlm_otp]# grep PASSCODE * otp.h:#define OTP_RC_NEXT_PASSCODE 6 [...] otp_pw_valid.c: case OTP_RC_NEXTPASSCODE: return RLM_MODULE_USERLOCK; I've edited otp_pw_valid.c to add that missing _ to get 1.1.7 compiling here, but someone else will have to commit the change to CVS. -- hugh
whoops On July 15, 2007 1:29:12 PM -0500 Hugh Messenger <hugh@alaweb.com> wrote:
otp_pw_valid.c:55: error: `OTP_RC_NEXTPASSCODE' undeclared (first use in this function)
Ah hah ...
[root@PMX66 rlm_otp]# grep PASSCODE * otp.h:#define OTP_RC_NEXT_PASSCODE 6 [...] otp_pw_valid.c: case OTP_RC_NEXTPASSCODE: return RLM_MODULE_USERLOCK;
I've edited otp_pw_valid.c to add that missing _ to get 1.1.7 compiling here, but someone else will have to commit the change to CVS.
-- hugh
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
participants (3)
-
Alan DeKok -
Frank Cusack -
Hugh Messenger