微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何使用启用的 HTTP/3 (QUIC) 构建 HAProxy 2.4-dev5?

如何解决如何使用启用的 HTTP/3 (QUIC) 构建 HAProxy 2.4-dev5?

最近我发现 HAProxy 2.3 更高版本通过 this link 支持 HTTP/3 (QUIC)。

因此,我从 https://github.com/haproxy/haproxy 下载了 HAProxy 源代码 (v2.4-dev5)。 我尝试使用以下命令构建启用 HTTP/3 的 HAProxy:

$ make clean
$ make -j $(nproc) TARGET=linux-glibc USE_OPENSSL=1 USE_ZLIB=1 USE_PCRE=1 USE_SYstemD=1 USE_QUIC=1

但我收到以下构建错误

  CC      src/ev_poll.o
  CC      src/ev_epoll.o
  CC      src/ssl_sample.o
  CC      src/ssl_sock.o
In file included from include/haproxy/listener-t.h:39:0,from include/haproxy/connection-t.h:34,from include/haproxy/check-t.h:22,from include/haproxy/server-t.h:32,from include/haproxy/lb_map-t.h:26,from include/haproxy/backend-t.h:30,from include/haproxy/proxy-t.h:35,from include/haproxy/applet-t.h:31,from include/haproxy/obj_type.h:26,from src/ssl_sample.c:27:
include/haproxy/xprt_quic-t.h:519:30: error: field ‘level’ has incomplete type
  enum ssl_encryption_level_t level;
                              ^~~~~
In file included from include/haproxy/listener-t.h:39:0,from include/haproxy/action-t.h:25,from include/haproxy/stream.h:25,from include/haproxy/channel.h:30,from src/ssl_sock.c:51:
include/haproxy/xprt_quic-t.h:519:30: error: field ‘level’ has incomplete type
  enum ssl_encryption_level_t level;
                              ^~~~~
Makefile:920: recipe for target 'src/ssl_sample.o' Failed
make: *** [src/ssl_sample.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile:920: recipe for target 'src/ssl_sock.o' Failed
make: *** [src/ssl_sock.o] Error 1

任何建议都会很棒!谢谢。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。