Builds fail when using OpenSSL 1.1.1:
/bin/sh ../libtool --mode=compile cc -I../include -I. -I../snmplib
-I/usr/include -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -pipe
-I/usr/local/include -I/include -fstack-protector -fno-strict-aliasing
-std=c99 -Ufreebsd13 -Dfreebsd13=freebsd13 -DHAS_FPSETMASK
-DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2
-I/usr/local/lib/perl5/5.26/mach/CORE -c -o keytools.lo keytools.c
libtool: compile: cc -I../include -I. -I../snmplib -I/usr/include
-DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -pipe
-I/usr/local/include -I/include -fstack-protector -fno-strict-aliasing
-std=c99 -Ufreebsd13 -Dfreebsd13=freebsd13 -DHAS_FPSETMASK
-DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2
-I/usr/local/lib/perl5/5.26/mach/CORE -c keytools.c -fPIC -DPIC -o
.libs/keytools.o
keytools.c:155:24: error: invalid application of 'sizeof' to an
incomplete type 'EVP_MD_CTX' (aka 'struct evp_md_ctx_st')
ctx = malloc(sizeof(*ctx));
^~~~~~
/usr/include/openssl/ossl_typ.h:92:16: note: forward declaration of
'struct evp_md_ctx_st'
typedef struct evp_md_ctx_st EVP_MD_CTX;
^
keytools.c:265:9: warning: implicit declaration of function
'EVP_MD_CTX_cleanup' is invalid in C99 [-Wimplicit-function-declaration]
EVP_MD_CTX_cleanup(ctx);
^
1 warning and 1 error generated.
*** Error code 1
https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes
The current 5-7-patches branch (and 5.8 release) has support for OpenSSL 1.1, and compile without problems on Ubuntu 18.10 and Fedora 29 which both come with OpenSSL 1.1.1.
I am in the process of backporting networking patches from FreeBSD 12 ports to verify it is working there too.