cloudfoundry / haproxy-boshrelease

A BOSH release for haproxy (based on cf-release's haproxy job)
Apache License 2.0
37 stars 81 forks source link

Compilation error using ubuntu jammy stemcell (v1.18) #332

Closed julweber closed 2 years ago

julweber commented 2 years ago

Dear haproxy team,

we are getting a compilation error message using the latest jammy stemcell.

Here is the output:

 Error: Action Failed get_task: Task 0b78b9b6-35ba-49a5-6fd0-5a8c6c9c56b7 result: Compiling package haproxy: Running packaging script: Running packaging script: Command exited with 2; Truncated stdout: checking for equivalent simple type of off_t... 5 /* long */

checking for equivalent simple type of off64_t... 5 /* long */

checking for equivalent simple type of dev_t... 6 /* unsigned long */

checking for equivalent simple type of speed_t... 4 /* unsigned int */

checking for basic type of struct stat.st_ino... 6 /* unsigned long */

checking for basic type of struct stat.st_nlink... 6 /* unsigned long */

checking for basic type of struct stat.st_size... 5 /* long */

checking for basic type of struct stat.st_blksize... 5 /* long */

checking for basic type of struct stat.st_blocks... 5 /* long */

checking for basic type of struct stat64.st_dev... 6 /* unsigned long */

checking for basic type of struct stat64.st_ino... 6 /* unsigned long */

checking for basic type of struct stat64.st_nlink... 6 /* unsigned long */

checking for basic type of struct stat64.st_size... 5 /* long */

checking for basic type of struct stat64.st_blksize... 5 /* long */

checking for basic type of struct stat64.st_blocks... 5 /* long */

checking for basic type of struct timeval.tv_usec... 5 /* long */

checking for basic type of struct timespec.tv_nsec... 5 /* long */

checking for basic type of struct rlimit.rlim_max... 6 /* unsigned long */

checking for basic type of struct cmsghdr.cmsg_len... 6 /* unsigned long */

checking for /dev/ptmx... yes

checking for /proc... yes

checking for /proc/*/fd... yes

checking whether to include libwrap support... yes

checking for components of libwrap... configure: checked for tcpd.h... no

checking for hosts_allow_table... no

checking for declaration of environ... yes

checking for var environ... yes

configure: creating ./config.status

config.status: creating Makefile

config.status: creating config.h

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o socat.o socat.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xioinitialize.o xioinitialize.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xiohelp.o xiohelp.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xioparam.o xioparam.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xiodiag.o xiodiag.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xioopen.o xioopen.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xioopts.o xioopts.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xiosignal.o xiosignal.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xiosigchld.o xiosigchld.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xioread.o xioread.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xiowrite.o xiowrite.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xiolayer.o xiolayer.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xioshutdown.o xioshutdown.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xioclose.o xioclose.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xioexit.o xioexit.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-process.o xio-process.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-fd.o xio-fd.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-fdnum.o xio-fdnum.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-stdio.o xio-stdio.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-pipe.o xio-pipe.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-gopen.o xio-gopen.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-creat.o xio-creat.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-file.o xio-file.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-named.o xio-named.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-socket.o xio-socket.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-interface.o xio-interface.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-listen.o xio-listen.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-unix.o xio-unix.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-vsock.o xio-vsock.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-ip.o xio-ip.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-ip4.o xio-ip4.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-ip6.o xio-ip6.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-ipapp.o xio-ipapp.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-tcp.o xio-tcp.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-sctp.o xio-sctp.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-rawip.o xio-rawip.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-socks.o xio-socks.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-proxy.o xio-proxy.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-udp.o xio-udp.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-progcall.o xio-progcall.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-exec.o xio-exec.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-system.o xio-system.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-termios.o xio-termios.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-readline.o xio-readline.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-pty.o xio-pty.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-openssl.o xio-openssl.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-streams.o xio-streams.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-ascii.o xio-ascii.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xiolockfile.o xiolockfile.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-tcpwrap.o xio-tcpwrap.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-fs.o xio-fs.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-tun.o xio-tun.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o error.o error.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o dalan.o dalan.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o procan.o procan.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o procan-cdefs.o procan-cdefs.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o hostan.o hostan.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o fdname.o fdname.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o sysutils.o sysutils.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o utils.o utils.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o nestlex.o nestlex.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o vsnprintf_r.o vsnprintf_r.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o snprinterr.o snprinterr.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o filan.o filan.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o sycls.o sycls.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o sslcls.o sslcls.c

ar r libxio.a xioinitialize.o xiohelp.o xioparam.o xiodiag.o xioopen.o xioopts.o xiosignal.o xiosigchld.o xioread.o xiowrite.o xiolayer.o xioshutdown.o xioclose.o xioexit.o xio-process.o xio-fd.o xio-fdnum.o xio-stdio.o xio-pipe.o xio-gopen.o xio-creat.o xio-file.o xio-named.o xio-socket.o xio-interface.o xio-listen.o xio-unix.o xio-vsock.o xio-ip.o xio-ip4.o xio-ip6.o xio-ipapp.o xio-tcp.o xio-sctp.o xio-rawip.o xio-socks.o xio-proxy.o xio-udp.o xio-progcall.o xio-exec.o xio-system.o xio-termios.o xio-readline.o xio-pty.o xio-openssl.o xio-streams.o xio-ascii.o xiolockfile.o xio-tcpwrap.o xio-fs.o xio-tun.o error.o dalan.o procan.o procan-cdefs.o hostan.o fdname.o sysutils.o utils.o nestlex.o vsnprintf_r.o snprinterr.o filan.o sycls.o sslcls.o

ranlib libxio.a

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.   -o socat socat.o libxio.a -lrt -lutil  -lreadline  -lssl -lcrypto

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o procan_main.o procan_main.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.   -o procan procan_main.o procan.o procan-cdefs.o hostan.o error.o sycls.o sysutils.o utils.o vsnprintf_r.o snprinterr.o -lrt -lutil  -lreadline  -lssl -lcrypto

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o filan_main.o filan_main.c

gcc -O -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.   -o filan filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o vsnprintf_r.o snprinterr.o -lrt -lutil  -lreadline  -lssl -lcrypto

/var/vcap/data/compile/haproxy

Unpacking HAproxy...

/var/vcap/data/compile/haproxy/haproxy-2.4.4 /var/vcap/data/compile/haproxy

Installing HAproxy...

  CC      src/ev_poll.o

  CC      src/ev_epoll.o

  CC      src/cpuset.o

  CC      src/ssl_sample.o

  CC      src/ssl_sock.o

, Truncated stderr:                  from include/haproxy/stream.h:25,

                 from include/haproxy/channel.h:30,

                 from src/ssl_sock.c:51:

/usr/include/openssl/ec.h:998:31: note: declared here

  998 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid);

      |                               ^~~~~~~~~~~~~~~~~~~~~~~~

src/ssl_sock.c:4497:25: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

 4497 |                         EC_KEY_free(ecdh);

      |                         ^~~~~~~~~~~

In file included from /usr/include/openssl/x509.h:33,

                 from /usr/include/openssl/ssl.h:31,

                 from include/haproxy/openssl-compat.h:7,

                 from include/haproxy/listener-t.h:37,

                 from include/haproxy/server-t.h:36,

                 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/hlua-t.h:32,

                 from include/haproxy/applet-t.h:29,

                 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:

/usr/include/openssl/ec.h:1003:28: note: declared here

 1003 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);

      |                            ^~~~~~~~~~~

src/ssl_sock.c: In function '__ssl_sock_init':

src/ssl_sock.c:7129:9: warning: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

 7129 |         ENGINE_load_builtin_engines();

      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from include/haproxy/openssl-compat.h:20,

                 from include/haproxy/listener-t.h:37,

                 from include/haproxy/server-t.h:36,

                 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/hlua-t.h:32,

                 from include/haproxy/applet-t.h:29,

                 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:

/usr/include/openssl/engine.h:358:28: note: declared here

  358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void);

      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~

src/ssl_sock.c:7149:9: warning: 'ERR_load_SSL_strings' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

 7149 |         ERR_load_SSL_strings();

      |         ^~~~~~~~~~~~~~~~~~~~

In file included from /usr/include/openssl/sslerr.h:17,

                 from /usr/include/openssl/ssl.h:43,

                 from include/haproxy/openssl-compat.h:7,

                 from include/haproxy/listener-t.h:37,

                 from include/haproxy/server-t.h:36,

                 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/hlua-t.h:32,

                 from include/haproxy/applet-t.h:29,

                 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:

/usr/include/openssl/sslerr_legacy.h:29:27: note: declared here

   29 | OSSL_DEPRECATEDIN_3_0 int ERR_load_SSL_strings(void);

      |                           ^~~~~~~~~~~~~~~~~~~~

src/ssl_sock.c: In function 'ssl_free_engines':

src/ssl_sock.c:7225:17: warning: 'ENGINE_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

 7225 |                 ENGINE_finish(wl->e);

      |                 ^~~~~~~~~~~~~

In file included from include/haproxy/openssl-compat.h:20,

                 from include/haproxy/listener-t.h:37,

                 from include/haproxy/server-t.h:36,

                 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/hlua-t.h:32,

                 from include/haproxy/applet-t.h:29,

                 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:

/usr/include/openssl/engine.h:628:27: note: declared here

  628 | OSSL_DEPRECATEDIN_3_0 int ENGINE_finish(ENGINE *e);

      |                           ^~~~~~~~~~~~~

src/ssl_sock.c:7226:17: warning: 'ENGINE_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

 7226 |                 ENGINE_free(wl->e);

      |                 ^~~~~~~~~~~

In file included from include/haproxy/openssl-compat.h:20,

                 from include/haproxy/listener-t.h:37,

                 from include/haproxy/server-t.h:36,

                 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/hlua-t.h:32,

                 from include/haproxy/applet-t.h:29,

                 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:

/usr/include/openssl/engine.h:493:27: note: declared here

  493 | OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e);

      |                           ^~~~~~~~~~~

src/ssl_sock.c: In function 'ssl_free_dh':

src/ssl_sock.c:7236:17: warning: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

 7236 |                 DH_free(local_dh_1024);

      |                 ^~~~~~~

In file included from /usr/include/openssl/dsa.h:51,

                 from /usr/include/openssl/x509.h:37,

                 from /usr/include/openssl/ssl.h:31,

                 from include/haproxy/openssl-compat.h:7,

                 from include/haproxy/listener-t.h:37,

                 from include/haproxy/server-t.h:36,

                 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/hlua-t.h:32,

                 from include/haproxy/applet-t.h:29,

                 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:

/usr/include/openssl/dh.h:200:28: note: declared here

  200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);

      |                            ^~~~~~~

src/ssl_sock.c:7240:17: warning: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

 7240 |                 DH_free(local_dh_2048);

      |                 ^~~~~~~

In file included from /usr/include/openssl/dsa.h:51,

                 from /usr/include/openssl/x509.h:37,

                 from /usr/include/openssl/ssl.h:31,

                 from include/haproxy/openssl-compat.h:7,

                 from include/haproxy/listener-t.h:37,

                 from include/haproxy/server-t.h:36,

                 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/hlua-t.h:32,

                 from include/haproxy/applet-t.h:29,

                 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:

/usr/include/openssl/dh.h:200:28: note: declared here

  200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);

      |                            ^~~~~~~

src/ssl_sock.c:7244:17: warning: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

 7244 |                 DH_free(local_dh_4096);

      |                 ^~~~~~~

In file included from /usr/include/openssl/dsa.h:51,

                 from /usr/include/openssl/x509.h:37,

                 from /usr/include/openssl/ssl.h:31,

                 from include/haproxy/openssl-compat.h:7,

                 from include/haproxy/listener-t.h:37,

                 from include/haproxy/server-t.h:36,

                 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/hlua-t.h:32,

                 from include/haproxy/applet-t.h:29,

                 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:

/usr/include/openssl/dh.h:200:28: note: declared here

  200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);

      |                            ^~~~~~~

src/ssl_sock.c:7248:17: warning: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

 7248 |                 DH_free(global_dh);

      |                 ^~~~~~~

In file included from /usr/include/openssl/dsa.h:51,

                 from /usr/include/openssl/x509.h:37,

                 from /usr/include/openssl/ssl.h:31,

                 from include/haproxy/openssl-compat.h:7,

                 from include/haproxy/listener-t.h:37,

                 from include/haproxy/server-t.h:36,

                 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/hlua-t.h:32,

                 from include/haproxy/applet-t.h:29,

                 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:

/usr/include/openssl/dh.h:200:28: note: declared here

  200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);

      |                            ^~~~~~~

make: *** [Makefile:945: src/ssl_sock.o] Error 1

As CF-release is switching to the jammy stemcell and we have some haproxy jobs colocated on our cf routers it would be nice to get this to work, so we can switch the deployment to jammy. I hope you can give us some feedback on this. Thanks in advance.

Kind regards, Julian Weber

domdom82 commented 2 years ago

Hi @julweber

/var/vcap/data/compile/haproxy/haproxy-2.4.4 /var/vcap/data/compile/haproxy

looks like you are not compiling HAproxy 2.6.6 like this BOSH release does. I don't think HAproxy 2.4.4 is compatible with OpenSSL 3.0 that comes with jammy.

The CI we are running on this repository uses jammy from BOSH.io to compile and deploy HAproxy without issues.

julweber commented 2 years ago

@domdom82 Thanks for checking.

I also realized that we were using the old release from cloudfoundry-community. I will test with the latest version and close this ticket for now.

Thanks for replying so fast and sorry for the inconvenience.

Kind regards