Openssl-0.9.6a compiles neither with DJGPP (DOS) nor with Cygwin (Windows)
without modification. The attached patch allows either to compile
with Configure, make, "make test". I have attached the patch as a
mime-encoded gzipped file to avoid munging of the patch by the list
archiving software.

The change in crypto/des/Makefile.ssl should apply to all platforms. The
path to perlasm is wrong in the original file.

The patch takes account of:
1. Path separator may be "/" or "\"
2. Test -f fails but test -x succeeds for file, when file.exe exists
3. Absolute paths may begin with "/" or with "[a-zA-Z]:[/\\]"
4. Unpacking the tar.gz archive on DOS or Windows leads to creation of
   0 byte files in test which have to be removed before symlinking, or
   else be overwritten.
5. When algorithms are excluded, "make links" no longer links the test
   files for those algorithms to the test directory.
6. Cygwin changed its name from Cygwin32 in 1998.

I didn't make changes in this patch, but note that the define
"__CYGWIN32__" may not be supported in the future. This should probably
be changed to __CYGWIN__ in future versions of openssl, if this has not
already been done.

Both the DJGPP and Cygwin ports compile and test without problems,
except for the DJGPP version getting the warning "unable to load
random state", since there is no entropy gathering daemon for the
DJGPP port.

I tried to make sure that these changes would not adversely affect other
platforms. Please let me know if any of these changes would cause
problems anywhere. Note that I am not a programmer. Suggestions for
improvements in the patch would be appreciated.
                                   Doug

__ 
Doug Kaufman
Internet: [EMAIL PROTECTED]

096a.pch.gz

Reply via email to