openssl安装

依赖:安装 nginx 的 ssl 模块

系统:CentOS

报错:如下

处理:降为 openssl-1.0.1u.tar.gz    「  3.0.0 -> 1.1.1d -> 1.1.1g -> 1.0.1 」 

下载:https://www.openssl.org/source/old/

 

src/event/ngx_event_openssl.c:1884:42: error: dereferencing pointer to incomplete type

     ngx_memcpy(id, sess->session_id, sess->session_id_length);

                                          ^

src/core/ngx_string.h:102:59: note: in definition of macro 'ngx_memcpy'

#define ngx_memcpy(dst, src, n)   (void) memcpy(dst, src, n)

                                                           ^

src/event/ngx_event_openssl.c:1886:32: error: dereferencing pointer to incomplete type

     hash = ngx_crc32_short(sess->session_id, sess->session_id_length);

                                ^

src/event/ngx_event_openssl.c:1886:50: error: dereferencing pointer to incomplete type

     hash = ngx_crc32_short(sess->session_id, sess->session_id_length);

                                                  ^

src/event/ngx_event_openssl.c:1893:39: error: dereferencing pointer to incomplete type

     sess_id->node.data = (u_char) sess->session_id_length;

                                       ^

src/event/ngx_event_openssl.c: In function 'ngx_ssl_remove_session':

src/event/ngx_event_openssl.c:2059:14: error: dereferencing pointer to incomplete type

     id = sess->session_id;

              ^

src/event/ngx_event_openssl.c:2060:24: error: dereferencing pointer to incomplete type

     len = (size_t) sess->session_id_length;

                        ^

cc1: all warnings being treated as errors

make[1]: *** [objs/src/event/ngx_event_openssl.o] Error 1

make[1]: Leaving directory `/usr/local/src/nginx-1.4.2'

make: *** [build] Error 2

你可能感兴趣的:(nginx,linux)