INSTALL.VMS 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. VMS Installation instructions
  2. written by Richard Levitte
  3. <richard@levitte.org>
  4. Intro:
  5. ======
  6. This file is divided in the following parts:
  7. Requirements - Mandatory reading.
  8. Checking the distribution - Mandatory reading.
  9. Compilation - Mandatory reading.
  10. Logical names - Mandatory reading.
  11. Test - Mandatory reading.
  12. Installation - Mandatory reading.
  13. Backward portability - Read if it's an issue.
  14. Possible bugs or quirks - A few warnings on things that
  15. may go wrong or may surprise you.
  16. TODO - Things that are to come.
  17. Requirements:
  18. =============
  19. To build and install OpenSSL, you will need:
  20. * DEC C or some other ANSI C compiler. VAX C is *not* supported.
  21. [Note: OpenSSL has only been tested with DEC C. Compiling with
  22. a different ANSI C compiler may require some work]
  23. Checking the distribution:
  24. ==========================
  25. There have been reports of places where the distribution didn't quite get
  26. through, for example if you've copied the tree from a NFS-mounted Unix
  27. mount point.
  28. The easiest way to check if everything got through as it should is to check
  29. for one of the following files:
  30. [.CRYPTO]OPENSSLCONF.H_IN
  31. [.CRYPTO]OPENSSLCONF_H.IN
  32. They should never exist both at once, but one of them should (preferably
  33. the first variant). If you can't find any of those two, something went
  34. wrong.
  35. The best way to get a correct distribution is to download the gzipped tar
  36. file from ftp://ftp.openssl.org/source/, use GUNZIP to uncompress it and
  37. use VMSTAR to unpack the resulting tar file.
  38. GUNZIP is available in many places on the net. One of the distribution
  39. points is the WKU software archive, ftp://ftp.wku.edu/vms/fileserv/ .
  40. VMSTAR is also available in many places on the net. The recommended place
  41. to find information about it is http://www.free.lp.se/vmstar/ .
  42. Compilation:
  43. ============
  44. I've used the very good command procedures written by Robert Byer
  45. <byer@mail.all-net.net>, and just slightly modified them, making
  46. them slightly more general and easier to maintain.
  47. You can actually compile in almost any directory separately. Look
  48. for a command procedure name xxx-LIB.COM (in the library directories)
  49. or MAKExxx.COM (in the program directories) and read the comments at
  50. the top to understand how to use them. However, if you want to
  51. compile all you can get, the simplest is to use MAKEVMS.COM in the top
  52. directory. The syntax is the following:
  53. @MAKEVMS <option> <bits> <debug-p> [<compiler>]
  54. <option> must be one of the following:
  55. ALL Just build "everything".
  56. CONFIG Just build the "[.CRYPTO]OPENSSLCONF.H" file.
  57. BUILDINF Just build the "[.INCLUDE]BUILDINF.H" file.
  58. SOFTLINKS Just copies some files, to simulate Unix soft links.
  59. BUILDALL Same as ALL, except CONFIG, BUILDINF and SOFTLINKS aren't done.
  60. RSAREF Just build the "[.xxx.EXE.RSAREF]LIBRSAGLUE.OLB" library.
  61. CRYPTO Just build the "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB" library.
  62. SSL Just build the "[.xxx.EXE.SSL]LIBSSL.OLB" library.
  63. SSL_TASK Just build the "[.xxx.EXE.SSL]SSL_TASK.EXE" program.
  64. TEST Just build the "[.xxx.EXE.TEST]" test programs for OpenSSL.
  65. APPS Just build the "[.xxx.EXE.APPS]" application programs for OpenSSL.
  66. <bits> must be one of the following:
  67. "" compile using default pointer size
  68. 32 compile using 32 bit pointer size
  69. 64 compile using 64 bit pointer size
  70. <debug-p> must be one of the following:
  71. DEBUG compile with debugging info (will not optimize)
  72. NODEBUG compile without debugging info (will optimize)
  73. <compiler> must be one of the following:
  74. DECC For DEC C.
  75. GNUC For GNU C.
  76. You will find the crypto library in [.xxx.EXE.CRYPTO] (where xxx is VAX,
  77. ALPHA or IA64), called SSL_LIBCRYPTO32.OLB or SSL_LIBCRYPTO.OLB depending
  78. on how it was built. You will find the SSL library in [.xxx.EXE.SSL],
  79. named SSL_LIBSSL32.OLB or SSL_LIBSSL.OLB, and you will find a bunch of
  80. useful programs in [.xxx.EXE.APPS]. However, these shouldn't be used
  81. right off unless it's just to test them. For production use, make sure
  82. you install first, see Installation below.
  83. Note 1: Some programs in this package require a TCP/IP library.
  84. Note 2: if you want to compile the crypto library only, please make sure
  85. you have at least done a @MAKEVMS CONFIG, a @MAKEVMS BUILDINF and
  86. a @MAKEVMS SOFTLINKS. A lot of things will break if you don't.
  87. Logical names:
  88. ==============
  89. There are a few things that can't currently be given through the command
  90. line. Instead, logical names are used.
  91. Currently, the logical names supported are:
  92. OPENSSL_NO_ASM with value YES, the assembler parts of OpenSSL will
  93. not be used. Instead, plain C implementations are
  94. used. This is good to try if something doesn't work.
  95. OPENSSL_NO_'alg' with value YES, the corresponding crypto algorithm
  96. will not be implemented. Supported algorithms to
  97. do this with are: RSA, DSA, DH, MD2, MD4, MD5, RIPEMD,
  98. SHA, DES, MDC2, CR2, RC4, RC5, IDEA, BF, CAST, HMAC,
  99. SSL2. So, for example, having the logical name
  100. OPENSSL_NO_RSA with the value YES means that the
  101. LIBCRYPTO.OLB library will not contain an RSA
  102. implementation.
  103. Test:
  104. =====
  105. Testing is very simple, just do the following:
  106. @[.TEST]TESTS
  107. If a test fails, try with defining the logical name OPENSSL_NO_ASM (yes,
  108. it's an ugly hack!) and rebuild. Please send a bug report to
  109. <openssl-bugs@openssl.org>, including the output of "openssl version -a"
  110. and of the failed test.
  111. Installation:
  112. =============
  113. Installation is easy, just do the following:
  114. @INSTALL <root> <bits>
  115. <root> is the directory in which everything will be installed,
  116. subdirectories, libraries, header files, programs and startup command
  117. procedures.
  118. <bits> works the same way as for MAKEVMS.COM
  119. N.B.: INSTALL.COM builds a new directory structure, different from
  120. the directory tree where you have now build OpenSSL.
  121. In the [.VMS] subdirectory of the installation, you will find the
  122. following command procedures:
  123. OPENSSL_STARTUP.COM
  124. defines all needed logical names. Takes one argument that
  125. tells it in what logical name table to insert the logical
  126. names. If you insert if it SYS$MANAGER:SYSTARTUP_VMS.COM, the
  127. call should look like this:
  128. @openssldev:[openssldir.VMS]OPENSSL_STARTUP "/SYSTEM"
  129. OPENSSL_UTILS.COM
  130. sets up the symbols to the applications. Should be called
  131. from for example SYS$MANAGER:SYLOGIN.COM
  132. OPENSSL_UNDO.COM
  133. deassigns the logical names created with OPENSSL_STARTUP.COM.
  134. The logical names that are set up are the following:
  135. SSLROOT a dotted concealed logical name pointing at the
  136. root directory.
  137. SSLCERTS Initially an empty directory, this is the default
  138. location for certificate files.
  139. SSLPRIVATE Initially an empty directory, this is the default
  140. location for private key files.
  141. SSLEXE Contains the openssl binary and a few other utility
  142. programs.
  143. SSLINCLUDE Contains the header files needed if you want to
  144. compile programs with libcrypto or libssl.
  145. SSLLIB Contains the OpenSSL library files themselves:
  146. - SSL_LIBCRYPTO32.OLB and SSL_LIBSSL32.OLB or
  147. - SSL_LIBCRYPTO.OLB and SSL_LIBSSL.OLB
  148. OPENSSL Same as SSLINCLUDE. This is because the standard
  149. way to include OpenSSL header files from version
  150. 0.9.3 and on is:
  151. #include <openssl/header.h>
  152. For more info on this issue, see the INSTALL. file
  153. (the NOTE in section 4 of "Installation in Detail").
  154. You don't need to "deleting old header files"!!!
  155. Backward portability:
  156. =====================
  157. One great problem when you build a library is making sure it will work
  158. on as many versions of VMS as possible. Especially, code compiled on
  159. OpenVMS version 7.x and above tend to be unusable in version 6.x or
  160. lower, because some C library routines have changed names internally
  161. (the C programmer won't usually see it, because the old name is
  162. maintained through C macros). One obvious solution is to make sure
  163. you have a development machine with an old enough version of OpenVMS.
  164. However, if you are stuck with a bunch of Alphas running OpenVMS version
  165. 7.1, you seem to be out of luck. Fortunately, the DEC C header files
  166. are cluttered with conditionals that make some declarations and definitions
  167. dependent on the OpenVMS version or the C library version, *and* you
  168. can use those macros to simulate older OpenVMS or C library versions,
  169. by defining the macros _VMS_V6_SOURCE, __VMS_VER and __CTRL_VER with
  170. correct values. In the compilation scripts, I've provided the possibility
  171. for the user to influence the creation of such macros, through a bunch of
  172. symbols, all having names starting with USER_. Here's the list of them:
  173. USER_CCFLAGS - Used to give additional qualifiers to the
  174. compiler. It can't be used to define macros
  175. since the scripts will do such things as well.
  176. To do such things, use USER_CCDEFS.
  177. USER_CCDEFS - Used to define macros on the command line. The
  178. value of this symbol will be inserted inside a
  179. /DEFINE=(...).
  180. USER_CCDISABLEWARNINGS - Used to disable some warnings. The value is
  181. inserted inside a /DISABLE=WARNING=(...).
  182. So, to maintain backward compatibility with older VMS versions, do the
  183. following before you start compiling:
  184. $ USER_CCDEFS := _VMS_V6_SOURCE=1,__VMS_VER=60000000,__CRTL_VER=60000000
  185. $ USER_CCDISABLEWARNINGS := PREOPTW
  186. The USER_CCDISABLEWARNINGS is there because otherwise, DEC C will complain
  187. that those macros have been changed.
  188. Note: Currently, this is only useful for library compilation. The
  189. programs will still be linked with the current version of the
  190. C library shareable image, and will thus complain if they are
  191. faced with an older version of the same C library shareable image.
  192. This will probably be fixed in a future revision of OpenSSL.
  193. Possible bugs or quirks:
  194. ========================
  195. I'm not perfectly sure all the programs will use the SSLCERTS:
  196. directory by default, it may very well be that you have to give them
  197. extra arguments. Please experiment.
  198. TODO:
  199. =====
  200. There are a few things that need to be worked out in the VMS version of
  201. OpenSSL, still:
  202. - Description files. ("Makefile's" :-))
  203. - Script code to link an already compiled build tree.
  204. - A VMSINSTALlable version (way in the future, unless someone else hacks).
  205. - shareable images (DLL for you Windows folks).
  206. There may be other things that I have missed and that may be desirable.
  207. Please send mail to <openssl-users@openssl.org> or to me directly if you
  208. have any ideas.
  209. --
  210. Richard Levitte <richard@levitte.org>
  211. 2000-02-27, 2011-03-18