grahamedgecombe / nginx-ct

Certificate Transparency module for nginx.
https://grahamedgecombe.com/projects/nginx-ct
ISC License
175 stars 27 forks source link

Can't built nginx 1.11.2 #10

Closed p1ratrulezzz closed 8 years ago

p1ratrulezzz commented 8 years ago

Got error about "&ngx_stream_ssl_ct_merge_srv_conf" that it is not correct reference

static ngx_stream_module_t ngx_stream_ssl_ct_module_ctx = {
  NULL,                             /* postconfiguration */

  NULL,                             /* create main configuration */
  NULL,                             /* init main configuration */

  &ngx_ssl_ct_create_srv_conf,      /* create server configuration */
  &ngx_stream_ssl_ct_merge_srv_conf /* merge server configuration */
};
p1ratrulezzz commented 8 years ago
/root/build/nginx-ct/ngx_stream_ssl_ct_module.c:29:5: ошибка: несовместимый тип указателя в инициализации [-Werror]
  &ngx_ssl_ct_create_srv_conf,      /* create server configuration */
 ^
 /root/build/nginx-ct/ngx_stream_ssl_ct_module.c:29:5: ошибка: (где-то рядом с инициализацией для «ngx_stream_ssl_ct_module_ctx.init_main_conf») [-Werror]
/root/build/nginx-ct/ngx_stream_ssl_ct_module.c:31:1: ошибка: несовместимый тип указателя в инициализации [-Werror]
 };
 ^
/root/build/nginx-ct/ngx_stream_ssl_ct_module.c:31:1: ошибка: (где-то рядом с инициализацией для «ngx_stream_ssl_ct_module_ctx.create_srv_conf») [-Werror]
/root/build/nginx-ct/ngx_stream_ssl_ct_module.c:31:1: ошибка: missing initializer for field «merge_srv_conf» of «ngx_stream_module_t» [-Werror=missing-field-initializers]

`

alexyangjie commented 8 years ago

I am having the same issue.

grahamedgecombe commented 8 years ago

a25fde406ff16f4f7d0e8fda1ad40d8412ef6d95 should fix this, are you able to confirm?

alexyangjie commented 8 years ago

Yes the issue has been fixed. Thank you very much.

p1ratrulezzz commented 8 years ago

Tnx, confirmed: just built nginx with ct module without any problems