目前位置: 首頁 > boringssl
  • Nginx 編譯 BoringSSL 失敗 BIO_get_mem_data [passing argument 2]

    這幾天在編譯 Nginx 1.11.7 with BoringSSL 的時候一直鬼打牆,屢屢編譯不成功在 make 的時候出現錯誤訊息

    src/event/ngx_event_openssl.c: In function ‘ngx_ssl_parse_time’:

    src/event/ngx_event_openssl.c:4072:5: error: passing argument 2 of ‘BIO_get_mem_data’ from incompatible pointer type [-Werror]

         len = BIO_get_mem_data(bio, &value);

         ^

    In file included from /tmp/nginxauto-28396-tmp/boringssl/.openssl/include/openssl/ssl.h:147:0,

                     from src/event/ngx_event_openssl.h:15,

                     from src/core/ngx_core.h:82,

                     from src/event/ngx_event_openssl.c:9:

    /tmp/nginxauto-28396-tmp/boringssl/.openssl/include/openssl/bio.h:385:21: note: expected ‘char **’ but argument is of type ‘u_char **

    OPENSSL_EXPORT long BIO_get_mem_data(BIO *bio, char **contents);

                         ^

    cc1: all warnings being treated as errors

    make[1]: *** [objs/src/event/ngx_event_openssl.o] Error 1

    make[1]: Leaving directory `/tmp/nginxauto-28396-tmp/nginx-1.11.7′

    make: *** [build] Error 2

    閱讀全文

    作者:shazi7804 | 分类:Nginx | 標籤:, ,