0.6.27 compile bug - ngx_create_hashed_filename

Igor Sysoev is at rambler-co.ru
Thu Mar 13 00:08:51 MSK 2008


On Wed, Mar 12, 2008 at 08:58:41PM +0000, dchapiesky at juno.com wrote:

> Compiling on 0.6.27 on Kubuntu i686 Linux 2.66.22 gcc 4.1.3
> I get...
> ../http/ngx_http_file_cache.c: In function ngx_http_file_cache_get:
> ../http/ngx_http_file_cache.c:60: warning: passing argument 1 of ngx_create_hashed_filename from incompatible pointer type
> ../http/ngx_http_file_cache.c:60: warning: passing argument 2 of ngx_create_hashed_filename from incompatible pointer type
> ../http/ngx_http_file_cache.c:60: error: too few arguments to function ngx_create_hashed_filename
> Did a find on ngx_create_hashed_filename and have:
> ../core/ngx_file.c(73): ngx_create_hashed_filename(path, file->name.data, file->name.len);
> ../core/ngx_file.c(123):ngx_create_hashed_filename(ngx_path_t *path, u_char *file, size_t len)
> ../http/ngx_http_file_cache.c(60): ngx_create_hashed_filename(&c->file, ctx->path);
> ../core/ngx_file.h(99):void ngx_create_hashed_filename(ngx_path_t *path, u_char *file, size_t len);
> The offending line in ngx_http_file_cache.c does seem to need 3 args... in addition it seems that the call should be
> ngx_create_hashed_filename(ctx->path, c->file.name.data, c->file.name.len);
> Your opinions are greatly appreciated...

Have you patched nginx sources ?
Currently http/ngx_http_file_cache.c is not built at all.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list