Here is a patch for Cygwin32 builds against current "0.9.6-stable" snapshots. The first patch adds two simple shell scripts and changes to the makefile to allow the objects.pl and obj_dat.pl perl scripts to work correctly in a CR/LF environment.
All diffs were made with "diff -Naur" format against the 03 January 2002 0.9.6-stable snapshot, and have been tested on WinNT 4.0 x86 (with Cygwin), RedHat 6.2 & 7.1 x86 and SPARC Solaris 2.6 & 7 with success. Michael Kobar [EMAIL PROTECTED] Software Engineer 860.434.4018 voice Lymeware Corporation 801.383.9021 fax www.lymeware.com
diff -Naur openssl-0.9.6-stable-SNAP-20020103/crypto/objects/Makefile.ssl openssl-0.9.6-stable-SNAP-20020103_lwc/crypto/objects/Makefile.ssl --- openssl-0.9.6-stable-SNAP-20020103/crypto/objects/Makefile.ssl Fri Jan 4 13:17:36 2002 +++ openssl-0.9.6-stable-SNAP-20020103_lwc/crypto/objects/Makefile.ssl Fri Jan 4 +13:24:52 2002 @@ -44,11 +44,13 @@ - $(RANLIB) $(LIB) @touch lib -obj_dat.h: obj_dat.pl obj_mac.h +obj_dat.h: fixup_obj_mach obj_dat.pl obj_mac.h + ./fixup_obj_mach $(PERL) obj_dat.pl obj_mac.h obj_dat.h # objects.pl both reads and writes obj_mac.num -obj_mac.h: objects.pl objects.txt obj_mac.num +obj_mac.h: fixup_obj_macnum objects.pl objects.txt obj_mac.num + ./fixup_obj_macnum $(PERL) objects.pl objects.txt obj_mac.num obj_mac.h files: diff -Naur openssl-0.9.6-stable-SNAP-20020103/crypto/objects/fixup_obj_mach.sh openssl-0.9.6-stable-SNAP-20020103_lwc/crypto/objects/fixup_obj_mach.sh --- openssl-0.9.6-stable-SNAP-20020103/crypto/objects/fixup_obj_mach.sh Wed Dec 31 19:00:00 1969 +++ openssl-0.9.6-stable-SNAP-20020103_lwc/crypto/objects/fixup_obj_mach.sh Thu +Jan 3 15:24:54 2002 @@ -0,0 +1,10 @@ +# fixup_obj_mach.sh - used to remove CRs from obj_mac.h +# to allow obj_dat.pl to build a valid obj_dat.h file. +# This BUG was first discovered in the openssl-0.9.6-stable-SNAP-20011225 +# snapshot. +# +# This problem exists for CygWin32. Any questions? <[EMAIL PROTECTED]> +# +mv obj_mac.h obj_mac.old +tr -d "\r" < obj_mac.old > obj_mac.h +#EOF diff -Naur openssl-0.9.6-stable-SNAP-20020103/crypto/objects/fixup_obj_macnum.sh openssl-0.9.6-stable-SNAP-20020103_lwc/crypto/objects/fixup_obj_macnum.sh --- openssl-0.9.6-stable-SNAP-20020103/crypto/objects/fixup_obj_macnum.sh Wed Dec 31 19:00:00 1969 +++ openssl-0.9.6-stable-SNAP-20020103_lwc/crypto/objects/fixup_obj_macnum.sh Thu +Jan 3 15:26:39 2002 @@ -0,0 +1,12 @@ +# fixup_obj_macnum.sh - used to remove CRs from objects.txt and obj_mac.num +# to allow object.pl to build a valid obj_mac.h file. +# This BUG was first discovered in the openssl-0.9.6-stable-SNAP-20011225 +# snapshot. +# +# This problem exists for CygWin32. Any questions? <[EMAIL PROTECTED]> +# +mv objects.txt objects.old +tr -d "\r" < objects.old > objects.txt +mv obj_mac.num obj_mac.oldn +tr -d "\r" < obj_mac.oldn > obj_mac.num +#EOF