if the system doesn't support crypt.h/crypt, then ENABLE_SVR_PASSWORD_AUTH
cannot work.  rather than default this to on all the time, do so only when
support for the header is found.
-mike

svr-authpasswd.o:svr-authpasswd.c:function svr_auth_password: error: undefined 
reference to 'crypt'
collect2: error: ld returned 1 exit status

--- a/options.h Tue Sep 29 22:19:11 2015 +0800
+++ b/options.h Fri Oct 09 19:21:35 2015 -0400
@@ -206,7 +206,10 @@ If you test it please contact the Dropbe
  * PAM challenge/response.
  * You can't enable both PASSWORD and PAM. */
 
+/* This requires crypt.h & crypt. */
+#ifdef HAVE_CRYPT_H
 #define ENABLE_SVR_PASSWORD_AUTH
+#endif
 /* PAM requires ./configure --enable-pam */
 /*#define ENABLE_SVR_PAM_AUTH */
 #define ENABLE_SVR_PUBKEY_AUTH

Attachment: signature.asc
Description: Digital signature

Reply via email to