Building ssl 0.7.0 in macOS with openssl 3.3.0

I don’t have access to a Macintosh. Openssl 0.7.0 build fails in our macOS GitHub action since a few days. Here are the first opam errors we get (other are similar):

#=== ERROR while compiling ssl.0.7.0 ==========================================#
# context     2.1.5 | macos/arm64 | ocaml-base-compiler.4.14.1 | git+https://github.com/ocaml/opam-repository#8cc107f96e33a4601f7c39346eb19fbbe46486d3
# path        ~/work/ocaml.org/ocaml.org/_opam/.opam-switch/build/ssl.0.7.0
# command     ~/work/ocaml.org/ocaml.org/_opam/bin/dune build -p ssl -j 3 @install
# exit-code   1
# env-file    ~/.opam/log/ssl-6849-6150dd.env
# output-file ~/.opam/log/ssl-6849-6150dd.out
### output ###
# (cd _build/default/src && /usr/bin/cc -O2 -fno-strict-aliasing -fwrapv -pthread -D_FILE_OFFSET_BITS=64 -I/opt/homebrew/Cellar/openssl@3/3.3.0/include -g -I /Users/runner/work/ocaml.org/ocaml.org/_opam/lib/ocaml -o ssl_stubs.o -c ssl_stubs.c)
# ssl_stubs.c:1142:5: warning: 'DH_free' is deprecated [-Wdeprecated-declarations]
#     DH_free(dh);
#     ^
# /opt/homebrew/Cellar/openssl@3/3.3.0/include/openssl/dh.h:211:1: note: 'DH_free' has been explicitly marked deprecated here
# OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
# ^
# /opt/homebrew/Cellar/openssl@3/3.3.0/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
# #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
#                                                 ^
# /opt/homebrew/Cellar/openssl@3/3.3.0/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
# #     define OSSL_DEPRECATED(since) __attribute__((deprecated))

Has anyone also observed that?

P.S.

FYI, I think the part’s that’s actually making your build fail is just below:

# (cd _build/default && /Users/runner/work/ocaml.org/ocaml.org/_opam/bin/ocamlmklib.opt -g -o src/ssl_stubs src/ssl_stubs.o -ldopt -L/opt/homebrew/Cellar/openssl@3/3.3.0 -ldopt -lssl -ldopt -lcrypto)
[...]
# ld: library 'ssl' not found
# clang: error: linker command failed with exit code 1 (use -v to see invocation)

(that is, the linking step is the issue, not the compile-time warnings)