Hi. I would start by fixing debian/rules. See attach.
You apparently need libhsts, I tried to workaround that
by disabling it in ./configure call, just to see how
far I could go.
After that there seems to be a gcc-14 problem
with prototype for "fork". Sorry, I stopped at that point, but I guess the
trivial debian/rules patch might
help a bit.
Thanks.
--- a/debian/rules
+++ b/debian/rules
@@ -8,5 +8,5 @@
%:
dh $@
-override_dh_condfigure:
- dh_configure -- --enable-fsanitize-ubsan=no
+override_dh_auto_configure:
+ dh_auto_configure -- --enable-fsanitize-ubsan=no --without-libhsts