Build errors from OpenSSL due to library link order
@garyedmundsmiller reported:
[...] I have a really old server that has been running NTPsec
git head until recently. Now it fails, [...]
# openssl version
OpenSSL 1.0.2o 27 Mar 2018
[...]
The problem starts here:
[137/137] Linking build/main/ntptime/ntptime
/usr/local/ssl/lib/libssl.a(t1_lib.o): In function `tls1_check_chain':
t1_lib.c:(.text+0x6e96): undefined reference to `X509_certificate_type'
/usr/local/ssl/lib/libssl.a(t1_lib.o): In function `SSL_check_chain':
t1_lib.c:(.text+0x7ba3): undefined reference to `X509_certificate_type'
/usr/local/ssl/lib/libssl.a(t1_enc.o): In function `tls1_change_cipher_state':
t1_enc.c:(.text+0x715): undefined reference to `COMP_CTX_free'
t1_enc.c:(.text+0x735): undefined reference to `COMP_CTX_new'
t1_enc.c:(.text+0xac4): undefined reference to `COMP_CTX_free'
t1_enc.c:(.text+0xae0): undefined reference to `COMP_CTX_new'
See https://lists.ntpsec.org/pipermail/devel/2019-March/008132.html