2 huruiyi huruiyi 于 2017.08.31 14:15 提问

安装 tengine异常,求解

请教大神!!! 安装tengine-2.2.0 异常

src/event/ngx_event_openssl.c: In function ‘ngx_ssl_init’:
src/event/ngx_event_openssl.c:112:5: error: ‘OPENSSL_config’ is deprecated [-Werror=deprecated-declarations]
OPENSSL_config(NULL);
^
In file included from /usr/local/include/openssl/ct.h:13:0,
from /usr/local/include/openssl/ssl.h:61,
from src/event/ngx_event_openssl.h:15,
from src/core/ngx_core.h:85,
from src/event/ngx_event_openssl.c:9:
/usr/local/include/openssl/conf.h:92:1: note: declared here
DEPRECATEDIN_1_1_0(void OPENSSL_config(const char config_name))
^
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_rsa512_key_callback’:
src/event/ngx_event_openssl.c:753:9: error: ‘RSA_generate_key’ is deprecated [-Werror=deprecated-declarations]
key = RSA_generate_key(512, RSA_F4, NULL, NULL);
^
In file included from /usr/local/include/openssl/rsa.h:13:0,
from /usr/local/include/openssl/x509.h:31,
from /usr/local/include/openssl/ssl.h:50,
from src/event/ngx_event_openssl.h:15,
from src/core/ngx_core.h:85,
from src/event/ngx_event_openssl.c:9:
/usr/local/include/openssl/rsa.h:193:1: note: declared here
DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
^
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_dhparam’:
src/event/ngx_event_openssl.c:943:11: error: dereferencing pointer to incomplete type ‘DH {aka struct dh_st}’
dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL);
^
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_handshake’:
src/event/ngx_event_openssl.c:1166:31: error: dereferencing pointer to incomplete type ‘SSL {aka struct ssl_st}’
if (c->ssl->connection->s3) {
^
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_connection_error’:
src/event/ngx_event_openssl.c:1928:21: error: ‘SSL_R_NO_CIPHERS_PASSED’ undeclared (first use in this function)
|| n == SSL_R_NO_CIPHERS_PASSED /
182 /
^
src/event/ngx_event_openssl.c:1928:21: note: each undeclared identifier is reported only once for each function it appears in
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_session_cache’:
src/event/ngx_event_openssl.c:2122:43: error: passing argument 2 of ‘SSL_CTX_sess_set_get_cb’ from incompatible pointer type [-Werror=incompatible-pointer-types]
SSL_CTX_sess_set_get_cb(ssl->ctx, ngx_ssl_get_cached_session);
^
In file included from src/event/ngx_event_openssl.h:15:0,
from src/core/ngx_core.h:85,
from src/event/ngx_event_openssl.c:9:
/usr/local/include/openssl/ssl.h:637:6: note: expected ‘SSL_SESSION * (
)(struct ssl_st , const unsigned char *, int, int *) {aka struct ssl_session_st * ()(struct ssl_st , const unsigned char *, int, int *)}’ but argument is of type ‘SSL_SESSION * ()(SSL , u_char *, int, int *) {aka struct ssl_session_st * ()(struct ssl_st , unsigned char *, int, int *)}’
void SSL_CTX_sess_set_get_cb(SSL_CTX *ctx,
^
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_session_id_context’:
src/event/ngx_event_openssl.c:2144:27: error: storage size of ‘md’ isn’t known
EVP_MD_CTX md;
^
src/event/ngx_event_openssl.c:2210:5: error: implicit declaration of function ‘EVP_MD_CTX_cleanup’ [-Werror=implicit-function-declaration]
EVP_MD_CTX_cleanup(&md);
^
src/event/ngx_event_openssl.c: In function ‘ngx_ssl_session_ticket_key_callback’:
src/event/ngx_event_openssl.c:2872:9: error: ‘RAND_pseudo_bytes’ is deprecated [-Werror=deprecated-declarations]
RAND_pseudo_bytes(iv, 16);
^
In file included from /usr/local/include/openssl/engine.h:19:0,
from src/event/ngx_event_openssl.h:22,
from src/core/ngx_core.h:85,
from src/event/ngx_event_openssl.c:9:
/usr/local/include/openssl/rand.h:47:1: note: declared here
DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
^
cc1: all warnings being treated as errors
objs/Makefile:827: recipe for target 'objs/src/event/ngx_event_openssl.o' failed
make[1]: *
* [objs/src/event/ngx_event_openssl.o] Error 1
make[1]: Leaving directory '/home/hvm/桌面/Lib/tengine-tengine-2.2.0'
Makefile:15: recipe for target 'install' failed
make: *** [install] Error 2

Csdn user default icon
上传中...
上传图片
插入图片