cloudflare / sslconfig

Cloudflare's Internet facing SSL configuration
BSD 3-Clause "New" or "Revised" License
1.3k stars 132 forks source link

nginx__http2_spdy.patch fail on 1.11.5 #49

Closed stylersnico closed 7 years ago

stylersnico commented 7 years ago

Hi,

nginx__http2_spdy.patch fail on Nginx 1.11.5 (with OpenSSL 1.1.0).

Entering directory '/usr/src/nginx-1.11.5'
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/src/openssl-1.1.0b/.openssl/include -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/v2 -I src/http \
 -o objs/src/http/ngx_http.o \
 src/http/ngx_http.c
In file included from src/http/ngx_http.h:32:0,
                 from src/http/ngx_http.c:10:
src/http/ngx_http_request.h:426:5: error: unknown type name 'ngx_http_spdy_stream_t'
     ngx_http_spdy_stream_t           *spdy_stream;
     ^
src/http/ngx_http.c: In function 'ngx_http_add_addresses':
src/http/ngx_http.c:1241:21: error: 'ngx_http_listen_opt_t' has no member named 'spdy'
         spdy = lsopt->spdy || addr[i].opt.spdy;
                     ^
src/http/ngx_http.c:1241:42: error: 'ngx_http_listen_opt_t' has no member named 'spdy'
         spdy = lsopt->spdy || addr[i].opt.spdy;
                                          ^
src/http/ngx_http.c:1278:20: error: 'ngx_http_listen_opt_t' has no member named 'spdy'
         addr[i].opt.spdy = spdy;
                    ^
src/http/ngx_http.c: In function 'ngx_http_add_addrs':
src/http/ngx_http.c:1829:22: error: 'ngx_http_addr_conf_t' has no member named 'spdy'
         addrs[i].conf.spdy = addr[i].opt.spdy;
                      ^
src/http/ngx_http.c:1829:41: error: 'ngx_http_listen_opt_t' has no member named 'spdy'
         addrs[i].conf.spdy = addr[i].opt.spdy;
                                         ^
src/http/ngx_http.c: In function 'ngx_http_add_addrs6':
src/http/ngx_http.c:1897:23: error: 'ngx_http_addr_conf_t' has no member named 'spdy'
         addrs6[i].conf.spdy = addr[i].opt.spdy;
                       ^
src/http/ngx_http.c:1897:42: error: 'ngx_http_listen_opt_t' has no member named 'spdy'
         addrs6[i].conf.spdy = addr[i].opt.spdy;
                                          ^
objs/Makefile:941: recipe for target 'objs/src/http/ngx_http.o' failed
make[1]: *** [objs/src/http/ngx_http.o] Error 1
make[1]: Leaving directory '/usr/src/nginx-1.11.5'
Makefile:11: recipe for target 'install' failed
make: *** [install] Error 2

Any idea?

Thanks..

kirillDanshin commented 7 years ago

you can try my automated build script that also apply this patches: https://github.com/kirillDanshin/build-nginx

stylersnico commented 7 years ago

@kirillDanshin That doesn't help in resolving the described problem.

kirillDanshin commented 7 years ago

@stylersnico it just in case if you need it ASAP.

woosungchoi commented 7 years ago

https://github.com/cujanovic/nginx-http2-spdy-patch

This patch will help you.

stylersnico commented 7 years ago

@Wsget I will try when I have time and let you know :)

Thanks 👍

stylersnico commented 7 years ago

Simply dropping spdy after all, not ok for production purpose.