3 Aug 2012 09:47
[PATCH] undefined reference to `SSLv2_client_method'
When compiling heirloom mailx on the latest Debian sid (unstable) with
amd64 architecture, I get:
openssl.o: In function `ssl_select_method':
openssl.c:(.text+0x38b): undefined reference to `SSLv2_client_method'
The following patch fixes the problem:
-------------- begin patch ----------------
--- cvs-nail/nail/openssl.c 2009-05-26 14:04:15.000000000 -0700
+++ nail/openssl.c 2012-08-03 00:31:49.907550626 -0700
<at> <at> -216,9 +216,12 <at> <at>
cp = ssl_method_string(uhp);
if (cp != NULL) {
+#ifndef OPENSSL_NO_SSL2
if (equal(cp, "ssl2"))
method = SSLv2_client_method();
- else if (equal(cp, "ssl3"))
+ else
+#endif
+ if (equal(cp, "ssl3"))
method = SSLv3_client_method();
else if (equal(cp, "tls1"))
method = TLSv1_client_method();
-------------- end patch ----------------
--Paul Vojta, vojta@...
------------------------------------------------------------------------------
(Continue reading)
RSS Feed