openresty-1.9.15.1
./configure --prefix=/home/s/apps/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-cc-opt="-I/path/to/ssl/include" --with-ld-opt="-L/path/to/ssl/lib"
src/event/ngx_event_openssl.c: 在函数‘ngx_ssl_dhparam’中:
src/event/ngx_event_openssl.c:954:11: 错误:提领指向不完全类型的指针
dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL);
^
src/event/ngx_event_openssl.c:955:11: 错误:提领指向不完全类型的指针
dh->g = BN_bin2bn(dh1024_g, sizeof(dh1024_g), NULL);
^
src/event/ngx_event_openssl.c:957:15: 错误:提领指向不完全类型的指针
if (dh->p == NULL || dh->g == NULL) {
^
src/event/ngx_event_openssl.c:957:32: 错误:提领指向不完全类型的指针
if (dh->p == NULL || dh->g == NULL) {
^
src/event/ngx_event_openssl.c: 在函数‘ngx_ssl_connection_error’中:
src/event/ngx_event_openssl.c:1958:21: 错误:‘SSL_R_NO_CIPHERS_PASSED’未声明(在此函数内第一次使用)
|| n == SSL_R_NO_CIPHERS_PASSED /* 182 */
^
src/event/ngx_event_openssl.c:1958:21: 附注:每个未声明的标识符在其出现的函数内只报告一次
make[2]: *** [objs/src/event/ngx_event_openssl.o] 错误 1
下载nginx-1.9.15编译后发现出现同样的错误,应该是nginx-1.9.15和openssl-1.1.0b兼容性有问题。
@春哥 有计划跟进下nginx稳定版本nginx-1.10.2么,我看nginx-1.10.2中做了很多兼容性的修改,而且使用上边的参数编译没有问题。或者有什么升级的教程或者文档之类的,自己动手也可以。