May 26, 2011 01:32AM
On Wed, May 25, 2011 at 08:39:15PM -0400, wyatt wrote:
> Hey Guys,
>
> I've found a compile error for NGINX 1.0.3 that didn't exist for any of
> the previous versions (same configuration, etc.) Here's the
> "./configure" arguments I used:
>
>
> ./configure --sbin-path=/usr/local/sbin --with-http_ssl_module
> --with-ipv6 --without-mail_pop3_module --without-mail_imap_module
> --without-mail_smtp_module --without-http_autoindex_module
> --without-http_ssi_module --without-http_auth_basic_module
> --without-http_browser_module --without-http_empty_gif_module
> --without-http_geo_module --without-http_limit_req_module
> --without-http_limit_zone_module --without-http_map_module
> --without-http_memcached_module --without-http_proxy_module
> --without-http_referer_module --without-http_scgi_module
> --without-http_split_clients_module
> --without-http_upstream_ip_hash_module --without-http_userid_module
> --without-http_uwsgi_module --with-cc-opt=-O2
>
>
> Then I ran "make"
>
> After a little while, this is the ouput:
>
>
>
> gcc -o objs/nginx \
> objs/src/core/nginx.o \
> [.....]
> objs/ngx_modules.o \
> -lpcre -lssl -lcrypto -ldl -lz
> objs/src/core/ngx_crypt.o: In function `ngx_crypt':
> /home/wyatt/sources/nginx-1.0.3/src/core/ngx_crypt.c:48: undefined
> reference to `ngx_libc_crypt'
> collect2: ld returned 1 exit status
> make[1]: *** [objs/nginx] Error 1
> make[1]: Leaving directory `/home/wyatt/sources/nginx-1.0.3'
> make: *** [build] Error 2
>
>
>
>
> Am I doing something wrong, or is the problem somewhere in the
> ./configure or make scripts?

The attached patch fixes the issue.


--
Igor Sysoev
Index: src/core/ngx_crypt.c
===================================================================
--- src/core/ngx_crypt.c (revision 3925)
+++ src/core/ngx_crypt.c (working copy)
@@ -12,6 +12,8 @@
#endif


+#if (NGX_CRYPT)
+
static ngx_int_t ngx_crypt_apr1(ngx_pool_t *pool, u_char *key, u_char *salt,
u_char **encrypted);
static ngx_int_t ngx_crypt_plain(ngx_pool_t *pool, u_char *key, u_char *salt,
@@ -232,3 +234,5 @@
}

#endif /* NGX_HAVE_SHA1 */
+
+#endif /* NGX_CRYPT */
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

NGINX 1.0.3 compile error: undefined reference to `ngx_libc_crypt'

wyatt May 25, 2011 08:39PM

Re: NGINX 1.0.3 compile error: undefined reference to `ngx_libc_crypt'

Wendal Chen May 25, 2011 10:14PM

Re: NGINX 1.0.3 compile error: undefined reference to `ngx_libc_crypt'

wyatt May 25, 2011 11:50PM

Re: NGINX 1.0.3 compile error: undefined reference to `ngx_libc_crypt'

Igor Sysoev May 26, 2011 01:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 179
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