nginx1.17.4中编译openssl报错
file included from /usr/include/openssl/ssl.h:149:0,
from src/event/ngx_event_openssl.h:15,
from src/core/ngx_core.h:83,
from src/core/nginx.c:9:
/usr/include/openssl/comp.h:36:5: 错误:未知的类型名‘COMP_METHOD’
COMP_METHOD *meth;
^
/usr/include/openssl/comp.h:44:24: 错误:未知的类型名‘COMP_METHOD’
COMP_CTX *COMP_CTX_new(COMP_METHOD *meth);
^
/usr/include/openssl/comp.h:50:1: 错误:未知的类型名‘COMP_METHOD’
COMP_METHOD *COMP_rle(void);
^
/usr/include/openssl/comp.h:51:1: 错误:未知的类型名‘COMP_METHOD’
COMP_METHOD *COMP_zlib(void);
^
In file included from src/event/ngx_event_openssl.h:15:0,
from src/core/ngx_core.h:83,
from src/core/nginx.c:9:
/usr/include/openssl/ssl.h:879:5: 错误:未知的类型名‘COMP_METHOD’
COMP_METHOD *method;
^
In file included from /usr/include/openssl/ssl.h:1655:0,
from src/event/ngx_event_openssl.h:15,
from src/core/ngx_core.h:83,
from src/core/nginx.c:9:
/usr/include/openssl/dtls1.h:257:35: 错误:字段‘recordinfo’的类型不完全
struct bio_dgram_sctp_rcvinfo recordinfo;
^
In file included from src/event/ngx_event_openssl.h:15:0,
from src/core/ngx_core.h:83,
from src/core/nginx.c:9:
/usr/include/openssl/ssl.h:2468:1: 错误:未知的类型名‘COMP_METHOD’
const COMP_METHOD *SSL_get_current_compression(SSL *s);
^
/usr/include/openssl/ssl.h:2469:1: 错误:未知的类型名‘COMP_METHOD’
const COMP_METHOD *SSL_get_current_expansion(SSL *s);
^
/usr/include/openssl/ssl.h:2470:1: 错误:未知的类型名‘COMP_METHOD’
const char *SSL_COMP_get_name(const COMP_METHOD *comp);
^
/usr/include/openssl/ssl.h:2475:45: 错误:未知的类型名‘COMP_METHOD’
int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm);