nginx-0.7.60

Igor Sysoev is at rambler-co.ru
Mon Jun 15 15:16:24 MSD 2009


On Mon, Jun 15, 2009 at 12:27:17PM +0200, andan andan wrote:

> 2009/6/15 Igor Sysoev <is at rambler-co.ru>:
> > Changes with nginx 0.7.60                                        15 Jun 2009
> >
> 
> Hi Igor,
> 
> I got the following error compiling nginx 0.7.60:
> 
> $> ./configure --with-http_stub_status_module --with-http_ssl_module
> --without-select_module --without-http_ssi_module
> --without-http_userid_module --without-http_autoindex_module
> --without-http_geo_module --without-http_map_module
> --without-http_referer_module --without-http_fastcgi_module
> --without-http_memcached_module --without-http_limit_zone_module
> --without-http_limit_req_module --without-http_empty_gif_module
> --without-http_browser_module --without-http_upstream_ip_hash_module
> --without-http-cache --without-mail_pop3_module
> --without-mail_imap_module --without-mail_smtp_module
> 
> ....
> 
> $> make
> ...
> src/http/ngx_http_upstream.c: In function 'ngx_http_upstream_hide_headers_hash':
> src/http/ngx_http_upstream.c:4089: error: 'ngx_http_upstream_conf_t'
> has no member named 'cache'
> src/http/ngx_http_upstream.c:4089: error: 'ngx_http_upstream_conf_t'
> has no member named 'cache'
> make[1]: *** [objs/src/http/ngx_http_upstream.o] Error 1
> 
> Any idea ?
> Thanks in advance.

This is because of --without-http-cache.
The attached patch fixes the bug.


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/http/ngx_http_upstream.c
===================================================================
--- src/http/ngx_http_upstream.c	(revision 2267)
+++ src/http/ngx_http_upstream.c	(working copy)
@@ -4086,7 +4086,10 @@
         conf->hide_headers_hash = prev->hide_headers_hash;
 
         if (conf->hide_headers_hash.buckets
-            && ((conf->cache == NULL) == (prev->cache == NULL)))
+#if (NGX_HTTP_CACHE)
+            && ((conf->cache == NULL) == (prev->cache == NULL))
+#endif
+           )
         {
             return NGX_OK;
         }
Index: src/http/modules/ngx_http_proxy_module.c
===================================================================
--- src/http/modules/ngx_http_proxy_module.c	(revision 2267)
+++ src/http/modules/ngx_http_proxy_module.c	(working copy)
@@ -2343,7 +2343,10 @@
     }
 
     if (conf->headers_set_hash.buckets
-        && ((conf->upstream.cache == NULL) == (prev->upstream.cache == NULL)))
+#if (NGX_HTTP_CACHE)
+        && ((conf->upstream.cache == NULL) == (prev->upstream.cache == NULL))
+#endif
+       )
     {
         return NGX_OK;
     }


More information about the nginx mailing list