nginx-1.0.3

Maxim Dounin mdounin at mdounin.ru
Thu May 26 11:47:29 MSD 2011


Hello!

On Thu, May 26, 2011 at 10:09:27AM +0800, Wendal Chen wrote:

> It has a bug!
> 
> Build with :
> ./configure --without-http_auth_basic_module && make
> 
> objs/src/core/ngx_crypt.o: In function `ngx_crypt':
> ngx_crypt.c:(.text+0x7b): undefined reference to `ngx_libc_crypt'
> collect2: ld returned 1 exit status
> make[1]: *** [objs/nginx] Error 1
> make[1]: Leaving directory `/root/nginx-1.0.3'
> make: *** [build] Error 2
> 
> 
> But ok when:
> ./configure && make

Thank you for your report.  The following patch unbreaks build 
without auth basic module:

diff --git a/src/core/ngx_crypt.c b/src/core/ngx_crypt.c
--- a/src/core/ngx_crypt.c
+++ b/src/core/ngx_crypt.c
@@ -11,6 +11,7 @@
 #include <ngx_sha1.h>
 #endif

+#if (NGX_CRYPT)

 static ngx_int_t ngx_crypt_apr1(ngx_pool_t *pool, u_char *key, u_char *salt,
     u_char **encrypted);
@@ -232,3 +233,5 @@ ngx_crypt_ssha(ngx_pool_t *pool, u_char
 }

 #endif /* NGX_HAVE_SHA1 */
+
+#endif /* NGX_CRYPT */


Maxim Dounin



More information about the nginx mailing list