nginx配置时正常 但make时报错

时间:2016-12-10 15:25:47   收藏:0   阅读:9003
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
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!