wdaike / ngx_upstream_jdomain

An asynchronous domain name resolve module for nginx upstream
78 stars 32 forks source link

ngx_upstream_jdomain support openssl1.1.1c? #17

Closed RyosukeNozato closed 5 years ago

RyosukeNozato commented 5 years ago

ngx_upstream_jdomain support openssl1.1.1c? versions: ・nginx 1.16.0 ・openssl 1.1.1c When running the make command, an error appears in ngx_http_upstream_jdomain.c :

usr/local/src/ngx_upstream_jdomain/ngx_http_upstream_jdomain.c: In function ‘ngx_http_upstream_set_jdomain_peer_session’:
/usr/local/src/ngx_upstream_jdomain/ngx_http_upstream_jdomain.c:521:42: error: dereferencing pointer to incomplete type
    ssl_session, ssl_session ? ssl_session->references : 0);
                                          ^
src/core/ngx_log.h:93:48: note: in definition of macro ‘ngx_log_debug’
         ngx_log_error_core(NGX_LOG_DEBUG, log, __VA_ARGS__)
                                                ^
/usr/local/src/ngx_upstream_jdomain/ngx_http_upstream_jdomain.c:519:2: note: in expansion of macro ‘ngx_log_debug2’
  ngx_log_debug2(NGX_LOG_DEBUG_HTTP, pc->log, 0,
  ^
/usr/local/src/ngx_upstream_jdomain/ngx_http_upstream_jdomain.c: In function ‘ngx_http_upstream_save_jdomain_peer_session’:
/usr/local/src/ngx_upstream_jdomain/ngx_http_upstream_jdomain.c:543:51: error: dereferencing pointer to incomplete type
    "save session: %p:%d", ssl_session, ssl_session->references);
                                                   ^
src/core/ngx_log.h:93:48: note: in definition of macro ‘ngx_log_debug’
         ngx_log_error_core(NGX_LOG_DEBUG, log, __VA_ARGS__)
                                                ^
/usr/local/src/ngx_upstream_jdomain/ngx_http_upstream_jdomain.c:542:2: note: in expansion of macro ‘ngx_log_debug2’
  ngx_log_debug2(NGX_LOG_DEBUG_HTTP, pc->log, 0,
  ^
/usr/local/src/ngx_upstream_jdomain/ngx_http_upstream_jdomain.c:555:37: error: dereferencing pointer to incomplete type
     old_ssl_session, old_ssl_session->references);
                                     ^
src/core/ngx_log.h:93:48: note: in definition of macro ‘ngx_log_debug’
         ngx_log_error_core(NGX_LOG_DEBUG, log, __VA_ARGS__)