首页 > 代码库 > nginx配置时正常 但make时报错
nginx配置时正常 但make时报错
cc1: warnings being treated as errors
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_init’:
src/event/ngx_event_openssl.c:112: error: ‘OPENSSL_config’ is deprecated (declared at /usr/local/src/nginx/openssl-1.1.0c/include/openssl/conf.h:92)
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_rsa512_key_callback’:
src/event/ngx_event_openssl.c:753: error: ‘RSA_generate_key’ is deprecated (declared at /usr/local/src/nginx/openssl-1.1.0c/include/openssl/rsa.h:193)
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_dhparam’:
src/event/ngx_event_openssl.c:943: error: dereferencing pointer to incomplete type
src/event/ngx_event_openssl.c:944: error: dereferencing pointer to incomplete type
src/event/ngx_event_openssl.c:946: error: dereferencing pointer to incomplete type
src/event/ngx_event_openssl.c:946: error: dereferencing pointer to incomplete type
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_connection_error’:
src/event/ngx_event_openssl.c:1917: error: ‘SSL_R_NO_CIPHERS_PASSED’ undeclared (first use in this function)
src/event/ngx_event_openssl.c:1917: error: (Each undeclared identifier is reported only once
src/event/ngx_event_openssl.c:1917: error: for each function it appears in.)
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_session_cache’:
src/event/ngx_event_openssl.c:2111: error: passing argument 2 of ‘SSL_CTX_sess_set_get_cb’ from incompatible pointer type
/usr/local/src/nginx/openssl-1.1.0c/include/openssl/ssl.h:618: note: expected ‘struct SSL_SESSION * (*)(struct ssl_st *, const unsigned char *, int, int *)’ but argument is of type ‘struct SSL_SESSION * (*)(struct SSL *, u_char *, int, int *)’
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_session_id_context’:
src/event/ngx_event_openssl.c:2133: error: storage size of ‘md’ isn’t known
src/event/ngx_event_openssl.c:2199: error: implicit declaration of function ‘EVP_MD_CTX_cleanup’
src/event/ngx_event_openssl.c:2133: error: unused variable ‘md’
make[1]: *** [objs/src/event/ngx_event_openssl.o] Error 1
make[1]: Leaving directory `/usr/local/src/nginx/nginx-1.9.9’
make: *** [build] Error 2
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_init’:
src/event/ngx_event_openssl.c:112: error: ‘OPENSSL_config’ is deprecated (declared at /usr/local/src/nginx/openssl-1.1.0c/include/openssl/conf.h:92)
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_rsa512_key_callback’:
src/event/ngx_event_openssl.c:753: error: ‘RSA_generate_key’ is deprecated (declared at /usr/local/src/nginx/openssl-1.1.0c/include/openssl/rsa.h:193)
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_dhparam’:
src/event/ngx_event_openssl.c:943: error: dereferencing pointer to incomplete type
src/event/ngx_event_openssl.c:944: error: dereferencing pointer to incomplete type
src/event/ngx_event_openssl.c:946: error: dereferencing pointer to incomplete type
src/event/ngx_event_openssl.c:946: error: dereferencing pointer to incomplete type
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_connection_error’:
src/event/ngx_event_openssl.c:1917: error: ‘SSL_R_NO_CIPHERS_PASSED’ undeclared (first use in this function)
src/event/ngx_event_openssl.c:1917: error: (Each undeclared identifier is reported only once
src/event/ngx_event_openssl.c:1917: error: for each function it appears in.)
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_session_cache’:
src/event/ngx_event_openssl.c:2111: error: passing argument 2 of ‘SSL_CTX_sess_set_get_cb’ from incompatible pointer type
/usr/local/src/nginx/openssl-1.1.0c/include/openssl/ssl.h:618: note: expected ‘struct SSL_SESSION * (*)(struct ssl_st *, const unsigned char *, int, int *)’ but argument is of type ‘struct SSL_SESSION * (*)(struct SSL *, u_char *, int, int *)’
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_session_id_context’:
src/event/ngx_event_openssl.c:2133: error: storage size of ‘md’ isn’t known
src/event/ngx_event_openssl.c:2199: error: implicit declaration of function ‘EVP_MD_CTX_cleanup’
src/event/ngx_event_openssl.c:2133: error: unused variable ‘md’
make[1]: *** [objs/src/event/ngx_event_openssl.o] Error 1
make[1]: Leaving directory `/usr/local/src/nginx/nginx-1.9.9’
make: *** [build] Error 2
nginx配置时正常 但make时报错
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。