Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx 0.7.60 не собира ется без http cache
On Mon, Jun 15, 2009 at 06:57:44PM +0400, Andrey Nikolaev wrote:
> :~/nginx-0.7.60$ make clean && ./configure --without-http-cache && make
>
> .....skipped....
>
> 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
> make[1]: Leaving directory `/home/insa/nginx-0.7.60'
> make: *** [build] Error 2
>
>
> Похоже что потерялся #if NGX_HTTP_CACHE.
Патч.
--
Игорь Сысоев
http://sysoev.ru
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;
}
|