如何使用启用的 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 (将#修改为@)