Kong / openresty-patches

Moved to https://github.com/Kong/kong-build-tools
Apache License 2.0
14 stars 6 forks source link

1.15.8.1 #56

Open rural-hermit opened 5 years ago

rural-hermit commented 5 years ago

install before ,i perform
yum -y install zlib openssl openssl-devel pcre pcre-devel gcc curl libyaml-devel unzip

my system is CentOS Linux release 7.2.1511 (Core) When I compile openresty, what I am doing is ./configure \ --with-pcre-jit \ --with-http_ssl_module \ --with-http_realip_module \ --with-http_stub_status_module \ --with-http_v2_module and ,When I perform gmake openresty after patching openresty patch 1.15.8.1 , I get the following error. Can someone help me?

err: src/core/nginx.c In file included from src/os/unix/ngx_linux_config.h:63:0, from src/core/ngx_config.h:26, from src/core/nginx.c:8: /usr/include/linux/in6.h:30:8: 错误:‘struct in6_addr’重定义 struct in6_addr { ^ In file included from /usr/include/netdb.h:27:0, from src/os/unix/ngx_linux_config.h:46, from src/core/ngx_config.h:26, from src/core/nginx.c:8: /usr/include/netinet/in.h:197:8: 附注:原先在这里定义 struct in6_addr ^ In file included from src/os/unix/ngx_linux_config.h:63:0, from src/core/ngx_config.h:26, from src/core/nginx.c:8: /usr/include/linux/in6.h:41:8: 错误:‘struct sockaddr_in6’重定义 struct sockaddr_in6 { ^ In file included from src/os/unix/ngx_linux_config.h:44:0, from src/core/ngx_config.h:26, from src/core/nginx.c:8: /usr/include/sys/socket.h:91:17: 附注:原先在这里定义 typedef union { __SOCKADDR_ALLTYPES ^ In file included from src/os/unix/ngx_linux_config.h:63:0, from src/core/ngx_config.h:26, from src/core/nginx.c:8: /usr/include/linux/in6.h:49:8: 错误:‘struct ipv6_mreq’重定义 struct ipv6_mreq { ^ In file included from /usr/include/netdb.h:27:0, from src/os/unix/ngx_linux_config.h:46, from src/core/ngx_config.h:26, from src/core/nginx.c:8: /usr/include/netinet/in.h:274:8: 附注:原先在这里定义 struct ipv6_mreq ^