ngx_http_upstream_keepalive error ?

George nginx-forum at nginx.us
Mon Apr 23 07:04:43 UTC 2012


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: http://forum.nginx.org/read.php?2,225641,225641#msg-225641



More information about the nginx mailing list