Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 2023 01:19:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 270970] www/nginx:  compile error /mod_zip-5b2604b/ngx_http_zip_headers.c
Message-ID:  <bug-270970-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270970

            Bug ID: 270970
           Summary: www/nginx:  compile error
                    /mod_zip-5b2604b/ngx_http_zip_headers.c
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: joneum@FreeBSD.org
          Reporter: please@forget.me.uk
          Assignee: joneum@FreeBSD.org
             Flags: maintainer-feedback?(joneum@FreeBSD.org)

Nginx is using an old version (5b2604b) of mod_zip for compilation:

https://cgit.freebsd.org/ports/tree/www/nginx/Makefile.extmod#n211

The latest (39dc908) is here:
https://github.com/evanmiller/mod_zip/commit/39dc9085d29445ed3238d215e94fbc=
beef0131dc


Unfortunately, I do not know if that fixes the error below:


```
/wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:59=
:39:
error: member reference type 'ngx_table_elt_t *' (aka 'struct ngx_table_elt=
_s
*') is a pointer; did you mean to use '->'?
    ccp =3D r->headers_out.cache_control.elts;
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
                                      ->
/wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:59=
:40:
error: no member named 'elts' in 'struct ngx_table_elt_s'
    ccp =3D r->headers_out.cache_control.elts;
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:62=
:28:
warning: incompatible pointer types passing 'ngx_table_elt_t **' (aka 'stru=
ct
ngx_table_elt_s **') to parameter of type 'ngx_array_t *'
[-Wincompatible-pointer-types]
        if (ngx_array_init(&r->headers_out.cache_control, r->pool,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/ngx_array.h:32:29: note: passing argument to parameter 'array' here
ngx_array_init(ngx_array_t *array, ngx_pool_t *pool, ngx_uint_t n, size_t s=
ize)
                            ^
/wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:69=
:30:
warning: incompatible pointer types passing 'ngx_table_elt_t **' (aka 'stru=
ct
ngx_table_elt_s **') to parameter of type 'ngx_array_t *'
[-Wincompatible-pointer-types]
        ccp =3D ngx_array_push(&r->headers_out.cache_control);
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/ngx_array.h:27:35: note: passing argument to parameter 'a' here
void *ngx_array_push(ngx_array_t *a);
                                  ^
/wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:85=
:53:
error: member reference type 'ngx_table_elt_t *' (aka 'struct ngx_table_elt=
_s
*') is a pointer; did you mean to use '->'?
        for (i =3D 1; i < r->headers_out.cache_control.nelts; i++) {
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
                                                    ->
/wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:85=
:54:
error: no member named 'nelts' in 'struct ngx_table_elt_s'
        for (i =3D 1; i < r->headers_out.cache_control.nelts; i++) {
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/wrkdirs/usr/ports/www/nginx/work/mod_zip-5b2604b/ngx_http_zip_headers.c:32=
9:65:
error: too few arguments to function call, expected 5, have 4
    return ngx_http_variable_unknown_header(v, var, part, prefix);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                     ^
src/http/ngx_http_variables.h:60:11: note: 'ngx_http_variable_unknown_heade=
r'
declared here
ngx_int_t ngx_http_variable_unknown_header(ngx_http_request_t *r,
          ^
2 warnings and 5 errors generated.
```

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270970-7788>