# NGINX 1.0.3 compile error: undefined reference to \`ngx\_libc\_crypt'

**URL:** <https://www.ruby-forum.com/t/nginx-1-0-3-compile-error-undefined-reference-to-ngx-libc-crypt/207453>\
**Category:** NGINX\
**Created:** [May 26, 2011, 2:39am UTC](https://www.ruby-forum.com/t/nginx-1-0-3-compile-error-undefined-reference-to-ngx-libc-crypt/207453 "2011-05-26T02:39:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [May 26, 2011, 2:39am UTC](https://www.ruby-forum.com/t/nginx-1-0-3-compile-error-undefined-reference-to-ngx-libc-crypt/207453/1 "2011-05-26T02:39:59Z")

</div>

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?

Posted at Nginx Forum:

> **[NGINX 1.0.3 compile error: undefined reference to \`ngx\_libc\_crypt'](https://forum.nginx.org/read.php?2,200948,200948#msg-200948)**
>
> 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...

---

<div class="post-metadata">

**Author:** ![wyatt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@wyatt](https://www.ruby-forum.com/u/wyatt)\
**Post date:** [May 26, 2011, 4:13am UTC](https://www.ruby-forum.com/t/nginx-1-0-3-compile-error-undefined-reference-to-ngx-libc-crypt/207453/2 "2011-05-26T04:13:44Z")

</div>

remove : --without-http\_auth\_basic\_module

It will be ok.

I think it is a Bug!!

2011/5/26 wyatt [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![wyatt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@wyatt](https://www.ruby-forum.com/u/wyatt)\
**Post date:** [May 26, 2011, 5:51am UTC](https://www.ruby-forum.com/t/nginx-1-0-3-compile-error-undefined-reference-to-ngx-libc-crypt/207453/3 "2011-05-26T05:51:08Z")

</div>

Thanks, that worked.

Posted at Nginx Forum:

> **[Re: NGINX 1.0.3 compile error: undefined reference to \`ngx\_libc\_crypt'](https://forum.nginx.org/read.php?2,200948,201006#msg-201006)**
>
> 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...

---

<div class="post-metadata">

**Author:** ![wyatt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@wyatt](https://www.ruby-forum.com/u/wyatt)\
**Post date:** [May 26, 2011, 7:31am UTC](https://www.ruby-forum.com/t/nginx-1-0-3-compile-error-undefined-reference-to-ngx-libc-crypt/207453/4 "2011-05-26T07:31:43Z")

</div>

On Wed, May 25, 2011 at 08:39:15PM -0400, wyatt wrote:

> –without-http\_ssi\_module --without-http\_auth\_basic\_module  
> Then I ran “make”  
> objs/src/core/ngx\_crypt.o: In function `ngx\_crypt’:  
> Am I doing something wrong, or is the problem somewhere in the  
> ./configure or make scripts?

The attached patch fixes the issue.
