Welcome! Log In Create A New Profile

Advanced

Re: nginx-1.0.3

Maxim Dounin
May 26, 2011 03:48AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx-1.0.3

Igor Sysoev May 25, 2011 11:26AM

Re: nginx-1.0.3

Wendal Chen May 25, 2011 10:10PM

Re: nginx-1.0.3

Wendal Chen May 25, 2011 10:48PM

Re: nginx-1.0.3

Maxim Dounin May 26, 2011 03:48AM

Re: nginx-1.0.3

umesh chaudhari March 01, 2012 07:34AM

Re: nginx-1.0.3

umesh chaudhari March 01, 2012 07:34AM

Re: nginx-1.0.3

Maxim Dounin March 01, 2012 07:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready