nginx1.17.4中编译openssl报错 5C

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);

2个回答

COMP_METHOD 没有定义吧? $COMP_METHOD

typedef struct comp_method_st

{

    int type;

    const char *name;

    int (*init)(COMP_CTX *ctx);

    void (*finish)(COMP_CTX *ctx);

int (*compress)(COMP_CTX *ctx,unsigned char *out, unsigned int olen, unsigned char *in, unsigned int ilen);

int (*expand)(COMP_CTX *ctx,unsigned char *out, unsigned int olen, unsigned char *in, unsigned int ilen);

    long (*ctrl)(void);

    long (*callback_ctrl)(void);

} COMP_METHOD;

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐