Richard Levitte | 451dc18 | 2002-06-13 20:42:35 +0000 | [diff] [blame] | 1 | |
| 2 | |
| 3 | INSTALLATION ON THE DOS PLATFORM WITH DJGPP |
| 4 | ------------------------------------------- |
| 5 | |
Andy Polyakov | 9222bc6 | 2005-01-14 16:25:36 +0000 | [diff] [blame] | 6 | OpenSSL has been ported to DJGPP, a Unix look-alike 32-bit run-time |
| 7 | environment for 16-bit DOS, but only with long filename support. |
| 8 | If you wish to compile on native DOS with 8+3 filenames, you will |
| 9 | have to tweak the installation yourself, including renaming files |
| 10 | with illegal or duplicate names. |
Richard Levitte | 451dc18 | 2002-06-13 20:42:35 +0000 | [diff] [blame] | 11 | |
| 12 | You should have a full DJGPP environment installed, including the |
| 13 | latest versions of DJGPP, GCC, BINUTILS, BASH, etc. This package |
Richard Levitte | d36ab9c | 2016-01-21 14:43:51 +0100 | [diff] [blame] | 14 | requires that PERL and the PERL module Text::Template also be |
Richard Levitte | 07930a7 | 2016-05-23 15:11:04 +0200 | [diff] [blame] | 15 | installed (see NOTES.PERL). |
Richard Levitte | 451dc18 | 2002-06-13 20:42:35 +0000 | [diff] [blame] | 16 | |
Andy Polyakov | 9222bc6 | 2005-01-14 16:25:36 +0000 | [diff] [blame] | 17 | All of these can be obtained from the usual DJGPP mirror sites or |
| 18 | directly at "http://www.delorie.com/pub/djgpp". For help on which |
| 19 | files to download, see the DJGPP "ZIP PICKER" page at |
| 20 | "http://www.delorie.com/djgpp/zip-picker.html". You also need to have |
| 21 | the WATT-32 networking package installed before you try to compile |
Richard Levitte | 2c25ebd | 2016-05-10 14:41:19 +0200 | [diff] [blame] | 22 | OpenSSL. This can be obtained from "http://www.watt-32.net/". |
Richard Levitte | 5319be4 | 2002-12-04 09:54:10 +0000 | [diff] [blame] | 23 | The Makefile assumes that the WATT-32 code is in the directory |
| 24 | specified by the environment variable WATT_ROOT. If you have watt-32 |
| 25 | in directory "watt32" under your main DJGPP directory, specify |
| 26 | WATT_ROOT="/dev/env/DJDIR/watt32". |
Richard Levitte | 451dc18 | 2002-06-13 20:42:35 +0000 | [diff] [blame] | 27 | |
Andy Polyakov | 9222bc6 | 2005-01-14 16:25:36 +0000 | [diff] [blame] | 28 | To compile OpenSSL, start your BASH shell, then configure for DJGPP by |
| 29 | running "./Configure" with appropriate arguments: |
Richard Levitte | 451dc18 | 2002-06-13 20:42:35 +0000 | [diff] [blame] | 30 | |
Andy Polyakov | 9222bc6 | 2005-01-14 16:25:36 +0000 | [diff] [blame] | 31 | ./Configure no-threads --prefix=/dev/env/DJDIR DJGPP |
| 32 | |
| 33 | And finally fire up "make". You may run out of DPMI selectors when |
| 34 | running in a DOS box under Windows. If so, just close the BASH |
| 35 | shell, go back to Windows, and restart BASH. Then run "make" again. |
Andy Polyakov | 0b52f89 | 2005-01-09 20:14:04 +0000 | [diff] [blame] | 36 | |
| 37 | RUN-TIME CAVEAT LECTOR |
| 38 | -------------- |
| 39 | |
| 40 | Quoting FAQ: |
| 41 | |
| 42 | "Cryptographic software needs a source of unpredictable data to work |
| 43 | correctly. Many open source operating systems provide a "randomness |
| 44 | device" (/dev/urandom or /dev/random) that serves this purpose." |
| 45 | |
Andy Polyakov | 9222bc6 | 2005-01-14 16:25:36 +0000 | [diff] [blame] | 46 | As of version 0.9.7f DJGPP port checks upon /dev/urandom$ for a 3rd |
| 47 | party "randomness" DOS driver. One such driver, NOISE.SYS, can be |
| 48 | obtained from "http://www.rahul.net/dkaufman/index.html". |