You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2022/08/10 05:51:29 UTC

[GitHub] [incubator-pagespeed-ngx] Kontr3X opened a new issue, #1757: Compilation fails with Nginx 1.23

Kontr3X opened a new issue, #1757:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1757

   ```
   ./incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/third_party/aprutil/gen/arch/linux/x64/include -I /root/sources/./incubator-pagespeed-ngx-1.13.35.2-stable/psol/include/url -I src/mail \
           -o objs/addon/src/ngx_pagespeed.o \
           /root/sources/./incubator-pagespeed-ngx-1.13.35.2-stable/src/ngx_pagespeed.cc
   /root/sources/./incubator-pagespeed-ngx-1.13.35.2-stable/src/ngx_pagespeed.cc: In function ‘ngx_int_t net_instaweb::{anonymous}::ps_set_cache_control(ngx_http_request_t*, char*)’:
   /root/sources/./incubator-pagespeed-ngx-1.13.35.2-stable/src/ngx_pagespeed.cc:407:36: error: request for member ‘elts’ in ‘r->ngx_http_request_s::headers_out.ngx_http_headers_out_t::cache_control’, which is of pointer type ‘ngx_table_elt_t*’ {aka ‘ngx_table_elt_s*’} (maybe you meant to use ‘->’ ?)
     407 |   if (r->headers_out.cache_control.elts == NULL) {
         |                                    ^~~~
   /root/sources/./incubator-pagespeed-ngx-1.13.35.2-stable/src/ngx_pagespeed.cc:408:35: error: cannot convert ‘ngx_table_elt_t**’ {aka ‘ngx_table_elt_s**’} to ‘ngx_array_t*’
     408 |     ngx_int_t rc = ngx_array_init(&r->headers_out.cache_control, r->pool,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                   |
         |                                   ngx_table_elt_t** {aka ngx_table_elt_s**}
   In file included from src/core/ngx_core.h:65,
                    from src/http/ngx_http.h:13,
                    from /root/sources/./incubator-pagespeed-ngx-1.13.35.2-stable/src/ngx_pagespeed.h:33,
                    from /root/sources/./incubator-pagespeed-ngx-1.13.35.2-stable/src/ngx_pagespeed.cc:26:
   src/core/ngx_array.h:32:29: note:   initializing argument 1 of ‘ngx_int_t ngx_array_init(ngx_array_t*, ngx_pool_t*, ngx_uint_t, size_t)’
      32 | ngx_array_init(ngx_array_t *array, ngx_pool_t *pool, ngx_uint_t n, size_t size)
         |                ~~~~~~~~~~~~~^~~~~
   /root/sources/./incubator-pagespeed-ngx-1.13.35.2-stable/src/ngx_pagespeed.cc:415:22: error: cannot convert ‘ngx_table_elt_t**’ {aka ‘ngx_table_elt_s**’} to ‘ngx_array_t*’
     415 |       ngx_array_push(&r->headers_out.cache_control));
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                      |
         |                      ngx_table_elt_t** {aka ngx_table_elt_s**}
   In file included from src/core/ngx_core.h:65,
                    from src/http/ngx_http.h:13,
                    from /root/sources/./incubator-pagespeed-ngx-1.13.35.2-stable/src/ngx_pagespeed.h:33,
                    from /root/sources/./incubator-pagespeed-ngx-1.13.35.2-stable/src/ngx_pagespeed.cc:26:
   src/core/ngx_array.h:27:35: note:   initializing argument 1 of ‘void* ngx_array_push(ngx_array_t*)’
      27 | void *ngx_array_push(ngx_array_t *a);
         |                      ~~~~~~~~~~~~~^
   /root/sources/./incubator-pagespeed-ngx-1.13.35.2-stable/src/ngx_pagespeed.cc: In function ‘bool net_instaweb::{anonymous}::ps_get_cache_control(ngx_http_request_t*, GoogleString*)’:
   /root/sources/./incubator-pagespeed-ngx-1.13.35.2-stable/src/ngx_pagespeed.cc:439:74: error: request for member ‘elts’ in ‘r->ngx_http_request_s::headers_out.ngx_http_headers_out_t::cache_control’, which is of pointer type ‘ngx_table_elt_t*’ {aka ‘ngx_table_elt_s*’} (maybe you meant to use ‘->’ ?)
     439 |   auto ccp = static_cast<ngx_table_elt_t**>(r->headers_out.cache_control.elts);
         |                                                                          ^~~~
   /root/sources/./incubator-pagespeed-ngx-1.13.35.2-stable/src/ngx_pagespeed.cc:444:59: error: request for member ‘nelts’ in ‘r->ngx_http_request_s::headers_out.ngx_http_headers_out_t::cache_control’, which is of pointer type ‘ngx_table_elt_t*’ {aka ‘ngx_table_elt_s*’} (maybe you meant to use ‘->’ ?)
     444 |   for (ngx_uint_t i = 0; i < r->headers_out.cache_control.nelts; i++) {
         |                                                           ^~~~~
   make[1]: *** [objs/Makefile:1722: objs/addon/src/ngx_pagespeed.o] Error 1
   make[1]: Leaving directory '/root/sources/nginx-1.23.1'
   make: *** [Makefile:10: build] Error 2
   
   ```
   
   NGINX Version: 1.23.1
   Debian GNU/Linux 11 (bullseye)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pagespeed.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-pagespeed-ngx] oschaaf commented on issue #1757: Compilation fails with Nginx 1.23

Posted by GitBox <gi...@apache.org>.
oschaaf commented on issue #1757:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1757#issuecomment-1211218813

   Closing as a duplicate of https://github.com/apache/incubator-pagespeed-ngx/issues/1749


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pagespeed.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-pagespeed-ngx] oschaaf closed issue #1757: Compilation fails with Nginx 1.23

Posted by GitBox <gi...@apache.org>.
oschaaf closed issue #1757: Compilation fails with Nginx 1.23
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1757


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pagespeed.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org