From reading the error message one would guess that this configure script did not find the libcrypto.so library and/or that the -lcrypto linker command was not added by the configuration script. DH_set0_pqg is in the code table of of openSUSE 15.1 at least.