Fails to build with nginx 1.8.0
kmansoft opened this issue · 1 comments
I tried to build with nginx 1.8.0, copying the module's source code from the 1.6.2 package for Debian Jesse.
Regrettably, looks like something's changed in nginx data structures, so the module fails to build with a bunch of warnings and some errors.
Are there any plans to update for 1.8.0?
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c: In function ‘ngx_http_fastcgi_cache_purge_conf’:
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c:251:30: warning: comparison between pointer and integer
if (flcf->upstream.cache != NGX_CONF_UNSET_PTR
^
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c:252:33: warning: comparison between pointer and integer
&& flcf->upstream.cache != NULL)
^
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c:268:26: warning: assignment makes integer from pointer without a cast
flcf->upstream.cache = ngx_shared_memory_add(cf, &value[1], 0,
^
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c:270:30: warning: comparison between pointer and integer
if (flcf->upstream.cache == NULL) {
^
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c: In function ‘ngx_http_fastcgi_cache_purge_handler’:
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c:301:58: error: invalid type argument of ‘->’ (have ‘int’)
if (ngx_http_cache_purge_init(r, flcf->upstream.cache->data,
^
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c: In function ‘ngx_http_proxy_cache_purge_conf’:
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c:399:30: warning: comparison between pointer and integer
if (plcf->upstream.cache != NGX_CONF_UNSET_PTR
^
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c:400:33: warning: comparison between pointer and integer
&& plcf->upstream.cache != NULL)
^
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c:416:26: warning: assignment makes integer from pointer without a cast
plcf->upstream.cache = ngx_shared_memory_add(cf, &value[1], 0,
^
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c:418:30: warning: comparison between pointer and integer
if (plcf->upstream.cache == NULL) {
^
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c: In function ‘ngx_http_proxy_cache_purge_handler’:
/home/kman/src/nginx-1.8.0/debian/modules/nginx-cache-purge/ngx_cache_purge_module.c:449:58: error: invalid type argument of ‘->’ (have ‘int’)
if (ngx_http_cache_purge_init(r, plcf->upstream.cache->data,
Sorry, never mind, it's a duplicate and you already fixed it. Sorry!