This patch fixes CRLF problems in mk1mf.pl when using Cygwin Perl on a
Windows machine to generate Visual Studio project files for OpenSSL. The
symptom of these problems is errors like these:
' in macro519) : fatal error U1001: syntax error : illegal character
'
Stop.
or
NMAKE : fatal error U1073: don't know how to make '.\\cryptlib.h'
Stop.
.. both of which users have reported in various places on the web.
Note that the patch is for 0.9.7c, but I suspect it will work on
virtually any existing version of this file.
build-win32-0.9.7c.patch:
*** openssl-0.9.7c/util/mk1mf.pl Fri Mar 14 17:29:18 2003
--- openssl-0.9.7c-miket/util/mk1mf.pl Sat Feb 7 21:58:57 2004
***************
*** 485,490 ****
--- 485,495 ----
chop;
($key,$val)=/^([^=]+)=(.*)/;
+
+ # On some Windows machines, $val has linefeeds at the end, which
confuses
+ # subsequent code in this file. So we strip all whitespace at
the end.
+ $val =~ s/\s+$//;
+
if ($key eq "RELATIVE_DIRECTORY")
{
if ($lib ne "")
--
Mike Tsao
[EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]