error: ‘OPENSSL_config’ is deprecated


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

nginx配置时正常 但make时报错

 

nginx 版本和openssl不匹配


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM