evanmiller / mod_zip

Streaming ZIP archiver for nginx 📦
https://www.nginx.com/resources/wiki/modules/zip/
BSD 3-Clause "New" or "Revised" License
215 stars 64 forks source link

mod_zip does not compile with nginx 1.23.0+ #92

Closed d--j closed 2 years ago

d--j commented 2 years ago

The new nginx mainline 1.23.0 changed the way some headers are handled ( see https://nginx.org/en/CHANGES and https://hg.nginx.org/nginx/rev/ef6a3a99a81a ).

Looks like mod_zip needs some smaller changes to be compatible with nginx 1.23.0.

Here ist a build log of mod_zip 1.2.0 (but current master should be the same)

#11 12.75 make[2]: Entering directory '/build/pkg-oss/debian/debuild-module-zip/nginx-1.23.0/debian/build-nginx'
#11 12.75 cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -g -O2 -fdebug-prefix-map=/build/pkg-oss/debian/debuild-module-zip/nginx-1.23.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I src/mail -I src/stream \
#11 12.75   -o objs/addon/zip-1.23.0/ngx_http_zip_module.o \
#11 12.75   extra/zip-1.23.0/ngx_http_zip_module.c
#11 12.75 cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -g -O2 -fdebug-prefix-map=/build/pkg-oss/debian/debuild-module-zip/nginx-1.23.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I src/mail -I src/stream \
#11 12.75   -o objs/addon/zip-1.23.0/ngx_http_zip_parsers.o \
#11 12.75   extra/zip-1.23.0/ngx_http_zip_parsers.c
#11 12.75 cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -g -O2 -fdebug-prefix-map=/build/pkg-oss/debian/debuild-module-zip/nginx-1.23.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I src/mail -I src/stream \
#11 12.75   -o objs/addon/zip-1.23.0/ngx_http_zip_file.o \
#11 12.75   extra/zip-1.23.0/ngx_http_zip_file.c
#11 12.75 cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -g -O2 -fdebug-prefix-map=/build/pkg-oss/debian/debuild-module-zip/nginx-1.23.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I src/mail -I src/stream \
#11 12.75   -o objs/addon/zip-1.23.0/ngx_http_zip_headers.o \
#11 12.75   extra/zip-1.23.0/ngx_http_zip_headers.c
#11 12.75 cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -g -O2 -fdebug-prefix-map=/build/pkg-oss/debian/debuild-module-zip/nginx-1.23.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/http/v2 -I src/mail -I src/stream \
#11 12.75   -o objs/ngx_http_zip_module_modules.o \
#11 12.75   objs/ngx_http_zip_module_modules.c
#11 12.95 extra/zip-1.23.0/ngx_http_zip_headers.c: In function 'ngx_http_zip_add_cache_control':
#11 12.95 extra/zip-1.23.0/ngx_http_zip_headers.c:13:39: error: 'r->headers_out.cache_control' is a pointer; did you mean to use '->'?
#11 12.95    13 |     ccp = r->headers_out.cache_control.elts;
#11 12.95       |                                       ^
#11 12.95       |                                       ->
#11 12.95 extra/zip-1.23.0/ngx_http_zip_headers.c:16:28: error: passing argument 1 of 'ngx_array_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95    16 |         if (ngx_array_init(&r->headers_out.cache_control, r->pool,
#11 12.95       |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                            |
#11 12.95       |                            ngx_table_elt_t ** {aka struct ngx_table_elt_s **}
#11 12.95 In file included from src/core/ngx_core.h:65,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:4,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_headers.c:1:
#11 12.95 src/core/ngx_array.h:32:29: note: expected 'ngx_array_t *' {aka 'struct <anonymous> *'} but argument is of type 'ngx_table_elt_t **' {aka 'struct ngx_table_elt_s **'}
#11 12.95    32 | ngx_array_init(ngx_array_t *array, ngx_pool_t *pool, ngx_uint_t n, size_t size)
#11 12.95       |                ~~~~~~~~~~~~~^~~~~
#11 12.95 extra/zip-1.23.0/ngx_http_zip_headers.c:23:30: error: passing argument 1 of 'ngx_array_push' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95    23 |         ccp = ngx_array_push(&r->headers_out.cache_control);
#11 12.95       |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                              |
#11 12.95       |                              ngx_table_elt_t ** {aka struct ngx_table_elt_s **}
#11 12.95 In file included from src/core/ngx_core.h:65,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:4,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_headers.c:1:
#11 12.95 src/core/ngx_array.h:27:7: note: expected 'ngx_array_t *' {aka 'struct <anonymous> *'} but argument is of type 'ngx_table_elt_t **' {aka 'struct ngx_table_elt_s **'}
#11 12.95    27 | void *ngx_array_push(ngx_array_t *a);
#11 12.95       |       ^~~~~~~~~~~~~~
#11 12.95 extra/zip-1.23.0/ngx_http_zip_headers.c:39:53: error: 'r->headers_out.cache_control' is a pointer; did you mean to use '->'?
#11 12.95    39 |         for (i = 1; i < r->headers_out.cache_control.nelts; i++) {
#11 12.95       |                                                     ^
#11 12.95       |                                                     ->
#11 12.95 extra/zip-1.23.0/ngx_http_zip_file.c: In function 'ngx_http_zip_generate_pieces':
#11 12.95 extra/zip-1.23.0/ngx_http_zip_file.c:254:67: error: passing argument 1 of 'ngx_http_variable_unknown_header' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95   254 |         variable_header_status = ngx_http_variable_unknown_header(vv, &ngx_http_zip_header_name_separator,
#11 12.95       |                                                                   ^~
#11 12.95       |                                                                   |
#11 12.95       |                                                                   ngx_http_variable_value_t * {aka struct <anonymous> *}
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_file.c:2:
#11 12.95 src/http/ngx_http_variables.h:60:64: note: expected 'ngx_http_request_t *' {aka 'struct ngx_http_request_s *'} but argument is of type 'ngx_http_variable_value_t *' {aka 'struct <anonymous> *'}
#11 12.95    60 | ngx_int_t ngx_http_variable_unknown_header(ngx_http_request_t *r,
#11 12.95       |                                            ~~~~~~~~~~~~~~~~~~~~^
#11 12.95 extra/zip-1.23.0/ngx_http_zip_file.c:254:71: error: passing argument 2 of 'ngx_http_variable_unknown_header' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95   254 |         variable_header_status = ngx_http_variable_unknown_header(vv, &ngx_http_zip_header_name_separator,
#11 12.95       |                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                                                                       |
#11 12.95       |                                                                       ngx_str_t * {aka struct <anonymous> *}
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_file.c:2:
#11 12.95 src/http/ngx_http_variables.h:61:32: note: expected 'ngx_http_variable_value_t *' {aka 'struct <anonymous> *'} but argument is of type 'ngx_str_t *' {aka 'struct <anonymous> *'}
#11 12.95    61 |     ngx_http_variable_value_t *v, ngx_str_t *var, ngx_list_part_t *part,
#11 12.95       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
#11 12.95 extra/zip-1.23.0/ngx_http_zip_file.c:255:17: error: passing argument 3 of 'ngx_http_variable_unknown_header' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95   255 |                 &r->upstream->headers_in.headers.part, sizeof("upstream_http_")-1);
#11 12.95       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                 |
#11 12.95       |                 ngx_list_part_t * {aka struct ngx_list_part_s *}
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_file.c:2:
#11 12.95 src/http/ngx_http_variables.h:61:46: note: expected 'ngx_str_t *' {aka 'struct <anonymous> *'} but argument is of type 'ngx_list_part_t *' {aka 'struct ngx_list_part_s *'}
#11 12.95    61 |     ngx_http_variable_value_t *v, ngx_str_t *var, ngx_list_part_t *part,
#11 12.95       |                                   ~~~~~~~~~~~^~~
#11 12.95 extra/zip-1.23.0/ngx_http_zip_file.c:255:56: error: passing argument 4 of 'ngx_http_variable_unknown_header' makes pointer from integer without a cast [-Werror=int-conversion]
#11 12.95   255 |                 &r->upstream->headers_in.headers.part, sizeof("upstream_http_")-1);
#11 12.95       |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                                                        |
#11 12.95       |                                                        long unsigned int
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_file.c:2:
#11 12.95 src/http/ngx_http_variables.h:61:68: note: expected 'ngx_list_part_t *' {aka 'struct ngx_list_part_s *'} but argument is of type 'long unsigned int'
#11 12.95    61 |     ngx_http_variable_value_t *v, ngx_str_t *var, ngx_list_part_t *part,
#11 12.95       |                                                   ~~~~~~~~~~~~~~~~~^~~~
#11 12.95 extra/zip-1.23.0/ngx_http_zip_file.c:254:34: error: too few arguments to function 'ngx_http_variable_unknown_header'
#11 12.95   254 |         variable_header_status = ngx_http_variable_unknown_header(vv, &ngx_http_zip_header_name_separator,
#11 12.95       |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_file.c:2:
#11 12.95 src/http/ngx_http_variables.h:60:11: note: declared here
#11 12.95    60 | ngx_int_t ngx_http_variable_unknown_header(ngx_http_request_t *r,
#11 12.95       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95 extra/zip-1.23.0/ngx_http_zip_file.c:268:71: error: passing argument 1 of 'ngx_http_variable_unknown_header' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95   268 |             variable_header_status = ngx_http_variable_unknown_header(vv, &ngx_http_zip_header_charset_name,
#11 12.95       |                                                                       ^~
#11 12.95       |                                                                       |
#11 12.95       |                                                                       ngx_http_variable_value_t * {aka struct <anonymous> *}
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_file.c:2:
#11 12.95 src/http/ngx_http_variables.h:60:64: note: expected 'ngx_http_request_t *' {aka 'struct ngx_http_request_s *'} but argument is of type 'ngx_http_variable_value_t *' {aka 'struct <anonymous> *'}
#11 12.95    60 | ngx_int_t ngx_http_variable_unknown_header(ngx_http_request_t *r,
#11 12.95       |                                            ~~~~~~~~~~~~~~~~~~~~^
#11 12.95 extra/zip-1.23.0/ngx_http_zip_file.c:268:75: error: passing argument 2 of 'ngx_http_variable_unknown_header' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95   268 |             variable_header_status = ngx_http_variable_unknown_header(vv, &ngx_http_zip_header_charset_name,
#11 12.95       |                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                                                                           |
#11 12.95       |                                                                           ngx_str_t * {aka struct <anonymous> *}
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_file.c:2:
#11 12.95 src/http/ngx_http_variables.h:61:32: note: expected 'ngx_http_variable_value_t *' {aka 'struct <anonymous> *'} but argument is of type 'ngx_str_t *' {aka 'struct <anonymous> *'}
#11 12.95    61 |     ngx_http_variable_value_t *v, ngx_str_t *var, ngx_list_part_t *part,
#11 12.95       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
#11 12.95 extra/zip-1.23.0/ngx_http_zip_file.c:269:21: error: passing argument 3 of 'ngx_http_variable_unknown_header' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95   269 |                     &r->upstream->headers_in.headers.part, sizeof("upstream_http_")-1);
#11 12.95       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                     |
#11 12.95       |                     ngx_list_part_t * {aka struct ngx_list_part_s *}
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_file.c:2:
#11 12.95 src/http/ngx_http_variables.h:61:46: note: expected 'ngx_str_t *' {aka 'struct <anonymous> *'} but argument is of type 'ngx_list_part_t *' {aka 'struct ngx_list_part_s *'}
#11 12.95    61 |     ngx_http_variable_value_t *v, ngx_str_t *var, ngx_list_part_t *part,
#11 12.95       |                                   ~~~~~~~~~~~^~~
#11 12.95 extra/zip-1.23.0/ngx_http_zip_module.c: In function 'ngx_http_zip_main_request_header_filter':
#11 12.95 extra/zip-1.23.0/ngx_http_zip_file.c:269:60: error: passing argument 4 of 'ngx_http_variable_unknown_header' makes pointer from integer without a cast [-Werror=int-conversion]
#11 12.95   269 |                     &r->upstream->headers_in.headers.part, sizeof("upstream_http_")-1);
#11 12.95       |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                                                            |
#11 12.95       |                                                            long unsigned int
#11 12.95 extra/zip-1.23.0/ngx_http_zip_module.c:202:67: error: passing argument 1 of 'ngx_http_variable_unknown_header' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95   202 |         variable_header_status = ngx_http_variable_unknown_header(vv,
#11 12.95       |                                                                   ^~
#11 12.95       |                                                                   |
#11 12.95       |                                                                   ngx_http_variable_value_t * {aka struct <anonymous> *}
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_file.c:2:
#11 12.95 src/http/ngx_http_variables.h:61:68: note: expected 'ngx_list_part_t *' {aka 'struct ngx_list_part_s *'} but argument is of type 'long unsigned int'
#11 12.95    61 |     ngx_http_variable_value_t *v, ngx_str_t *var, ngx_list_part_t *part,
#11 12.95       |                                                   ~~~~~~~~~~~~~~~~~^~~~
#11 12.95 extra/zip-1.23.0/ngx_http_zip_file.c:268:38: error: too few arguments to function 'ngx_http_variable_unknown_header'
#11 12.95   268 |             variable_header_status = ngx_http_variable_unknown_header(vv, &ngx_http_zip_header_charset_name,
#11 12.95       |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_file.c:2:
#11 12.95 src/http/ngx_http_variables.h:60:11: note: declared here
#11 12.95    60 | ngx_int_t ngx_http_variable_unknown_header(ngx_http_request_t *r,
#11 12.95       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.c:9:
#11 12.95 src/http/ngx_http_variables.h:60:64: note: expected 'ngx_http_request_t *' {aka 'struct ngx_http_request_s *'} but argument is of type 'ngx_http_variable_value_t *' {aka 'struct <anonymous> *'}
#11 12.95    60 | ngx_int_t ngx_http_variable_unknown_header(ngx_http_request_t *r,
#11 12.95       |                                            ~~~~~~~~~~~~~~~~~~~~^
#11 12.95 extra/zip-1.23.0/ngx_http_zip_module.c:203:17: error: passing argument 2 of 'ngx_http_variable_unknown_header' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95   203 |                 &ngx_http_zip_header_variable_name,
#11 12.95       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                 |
#11 12.95       |                 ngx_str_t * {aka struct <anonymous> *}
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.c:9:
#11 12.95 src/http/ngx_http_variables.h:61:32: note: expected 'ngx_http_variable_value_t *' {aka 'struct <anonymous> *'} but argument is of type 'ngx_str_t *' {aka 'struct <anonymous> *'}
#11 12.95    61 |     ngx_http_variable_value_t *v, ngx_str_t *var, ngx_list_part_t *part,
#11 12.95       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
#11 12.95 extra/zip-1.23.0/ngx_http_zip_module.c:204:17: error: passing argument 3 of 'ngx_http_variable_unknown_header' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95   204 |                 &r->upstream->headers_in.headers.part, sizeof("upstream_http_") - 1);
#11 12.95       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                 |
#11 12.95       |                 ngx_list_part_t * {aka struct ngx_list_part_s *}
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.c:9:
#11 12.95 src/http/ngx_http_variables.h:61:46: note: expected 'ngx_str_t *' {aka 'struct <anonymous> *'} but argument is of type 'ngx_list_part_t *' {aka 'struct ngx_list_part_s *'}
#11 12.95    61 |     ngx_http_variable_value_t *v, ngx_str_t *var, ngx_list_part_t *part,
#11 12.95       |                                   ~~~~~~~~~~~^~~
#11 12.95 extra/zip-1.23.0/ngx_http_zip_module.c:204:56: error: passing argument 4 of 'ngx_http_variable_unknown_header' makes pointer from integer without a cast [-Werror=int-conversion]
#11 12.95   204 |                 &r->upstream->headers_in.headers.part, sizeof("upstream_http_") - 1);
#11 12.95       |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                                                        |
#11 12.95       |                                                        long unsigned int
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.c:9:
#11 12.95 src/http/ngx_http_variables.h:61:68: note: expected 'ngx_list_part_t *' {aka 'struct ngx_list_part_s *'} but argument is of type 'long unsigned int'
#11 12.95    61 |     ngx_http_variable_value_t *v, ngx_str_t *var, ngx_list_part_t *part,
#11 12.95       |                                                   ~~~~~~~~~~~~~~~~~^~~~
#11 12.95 extra/zip-1.23.0/ngx_http_zip_module.c:202:34: error: too few arguments to function 'ngx_http_variable_unknown_header'
#11 12.95   202 |         variable_header_status = ngx_http_variable_unknown_header(vv,
#11 12.95       |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.c:9:
#11 12.95 src/http/ngx_http_variables.h:60:11: note: declared here
#11 12.95    60 | ngx_int_t ngx_http_variable_unknown_header(ngx_http_request_t *r,
#11 12.95       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95 extra/zip-1.23.0/ngx_http_zip_module.c:206:67: error: passing argument 1 of 'ngx_http_variable_unknown_header' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95   206 |         variable_header_status = ngx_http_variable_unknown_header(vv,
#11 12.95       |                                                                   ^~
#11 12.95       |                                                                   |
#11 12.95       |                                                                   ngx_http_variable_value_t * {aka struct <anonymous> *}
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.c:9:
#11 12.95 src/http/ngx_http_variables.h:60:64: note: expected 'ngx_http_request_t *' {aka 'struct ngx_http_request_s *'} but argument is of type 'ngx_http_variable_value_t *' {aka 'struct <anonymous> *'}
#11 12.95    60 | ngx_int_t ngx_http_variable_unknown_header(ngx_http_request_t *r,
#11 12.95       |                                            ~~~~~~~~~~~~~~~~~~~~^
#11 12.95 extra/zip-1.23.0/ngx_http_zip_module.c:207:17: error: passing argument 2 of 'ngx_http_variable_unknown_header' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95   207 |                 &ngx_http_zip_header_variable_name,
#11 12.95       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                 |
#11 12.95       |                 ngx_str_t * {aka struct <anonymous> *}
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.c:9:
#11 12.95 src/http/ngx_http_variables.h:61:32: note: expected 'ngx_http_variable_value_t *' {aka 'struct <anonymous> *'} but argument is of type 'ngx_str_t *' {aka 'struct <anonymous> *'}
#11 12.95    61 |     ngx_http_variable_value_t *v, ngx_str_t *var, ngx_list_part_t *part,
#11 12.95       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
#11 12.95 extra/zip-1.23.0/ngx_http_zip_module.c:208:17: error: passing argument 3 of 'ngx_http_variable_unknown_header' from incompatible pointer type [-Werror=incompatible-pointer-types]
#11 12.95   208 |                 &r->headers_out.headers.part, sizeof("upstream_http_") - 1);
#11 12.95       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                 |
#11 12.95       |                 ngx_list_part_t * {aka struct ngx_list_part_s *}
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.c:9:
#11 12.95 src/http/ngx_http_variables.h:61:46: note: expected 'ngx_str_t *' {aka 'struct <anonymous> *'} but argument is of type 'ngx_list_part_t *' {aka 'struct ngx_list_part_s *'}
#11 12.95    61 |     ngx_http_variable_value_t *v, ngx_str_t *var, ngx_list_part_t *part,
#11 12.95       |                                   ~~~~~~~~~~~^~~
#11 12.95 extra/zip-1.23.0/ngx_http_zip_module.c:208:47: error: passing argument 4 of 'ngx_http_variable_unknown_header' makes pointer from integer without a cast [-Werror=int-conversion]
#11 12.95   208 |                 &r->headers_out.headers.part, sizeof("upstream_http_") - 1);
#11 12.95       |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95       |                                               |
#11 12.95       |                                               long unsigned int
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.c:9:
#11 12.95 src/http/ngx_http_variables.h:61:68: note: expected 'ngx_list_part_t *' {aka 'struct ngx_list_part_s *'} but argument is of type 'long unsigned int'
#11 12.95    61 |     ngx_http_variable_value_t *v, ngx_str_t *var, ngx_list_part_t *part,
#11 12.95       |                                                   ~~~~~~~~~~~~~~~~~^~~~
#11 12.95 extra/zip-1.23.0/ngx_http_zip_module.c:206:34: error: too few arguments to function 'ngx_http_variable_unknown_header'
#11 12.95   206 |         variable_header_status = ngx_http_variable_unknown_header(vv,
#11 12.95       |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.95 In file included from src/http/ngx_http.h:30,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.h:5,
#11 12.95                  from extra/zip-1.23.0/ngx_http_zip_module.c:9:
#11 12.95 src/http/ngx_http_variables.h:60:11: note: declared here
#11 12.95    60 | ngx_int_t ngx_http_variable_unknown_header(ngx_http_request_t *r,
#11 12.95       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#11 12.96 cc1: all warnings being treated as errors
#11 12.96 cc1: all warnings being treated as errors
#11 12.96 cc1: all warnings being treated as errors
#11 12.96 make[2]: *** [objs/Makefile:1881: objs/addon/zip-1.23.0/ngx_http_zip_headers.o] Error 1
#11 12.96 make[2]: *** Waiting for unfinished jobs....
#11 12.97 make[2]: *** [objs/Makefile:1860: objs/addon/zip-1.23.0/ngx_http_zip_module.o] Error 1
#11 12.97 make[2]: *** [objs/Makefile:1874: objs/addon/zip-1.23.0/ngx_http_zip_file.o] Error 1
#11 13.06 make[2]: Leaving directory '/build/pkg-oss/debian/debuild-module-zip/nginx-1.23.0/debian/build-nginx'
#11 13.06 make[1]: *** [Makefile:16: modules] Error 2
#11 13.06 make[1]: Leaving directory '/build/pkg-oss/debian/debuild-module-zip/nginx-1.23.0/debian/build-nginx'
#11 13.06 make: *** [debian/rules:72: build-arch.nginx] Error 2
#11 13.06 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2