CC: | "Farley, Paul" <Paul.Farley [...] stratus.com>, "Green, Paul" <Paul.Green [...] stratus.com> |
Subject: | Build failure in version 1.80 when OpenSSL was not built with Engine support |
Date: | Wed, 22 Feb 2017 17:05:33 +0000 |
To: | "bug-Net-SSLeay [...] rt.cpan.org" <bug-Net-SSLeay [...] rt.cpan.org> |
From: | "Green, Paul" <Paul.Green [...] stratus.com> |
Gentle Net:SSLeay maintainers,
Using Net:SSLeay version 1.80 today with Perl 5.14.2 on Stratus OpenVOS Release 17.2.0cb and the Stratus build of OpenSSL 1.0.2j, I discovered that Net:SSLeay/SSLeay.c would not build because we do not build our copy of OpenSSL with "engine" support.
Fortunately, the fix to SSLeay.xs is trivial, and with this fix, I was able to successfully build and install Net::SSLeay 1.80.
Here is the fix:
--- SSLeay.xs.orig 2017-02-22 12:02:30 -0500
+++ SSLeay.xs 2017-02-22 11:52:34 -0500
@@ -185,8 +185,10 @@
#include <openssl/x509v3.h>
#if OPENSSL_VERSION_NUMBER >= 0x0090700fL
/* requires 0.9.7+ */
+#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif
+#endif
#ifdef OPENSSL_FIPS
#include <openssl/fips.h>
#endif
Thanks
PG
--
Sr. Technical Consultant, Stratus Technologies, Inc.
Maynard, MA 01754-1482