impactCn commented on issue #1688:
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1688#issuecomment-729485697


   hi, I also encountered the same problem. When I built nginx with pagespeed + 
quic, the build was unsuccessful.
   nginx 1.19.4.
   pageSpeed latest-stable
   
   **configuration**
   
   
   ./configure --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx 
--modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf 
--error-log-path=/var/log/nginx/error.log 
--http-log-path=/var/log/nginx/access.log 
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body 
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy 
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi 
--http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi 
--http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/run/nginx.pid 
--lock-path=/run/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio 
--with-ipv6 --with-http_ssl_module --with-http_v2_module 
--with-http_realip_module --with-stream_ssl_preread_module 
--with-http_addition_module --with-http_xslt_module=dynamic 
--with-http_image_filter_module=dynamic --with-http_sub_module 
--with-http_dav_module --with-http_flv_module --with-http_mp4_module 
--with-http_gunzip_module --with-http_gzip_static_module 
--with-http_random_index_module --with-http_secu
 re_link_module --with-http_degradation_module --with-http_slice_module 
--with-http_stub_status_module --with-http_perl_module=dynamic 
--with-http_auth_request_module --with-mail=dynamic --with-mail_ssl_module 
--with-pcre --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module 
--with-google_perftools_module --with-debug --with-cc-opt='-O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
--param=ssp-buffer-size=4 -grecord-gcc-switches 
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' 
--with-ld-opt='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld 
-Wl,-E' --add-module=/usr/local/pagespeed-ngx 
--add-module=/usr/local/ngx_brotli --with-openssl=../quiche/deps/boringssl 
--with-http_v3_module --with-quiche=../quiche
   
   **error**
   
   /pagespeed-ngx/psol/include/url -I 
/usr/local/ngx_brotli/deps/brotli/c/include -I src/mail -I src/stream \
        -o objs/addon/src/ngx_base_fetch.o \
        /usr/local/pagespeed-ngx/src/ngx_base_fetch.cc
   In file included from 
../quiche/deps/boringssl/.openssl/include/openssl/ex_data.h:114,
                    from 
../quiche/deps/boringssl/.openssl/include/openssl/bio.h:66,
                    from 
../quiche/deps/boringssl/.openssl/include/openssl/ssl.h:147,
                    from src/event/ngx_event_openssl.h:15,
                    from src/core/ngx_core.h:84,
                    from /usr/local/pagespeed-ngx/src/log_message_handler.h:24,
                    from /usr/local/pagespeed-ngx/src/log_message_handler.cc:21:
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h: In function ‘int 
sk_OPENSSL_STRING_call_cmp_func(stack_cmp_func, const void**, const void**)’:
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h:298:41: error: 
type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
     298 |     constptrtype a_ptr = (constptrtype)*a;                           
          \
         |                                         ^
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h:422:3: note: in 
expansion of macro ‘BORINGSSL_DEFINE_STACK_OF_IMPL’
     422 |   BORINGSSL_DEFINE_STACK_OF_IMPL(type, type, const type)
         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h:428:1: note: in 
expansion of macro ‘DEFINE_SPECIAL_STACK_OF’
     428 | DEFINE_SPECIAL_STACK_OF(OPENSSL_STRING)
         | ^~~~~~~~~~~~~~~~~~~~~~~
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h:299:41: error: 
type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
     299 |     constptrtype b_ptr = (constptrtype)*b;                           
          \
         |                                         ^
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h:422:3: note: in 
expansion of macro ‘BORINGSSL_DEFINE_STACK_OF_IMPL’
     422 |   BORINGSSL_DEFINE_STACK_OF_IMPL(type, type, const type)
         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h:428:1: note: in 
expansion of macro ‘DEFINE_SPECIAL_STACK_OF’
     428 | DEFINE_SPECIAL_STACK_OF(OPENSSL_STRING)
         | ^~~~~~~~~~~~~~~~~~~~~~~
   cc1plus: all warnings being treated as errors
   make[1]: *** [objs/addon/src/log_message_handler.o] Error 1
   make[1]: *** Waiting for unfinished jobs....
   In file included from 
../quiche/deps/boringssl/.openssl/include/openssl/ex_data.h:114,
                    from 
../quiche/deps/boringssl/.openssl/include/openssl/bio.h:66,
                    from 
../quiche/deps/boringssl/.openssl/include/openssl/ssl.h:147,
                    from src/event/ngx_event_openssl.h:15,
                    from src/core/ngx_core.h:84,
                    from src/http/ngx_http.h:13,
                    from /usr/local/pagespeed-ngx/src/ngx_pagespeed.h:33,
                    from /usr/local/pagespeed-ngx/src/ngx_base_fetch.cc:19:
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h: In function ‘int 
sk_OPENSSL_STRING_call_cmp_func(stack_cmp_func, const void**, const void**)’:
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h:298:41: error: 
type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
     298 |     constptrtype a_ptr = (constptrtype)*a;                           
          \
         |                                         ^
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h:422:3: note: in 
expansion of macro ‘BORINGSSL_DEFINE_STACK_OF_IMPL’
     422 |   BORINGSSL_DEFINE_STACK_OF_IMPL(type, type, const type)
         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h:428:1: note: in 
expansion of macro ‘DEFINE_SPECIAL_STACK_OF’
     428 | DEFINE_SPECIAL_STACK_OF(OPENSSL_STRING)
         | ^~~~~~~~~~~~~~~~~~~~~~~
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h:299:41: error: 
type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
     299 |     constptrtype b_ptr = (constptrtype)*b;                           
          \
         |                                         ^
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h:422:3: note: in 
expansion of macro ‘BORINGSSL_DEFINE_STACK_OF_IMPL’
     422 |   BORINGSSL_DEFINE_STACK_OF_IMPL(type, type, const type)
         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ../quiche/deps/boringssl/.openssl/include/openssl/stack.h:428:1: note: in 
expansion of macro ‘DEFINE_SPECIAL_STACK_OF’
     428 | DEFINE_SPECIAL_STACK_OF(OPENSSL_STRING)
         | ^~~~~~~~~~~~~~~~~~~~~~~
   cc1plus: all warnings being treated as errors
   make[1]: *** [objs/addon/src/ngx_base_fetch.o] Error 1
   
   


----------------------------------------------------------------
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.

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


Reply via email to