# Ngx\_http\_upstream\_keepalive error?

**URL:** <https://www.ruby-forum.com/t/ngx-http-upstream-keepalive-error/219184>\
**Category:** NGINX\
**Created:** [April 23, 2012, 9:05am UTC](https://www.ruby-forum.com/t/ngx-http-upstream-keepalive-error/219184 "2012-04-23T09:05:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurdipe\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Post date:** [April 23, 2012, 9:05am UTC](https://www.ruby-forum.com/t/ngx-http-upstream-keepalive-error/219184/1 "2012-04-23T09:05:15Z")

</div>

Hi first time trying to compile Nginx with ngx\_http\_upstream\_keepalive  
module support and seems I am getting an error at make stage while  
compiling with Nginx v1.1.19 ?

configure line:

./configure --sbin-path=/usr/local/sbin  
–conf-path=/usr/local/nginx/conf/nginx.conf --with-http\_ssl\_module  
–with-http\_gzip\_static\_module --with-http\_stub\_status\_module  
–with-http\_sub\_module --with-http\_addition\_module  
–with-http\_secure\_link\_module --with-http\_flv\_module  
–with-http\_realip\_module --add-module=…/ngx-fancyindex-ngx-fancyindex  
–add-module=…/ngx\_cache\_purge-1.4  
–add-module=…/nginx-accesskey-2.0.3  
–add-module=…/agentzh-memc-nginx-module-4007350  
–add-module=…/agentzh-srcache-nginx-module-fa2da58  
–add-module=…/ngx\_http\_upstream\_keepalive-d9ac9ad67f45  
–with-openssl=…/openssl-1.0.0e --with-openssl-opt=“enable-tlsext”

the error at make stage

objs/addon/ngx-fancyindex-ngx-fancyindex/ngx\_http\_fancyindex\_module.o   
objs/addon/ngx\_cache\_purge-1.4/ngx\_cache\_purge\_module.o   
objs/addon/nginx-accesskey-2.0.3/ngx\_http\_accesskey\_module.o   
objs/addon/src/ngx\_http\_memc\_module.o   
objs/addon/src/ngx\_http\_memc\_request.o   
objs/addon/src/ngx\_http\_memc\_response.o   
objs/addon/src/ngx\_http\_memc\_util.o   
objs/addon/src/ngx\_http\_memc\_handler.o   
objs/addon/src/ngx\_http\_srcache\_filter\_module.o   
objs/addon/src/ngx\_http\_srcache\_util.o   
objs/addon/src/ngx\_http\_srcache\_var.o   
objs/addon/src/ngx\_http\_srcache\_store.o   
objs/addon/src/ngx\_http\_srcache\_fetch.o   
objs/addon/src/ngx\_http\_srcache\_headers.o \

objs/addon/ngx\_http\_upstream\_keepalive-d9ac9ad67f45/ngx\_http\_upstream\_keepalive\_module.o  
  
objs/ngx\_modules.o   
-lpthread -lcrypt -lpcre …/openssl-1.0.0e/.openssl/lib/libssl.a  
…/openssl-1.0.0e/.openssl/lib/libcrypto.a -ldl -lz  
objs/addon/ngx\_http\_upstream\_keepalive-d9ac9ad67f45/ngx\_http\_upstream\_keepalive\_module.o:(.data+0x0):  
multiple definition of `ngx_http_upstream_keepalive_module' objs/src/http/modules/ngx_http_upstream_keepalive_module.o:(.data+0x0): first defined here collect2: ld returned 1 exit status make[1]: *** [objs/nginx] Error 1 make[1]: Leaving directory `/setup/nginx-1.1.19’  
make: \*\*\* [build] Error 2

any ideas ?

thanks

Posted at Nginx Forum:

> **[ngx\_http\_upstream\_keepalive error ?](https://forum.nginx.org/read.php?2,225641,225641#msg-225641)**
>
> Hi first time trying to compile Nginx with ngx\_http\_upstream\_keepalive module support and seems I am getting an error at make stage while compiling with Nginx v1.1.19 ? configure line: ./configure --sbin-path=/usr/local/sbin...

---

<div class="post-metadata">

**Author:** ![George](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71e660/32.png) [@George](https://www.ruby-forum.com/u/George)\
**Post date:** [April 23, 2012, 9:29am UTC](https://www.ruby-forum.com/t/ngx-http-upstream-keepalive-error/219184/2 "2012-04-23T09:29:30Z")

</div>

Hello!

On Mon, Apr 23, 2012 at 03:04:43AM -0400, George wrote:

> –with-http\_secure\_link\_module --with-http\_flv\_module  
> –with-http\_realip\_module --add-module=../ngx-fancyindex-ngx-fancyindex  
> –add-module=../ngx\_cache\_purge-1.4  
> –add-module=../nginx-accesskey-2.0.3  
> –add-module=../agentzh-memc-nginx-module-4007350  
> –add-module=../agentzh-srcache-nginx-module-fa2da58  
> –add-module=../ngx\_http\_upstream\_keepalive-d9ac9ad67f45

You don’t need separate upstream keepalive module, it’s already  
included into nginx since 1.1.4 and compiled in by default.

Maxim D.

---

<div class="post-metadata">

**Author:** ![George](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71e660/32.png) [@George](https://www.ruby-forum.com/u/George)\
**Post date:** [April 23, 2012, 10:29am UTC](https://www.ruby-forum.com/t/ngx-http-upstream-keepalive-error/219184/3 "2012-04-23T10:29:09Z")

</div>

doh … no wonder why it complained of multiple definitions lol

thanks 🙂

Posted at Nginx Forum:

> **[Re: ngx\_http\_upstream\_keepalive error ?](https://forum.nginx.org/read.php?2,225641,225645#msg-225645)**
>
> Hi first time trying to compile Nginx with ngx\_http\_upstream\_keepalive module support and seems I am getting an error at make stage while compiling with Nginx v1.1.19 ? configure line: ./configure --sbin-path=/usr/local/sbin...
