                                                19 December 2020.  SMS.

                          Wget 1.20.3a for VMS
                          ====================

------------------------------------------------------------------------

   This note accompanies a quick VMS port of Wget version 1.20.3, a GNU
free network utility to retrieve files from the World Wide Web using
HTTP and FTP.  The most obvious features seem to work, but many have not
been tested.

   Built and tested (slightly) in these environments:

OpenVMS Alpha V8.4, HP C V7.3-010, TCPIP V5.7 - ECO 5

OpenVMS IA64 V8.4, HP C V7.3-020, TCPIP V5.7 - ECO 5
(OpenVMS IA64 V8.4-2L1, VSI C V7.4-001, TCPIP V5.7 - ECO 5)

OpenVMS VAX V7.3, Compaq C V6.4-005, TCPIP V5.3 - ECO 4.

   No testing has been done on VMS versions before V7.3, and a variety
of problems may be expected in any environment where __CRTL_VER is less
than 70000000 (non-POSIX exit() behavior, for example).

------------------------------------------------------------------------

      Home source URLs
      ----------------

https://www.gnu.org/software/wget/
https://ftp.gnu.org/gnu/wget/
ftp://ftp.gnu.org/gnu/wget/

------------------------------------------------------------------------

      News
      ----
   Version 1.20.3a  2020-12-14
   ---------------------------

- General update to Wget 1.20.3  ([.lib]descrip_mods.mms,
  [.src]descrip_mods.mms, [.src]vms.c, [.vms]byteswap.h (new),
  [.vms]config.h_vms, [.vms]fcntl.h, [.vms]spawn.h (new),
  [.vms]stdint.h, [.vms]string.h,   [.vms]unistd.h (new),
  [.vms]vms_notes.txt)

- Minor code reorganization to deal with Unix-VMS differences in
  combining directory and file names.  ([.src]hsts.c, [.src]init.c,
  [.src]init.h, [.src]main.c)

- Added type casts to accommodate unsigned time_t on VMS.
  ([.src]hsts.c,

- Disabled special handling of redirected log-file output on VMS.
  ([.src]log.c)

- Readjusted some VMS-specific data types to match changes to non-VMS
  data types.  ([.src]utils.c)

- Private VMS-specific utime() function mishandled some file names with
  ODS5 extended characters, notably "@" (result of including a query
  string in some URL-derived file names with "@" substituted for "?").
  File date-time was not set, and a spurious run-time error message was
  emitted, "utime(index.html@fred): file specification syntax error".
  ([.src]vms.c)

- Changed builders to cope with changes to recent OpenSSL versions
  (1.1.1 and later).  Specify new MMS macro, OSSLD=1.
  ([.vms]descrip.mms, [.vms]descrip_src.mms,
  [.vms]wget_ssl_od_olb.opt (new), [.vms]wget_ssl_od_shr.opt (new))

- Added a line to the -V/--version report on VMS, showing the (run-time)
  VMS version and the OpenSSL version, if included.  ([.src]main.c,
  [.src]vms.c)

- Added brief comments to SSL-related LINK options files.
  ([.vms]wget_ssl_hp.opt, [.vms]wget_ssl_hp1.opt,
  [.vms]wget_ssl_od_olb.opt, [.vms]wget_ssl_od_shr.opt,
  [.vms]wget_ssl_o_olb.opt, [.vms]wget_ssl_o_olb_ssl.opt,
  [.vms]wget_ssl_o_shr.opt, [.vms]wget_ssl_o_shr_ssl.opt)

- No support yet for --use-askpass option.

- A build with C macro HAVE_ICONV should work, but typically results in
  an annoying run-time message "Conversion from 'ASCII' to 'ASCII' isn't
  supported" caused by underconfident (or very lame) CRTL iconv package?
  Edit [.vms]config.h_vms, or use the MMS macro CDEFS_USER to define it.
  Whether it does anything useful is not known.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.18a  2018-04-22
   -------------------------

- General update to Wget 1.18.  ([.lib]descrip_mods.mms,
  [.src]descrip_mods.mms, [.vms]config.h_vms, (new), [.vms]file.h (new))

- Specify new MMS macro, HPSSL1=1, to build with SSL support using the
  HP SSL1 product.  ([.vms]descrip.mms, [.vms]descrip_src.mms,
  [.vms]wget_ssl_hp1.opt (new))

- Some SSL-related C macros (HAVE_SSL, HAVE_LIBSSL) were mishandled,
  causing the --random-file=FILE option to be disabled when built with
  HP SSL.  This also affected the "--version" report ("-ssl", instead of
  "+ssl/openssl").

- Minor spelling/typographical corrections in --help report.
  ([.src]main.c)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.16.3b  2015-04-02
   ---------------------------

- HTTP[S] fetch of a URL which included a query string (question mark,
  "?") could fail, with messages like "i/o error" and "Cannot write to
  <file>", because of the URL-derived "?" in the destination file name,
  which is invalid on VMS.  "?" is now converted to "@" in such cases
  (as it is on Windows).  Equivalent changes should be in the official
  Wget code in future versions.  ([.src]init.c, [.src]options.h,
  [.src]url.c)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.16.3a  2015-03-09
   ---------------------------

- General update to Wget 1.16.3.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.16.2a  2015-03-05
   ---------------------------

- General update to Wget 1.16.2.

- In previous versions, on VAX, spurious messages, "pathconf: no such
  file or directory", could have been caused by an apparently inadequate
  pathconf() in the C RTL.  The VMS-specific config.h file now does not
  define HAVE_PATHCONF on VAX.  ([.vms]config.h_vms)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.16.1a  2014-12-08
   ---------------------------

- General update to Wget 1.16.1.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.16a  2014-11-24
   -------------------------

- General update to Wget 1.16.

- Patch, bug-wget reference:
  http://lists.gnu.org/archive/html/bug-wget/2014-11/msg00100.html
  http://lists.gnu.org/archive/html/bug-wget/2014-11/msg00288.html
  ([.src]openssl.c)

- Repaired damage to builders in version 1.15, which could cause a
  variety of build problems from clean sources.
  ([.src]descrip_deps.mms, [.vms]collect_deps.com,
  [.vms]descrip_deps.mms, [.vms]descrip_mkdeps.mms)

- Changed builders to enable large-file support by default on Alpha and
  IA64 (with a run-time check on Alpha, using a new DCL script).  DASHD
  (ENABLE_DEBUG, -d/--debug) is now enabled by default.  Specify MMS
  macro NODASHD=1 to disable.  ([.vms]check_large.com,
  [.vms]descrip_src.mms)

- Added a new MMS target, DASHV, to generate a "wget -V" report using
  the local executable.  ([.vms]descrip.mms, [.vms]descrip_src.mms)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.15a  2014-01-24
   -------------------------

- General update to Wget 1.15.

- Build failures were possible in environments where the logical name
  OPENSSL was not defined (such as where no SSL software was installed),
  whether or not any SSL support was requested.  Now, [.src]http-ntlm.c
  is compiled only if SSL support is requested.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.14b  2013-07-09
   -------------------------

- Change to --backups behavior.  ([.src]retr.c:rotate_backups())

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.14a  2012-08-28
   ---------------------------

- General code update to Wget 1.14.

- Disabled the use of mmap() to avoid a user-reported ACCVIO on Alpha
  when trying to process an empty "robots.txt" file.
  ([.vms]config.h_vms: HAVE_MMAP.)

- Note: If the new WARC (Web ARChive) files are created using Gzip
  compression (that is, if Wget is built with ZLIB support, and the
  --no-warc-compression option is not specified), then old versions of
  Gzip on VMS will not properly expand these files.  Gzip version 1.5b
  or newer (or, in the version 1.3.12 series, version 1.3.12e or newer)
  should expand these files properly.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.13.4a  2011-10-22
   ---------------------------

- General code update to Wget 1.13.4.  (Many old VMS-specific changes
  have been incorporated into the main Wget code stream.)

- Fixed some VMS-specific build problems involving the use of
  <sys/select.h> in [.src]connect.c.

- Restored some lost VMS-specific changes affecting binary v. text
  attributes on files transferred by FTP.  ([.src]ftp.c)

- Restored a lost change which caused permissions always to be restored
  on files transferred by FTP, even when "--preserve-permissions" was
  not specified.  (Oops.)  The "--preserve-permissions" option was
  erroneously marked as "deprecated", and omitted from the "-h" (--help)
  usage text.  ([.src]ftp.c, [.src]init.c, [.src]main.c)

- Changed on VMS to create FTP listing files (".listing") with text
  attributes, not binary.  Wget operation should be unchanged, but
  listing files saved by using "--no-remove-listing" should now be more
  compatible with normal text editors (Stream_LF instead of fixed-512
  record format).  ([.src]ftp.c)

- The C macro SYSTEM_WGETRC was being used even when it was not defined,
  causing a %CC-E-UNDECLARED built-time error.  ([.src]init.c)

- Changed to avoid explicitly closing the log file when it's stderr.
  ([.src]log.c)

- A defect in the option parsing code could cause a %SYSTEM-F-ACCVIO
  run-time error when any short-form command-line option was specified.
  ([.src]main.c)

- Changed main() to use exit() instead of "return" at program end, to
  ensure consistent (POSIX) exit status values.  ([.src]main.c)

- A change in an OpenSSL function argument type after OpenSSL version
  0.9.8 could cause a %CC-W-NOTCONSTQUAL build-time warning when using
  OpenSSL version 0.9.8 (which includes HP SSL V1.4).  Adding a
  non-"const" type cast seems to satisfy everyone.  ([.src]openssl.c)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.11.4a  2008-11-07
   ---------------------------

- General code update to Wget 1.11.4.

- Changed to avoid trying "LIST -a" for a VMS FTP server.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.10.2c  2006-11-16
   ---------------------------

- Changed the code which determines the FTP server type to avoid an
  ACCVIO if no text was returned in response to a "SYST" inquiry.

- Fixed a command-line parsing problem with the "--ftp-stmlf" option.

- Fixed an unclosed comment (again?) in FTP-LS.C which could have caused
  problems with ODS5 extended file names.

- Changed VMS-WGET.COM to assume that nothing special is now required
  for use with the MultiNet IP package.  For obsolete VMS and/or
  MultiNet versions where the old MultiNet-specific changes are still
  needed, specify "MULTINET" on the VMS-WGET.COM command line.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.10.2b  2004-12-15
   ---------------------------

- Changed the "-V" version report to include some host type information.

- Changed the I/O scheme on VMS for progress dots to avoid spurious
  newline characters when output is directed to a file.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.10.2a  2004-10-13
   ---------------------------

- General code update to Wget 1.10.2.

- Many legitimate FTP CWD operations on a VMS FTP server failed.  The
  typical symptom was "No such directory `perfectly/vaild/directory'."

- FTP CWD operations on a VMS FTP server now end with a "CWD []".  For
  an FTP URL like "ftp://host/a/b/c/d.e" (and contrary to the RFC), Wget
  uses a UNIX-like directory specification in its CWD command, here,
  "CWD a/b/c".  This was observed to switch a TCPware FTP server
  (V5.6-2) into its UNIX emulation mode.  Because Wget checks the system
  type only once at the beginning of a session, the associated change in
  directory listing format confused the program.  The typical symptom
  was "No such file `-rwx---r-x'."  The added "CWD []" command resets
  the TCPware server to VMS mode, and should be harmless on other VMS
  FTP servers.

- VMS-WGET.COM now finds MMK when it's on DCL$PATH as well as when a
  foreign command symbol "MMK" is defined.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.10.1a  2004-09-09
   ---------------------------

- General code update to Wget 1.10.1.

- VMS-specific files are now in the new [.VMS] directory.

- Changes to VMS-WGET.COM:
   - New command-line option, LARGE, enables large-file support on
     non-VAX systems.
   - VMS-WGET.COM may now be run from any default directory, not only
     [.SRC].

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.9.1e  2005-09-09
   --------------------------

- The default User-Agent string on VMS now includes the host
  architecture and VMS version.  For example, "Wget/1.9.1e (VMS Alpha
  V7.3-2)".

- Fixed a problem on VMS with an ODS5 destination file system when a
  URL-derived file name contained an invalid character ("?" or "*").  A
  typical complaint might look like:
     Cannot write to `www.foraddift.non/aspx/index.asp?sid=463e'
     (file specification syntax error).
  Now, "?" is converted to "!", and "*" to "#".

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.9.1d  2005-06-21
   --------------------------

- Replaced the remaining instances where ".orig" was appended to a file
  name.  Now (for VMS), "_orig" is used everywhere (except in the
  documentation).

- Disabled (for VMS) the code which appended ".nnn" (decimal "nnn") to
  an output file name to avoid overwriting an existing file.  The file
  name is now used unchanged, and VMS file versioning is expected to
  prevent overwriting.  (The multi-dot file names made this way caused
  I/O errors on ODS2 file systems.)

- Changed to do translation of CR-LF line endings to local line endings
  for ASCII FTP transfers.

- Changed (on VMS) to use fixed-512 format for binary FTP files.  Added
  the new "--ftp-stmlf" option ("ftpstmlf on" command) to let the user
  restore the old behavior, where Stream_LF was used for both ASCII and
  binary.

- Added (on VMS) a new open callback function which senses (where
  supported) the process RMS_DEFAULT values for file extend quantity
  (deq), multi-block count (mbc), and multi-buffer count (mbf), and sets
  the FAB/RAB parameters accordingly.  The default deq is now much
  larger than before (16384, was none), and the default mbc is now 127
  (was none), speeding creation of a large output file.  Explicitly set
  RMS_DEFAULT values override built-in defaults.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.9.1c  2004-12-15
   --------------------------

- Added https (SSL) support, changing DESCRIP.MMS and VMS-WGET.COM, and
  adding WGET_SSL.OPT and WGET_SSL_HP.OPT.  Limited testing was done on
  Alpha, using HP SSL V1.1-B and OpenSSL version 0.9.7e.  The build
  procedure automatically enables SSL support if it can find one of the
  SSL header files.  The details are explained in comments in
  VMS-WGET.COM, including its new command-line options, HPSSL and NOSSL.

- Changed CONNECT.C to fix some problems with MultiNet TCP/IP software.

   - A build problem related to header files (netdb.h) when compiled
     with MultiNet.  Typical symptom:

         %CC-E-REDEFSTRUCT, In this declaration, the struct "hostent" is
         redefined. at line number 178 in module NETDB of text library
         SYS$COMMON:[SYSLIB]DECC$RTLDEF.TLB;1

   - A run-time problem with an FTP URL. Typical symptom:

         accept: bad address

- Changed FTP.C to fix various problems with time-stamping ("-N",
  "--timestamping") when using an FTP URL.  Some of the misbehavior was
  specific to a VMS FTP server, but not all.  The typical result was a
  file with the modification date (and, in some cases, the creation
  date) left at the date of the download, rather than set to match the
  date on the server.  Some misleading diagnostic messages also have
  been corrected.

- Changed FTP-LS.C to fix a typographical error (unclosed comment).

- Changed NETRC.C to fix a potential build problem on non-VMS systems.
  Adding some VMS-specific code introduced some improper statement
  ordering, which may generate complaints (or failure) with some C
  compilers.

- Changed VMS.C to fix a problem with the utime() function (supplied
  with Wget) when the user specified a non-UNIX file name with the Wget
  "-O" option.  Typical symptom:

     utime(home_sms:[sms.wget]t.h): error 0

  As the message might suggest, the file date-time was not being set
  correctly.  With this fix, utime() should work with either a UNIX-like
  or VMS-like file specification, and it should also set errno properly
  when it fails, enabling a more informative error message.

- New MMS/MMK description files and associated command procedures enable
  automatic source dependency generation.  Changed: DESCRIP.MMS and
  VMS-WGET.COM.  New: DESCRIP_DEPS.MMS, DESCRIP_MKDEPS.MMS,
  DESCRIP_SRC.MMS, COLLECT_DEPS.COM, and MOD_DEP.COM.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.9.1b  2004-09-28
   --------------------------

- Changed CONFIG.H_VMS to fix a build problem with C RTL before VMS
  V7.3-1 with C Runtime ECO V3.0 on Alpha:
     %LINK-W-NUDFSYMS, 2 undefined symbols:
     %LINK-I-UDFSYM,         DECC$GXSNPRINTF
     %LINK-I-UDFSYM,         DECC$GXVSNPRINTF
     [...]

- Changed VMS.C:

   - Fixed a build problem with C RTL before V7.2:
        %CC-E-UNDECLARED, In this statement, "DVI$C_ACP_F11V5" is not
        declared. at line number 262 in file
        disk:[xxx.WGET-1_9_1A_VMS.SRC]VMS.C;1

   - Fixed a build problem with C RTL before VMS V7.3 with C Runtime ECO
     2 on Alpha:
        %CC-I-IMPLICITFUNC, In this statement, the identifier
        "decc$feature_get_index" is implicitly declared as a function.
        at line number 155 in file disk:[xxx.WGET-1_9_1A_VMS.SRC]VMS.C;1

        %CC-I-IMPLICITFUNC, In this statement, the identifier
        "decc$feature_get_value" is implicitly declared as a function.
        at line number 159 in file disk:[xxx.WGET-1_9_1A_VMS.SRC]VMS.C;1

        %CC-I-IMPLICITFUNC, In this statement, the identifier
        "decc$feature_set_value" is implicitly declared as a function.
        at line number 169 in file disk:[xxx.WGET-1_9_1A_VMS.SRC]VMS.C;1

     and the related:

        %LINK-W-NUDFSYMS, 3 undefined symbols:
        %LINK-I-UDFSYM,         DECC$FEATURE_GET_INDEX
        %LINK-I-UDFSYM,         DECC$FEATURE_GET_VALUE
        %LINK-I-UDFSYM,         DECC$FEATURE_SET_VALUE
        [...]

   - Fixed a build problem with Multinet involving use of both the
     Multinet-specific and generic netdb.h header files:

        %CC-E-REDEFSTRUCT, In this declaration, the struct "hostent" is
        redefined. at line number 178 in module NETDB of text library
        SYS$COMMON:[SYSLIB]DECC$RTLDEF.TLB;1

   - Fixed a typographical error (unclosed comment) which kept the C RTL
     feature DECC$EFS_CHARSET from being enabled as intended. This
     caused a run-time problem on non-VAX systems with some ODS5
     extended file specifications with multiple dots in file names,
     typically when "-m" ("--mirror"), "-O" ("--output-document"), or
     "-r" ("--recursive") was used:

        hostname/test/a.B.c: file specification syntax error
     or
        test/a.B.c: non-translatable vms error code: 0x186D4
        rms-f-syn, file specification syntax error

   - Fixed a spurious diagnostic message when doing HTTP and
     complex FTP transfers:

        utime().  sys$parse() = 00010001.

- Changed FTP.C to fix a variety of problems encountered when using a
  VMS FTP server.  These problems (not seen in Wget 1.5.3h) were caused
  mostly by inappropriate code added (in the main Wget development
  stream) to "help" deal with a VMS FTP server.  Removing this code and
  reforming the procedure used for getting to relative directories seems
  to have fixed the problems.  As before, a single-slash URL
  ("ftp://host/one/two/name.type") will be treated as specifying a
  relative directory ("one/two"), while a double-slash URL
  ("ftp://host//one/two/name.type") will be treated as specifying an
  absolute directory ("/one/two").  As usual, the VMS FTP server will
  attempt to puzzle out whether "/one/two" should really be interpreted
  as "one:[two]", but it's better equipped to do it than Wget is.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Version 1.9.1a  2004-04-28
   --------------------------

- Changes to VMS-WGET.COM since Wget 1.5.3h:

   - A separate LIST command-line option now controls compiler listing
     files.  The DBG option no longer implies compiler listing files.
     The LIST option also generates a link map with cross-reference.

   - The DBG option may actually work now.

   - Added support for IA64 architecture.

- Changes to DESCRIP.MMS since Wget 1.5.3h:

   - Compiler listing files (.LIS) and link maps (.MAP) are now put into
     the system-specific directory with the corresponding object files
     (.OBJ), namely, [.SRC.ALPHA], [.SRC.IA64], or [.SRC.VAX].
     Previously, they were put into the source directory ([.SRC])
     itself.

   - CLEAN target now deletes any .LIS and .MAP files.

   - New HELP target creates a Wget help library.

   - The OS_TYPE macro is now defined, including the VMS version.

   - No more complaints like "%MMS-W-MBREDEFILL, Illegal attempt to
     redefine macro 'CFLAGS'" on old versions of MMS.

   - A separate LIST macro now controls compiler listing files.  The
     DBG macro no longer implies compiler listing files.

   - New support for IA64 architecture.

- Built-in initialization of some DECC$* run-time options on non-VAX
  systems.  Currently this behavior is compiled in, so any changes must
  be made in the VMS.C source file.  These changes have no effect on VAX
  (or older Alpha) systems where the OS and C run-time support is
  absent.

   - Command-line case preservation.  Wget for VMS enables the following
     DECC$* run-time option:
        DECC$ARGV_PARSE_STYLE
     With extended command parsing enabled ("SET PROCESS
     /PARSE_STYLE = EXTENDED"), command-line case is preserved.  This
     obviates quoting case-sensitive option switches, URLs, and other
     parameters.

   - Extended file names on ODS5 file systems.  Wget for VMS enables the
     following DECC$* run-time options:
        DECC$EFS_CASE_PRESERVE
        DECC$EFS_CHARSET
     Thus, if an ODS5 file system is used as the destination for
     downloaded files, multiple dots will be permitted and case will be
     preserved in file names.  If an ODS2 file system is used, the same
     character substitutions will be made as in Wget 1.5.3h, namely,
     "." -> "_" (where needed), "~" -> "-", and "@" -> "$".

------------------------------------------------------------------------

      Changes to Source Files
      -----------------------

   Files new for VMS, in [.src]:

      decc_ver.c         Diagnostic program to provide build environment
                         information.

      vms.c              Various VMS-specific code: DEC C run-time
                         initialization, ODS2-ODS5 file system
                         detection, ODS2 file name adjustment, file-open
                         callback function for better RMS parameters,
                         "timegm()" and "utime()" replacement functions,
                         and, for VMS before V7.0, "getpwuid()" and
                         "localtime_r()".

   Files new for VMS, in [.lib], [.src]:

      descrip_deps.mms   Source dependency description file.

      descrip_mods.mms   Source module description file.

      descrip_src.mms    Source directory-specific description file.

   Files new for VMS, in [.vms]:

      alloca.h           Dummy <alloca.h> header file.

      byteswap.h         GNUlib <byteswap.h> header file.

      check_large.com    Check large-file support (on Alpha).

      collect_deps.com   Dependency collector for descrip_mkdeps.mms.

      config.h_vms       VMS-specific config.h.

      configmake.h       Dummy "configmake.h" file.

      descrip.mms        Main MMK or MMS description ("make") file.

      descrip_mkdeps.mms  Source dependency generator description file.

      descrip_src.mms    Source list description file.

      descrip_src_flags.mms  Source compile and link flags description file.

      errno.h            Jacket header file for <errno.h>.

      fcntl.h            Jacket header file for <fcntl.h>.

      file.h             Jacket header file for <file.h>.

      find_lib.com       DCL procedure used to find a zlib object

      fnmatch.h          GNUlib <fnmatch.h> header file.

      getopt.h           GNUlib <getopt.h> header file.

      select.h           Dummy <select.h> header file.

      spawn.h            Dummy <spawn.h> header file.

      stdalign.h         GNUlib <stdalign.h> header file.

      stdint.h           VMS-specific <stdint.h>.

      stdio.h            Jacket header file for <stdio.h>.

      stdlib.h           Jacket header file for <stdlib.h>.

      string.h           Jacket header file for <string.h>.

      termios.h          Dummy <select.h> file.

      time.h             Jacket header file for <time.h>.

      unistd.h           Jacket header file for <unistd.h>.

      vms.h              VMS-specific header file.  For VMS C RTL before
                         V7.3, replacement for <utime.h>.  For VMS C RTL
                         before V7.0, replacement for <pwd.h>.
                         Declarations of replacement data
                         types/structures and function prototypes for
                         vms.c.

      vms_ip.h           IP software type-specific "#include"
                         directives.

      vms_notes.txt      These notes.

      wget.hlp           Simple help file.

      wget_ssl_hp.opt    LINK options file for HP SSL.

      wget_ssl_hp1.opt   LINK options file for HP SSL1.

      wget_ssl_o_olb.opt  LINK options file for OpenSSL (.OLB, without
                          "SSL_" name prefix).

      wget_ssl_o_olb_ssl.opt  LINK options file for OpenSSL (.OLB, with
                              "SSL_" name prefix).

      wget_ssl_o_shr.opt  LINK options file for OpenSSL (.EXE, without
                          "SSL_" name prefix).

      wget_ssl_o_shr_ssl.opt  LINK options file for OpenSSL (.EXE, with
                              "SSL_" name prefix).

      zlib.h             Jacket header file for <zlib.h>.


   Files modified for VMS, in [.src]:

      hsts.c             Changed to use new init.c:ajoin_dir_file() to
                         join home directory with file name for hsts
                         test files.
                         Added type casts to accommodate signed time_t.

      init.c             Added new ajoin_dir_file() function to join a
                         directory name with a file name, to replace
                         multiple instances of aprintf() using a
                         VMS-incompatible format.
                         Changed to use new ajoin_dir_file() to join
                         home directory and ".wgetrc", removing some
                         visible VMS dependence.

      init.h             Added prototype for init.c:new ajoin_dir_file()
                         function.

      log.c              Changed to disable check_redirect_output() on
                         VMS.

      main.c             Changed to use new init.c:ajoin_dir_file() to
                         join home directory and ".wget-hsts".
                         Removed "`" from some help text.
                         Added a "not implemented" message for
                         use_askpass() on VMS.
                         Added a VMS-specific supplement to the
                         -V/--version report, currently showing the
                         (run-time) VMS version and the OpenSSL version,
                         if enabled.

      utils.c            Readjusted some VMS-specific data types to
                         track changes to non-VMS data types.

------------------------------------------------------------------------

      Instructions
      ------------

   Extract the files from the distribution kit.

      Note:
      The source kit may contain one or more files in the "tests"
      directory whose names are too long for an ODS2 disk.  They will
      cause errors when the kit is unpacked, but these files are not
      required on VMS.

For example, starting with a zip archive named "wget-1_20_3a_src.zip":

      unzip wget-1_20_3a_src.zip

   The MMS/MMK builders may need some help from the user to enable the
desired optional features, and/or to deal with differences between MMK
and MMS features.

   The builder options (MMS/MMK macros) are described in the main
builder file, "[.vms]descrip.mms".  By default, large-file support will
be enabled on Alpha and IA64 systems,  Large-file support is not
available on VAX.

      On Alpha, the builder will initially assume that large-file
      support is available, but will test large-file support before
      continuing.  If large-file support is not available, the build
      will fail, and a message will advise the user to add "NOLARGE" to
      the build command.

   HTTPS support is optional, and requires an (external) SSL product.
To build using one of HP's SSL products, specify "HPSSL=1" (to use HP's
SSL product), or "HPSSL1=1" (to use HP's SSL1 product).  To use a
user-built OpenSSL kit, see "OpenSSL Details", below.

  An SSL kit based on an OpenSSL version older than 0.9.8 may cause
build problems because it lacks the function "a2i_IPADDRESS()".  Thus,
the HP SSL V1.3 kit (based on OpenSSL 0.9.7) is probably too old, but
the V1.4 kit (based on OpenSSL 0.9.8) should be adequate.

   An old version of MMK or MMS may need a definition of
"MMSDESCRIPTION_FILE".  An error message should explain this, if needed.

   On non-VAX systems, the C compiler may emit some %CC-I-INTCONSTTRUNC
complaints when compiling "[.src]hash.c", but these should be harmless.
(The VMS system header file <inttypes.h> declares "uintptr_t" as a
64-bit item ("typedef uint64_t") on any non-VAX system, even in an
environment with 32-bit pointers.)

   On VAX systems, the C compiler may emit some %CC-I-LONGDOUBLENYI
complaints when compiling "[.lib]printf-args.c", "[.lib]printf-parse.c",
and "[.lib]vasnprintf.c", but these should be harmless.

   Executables in pre-built VMS kits are normally built with the
-d/--debug option and large-file support (except on VAX) enabled, and
with no HTTPS (SSL) support.  When adding or changing HTTPS (SSL)
support, always do an "MMS CLEAN" first, to remove any object files
which were compiled with a different SSL option.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

      OpenSSL Details
      ...............

   To build Wget using a user-built OpenSSL kit, the user must run the
OpenSSL "startup" DCL script (found in the OpenSSL installation
directory tree) for the OpenSSL version to be used in the build.  Its
name and location depend on the OpenSSL version.  General guide:

      # OpenSSL pre-1.1.1:
      @ SSLROOT:[VMS]openssl_startup.com

      # OpenSSL 1.1.1 or later:
      @ OSSL$INSTROOT:[SYS$STARTUP]openssl_startup<vrsn>.com

(Note that the logical names SSLROOT and OSSL$INSTROOT are defined by
those DCL scripts, so some exploration may be needed to find those
scripts in the OpenSSL installation directory tree.)

   When building with OpenSSL for HTTPS (SSL) support, either object
libraries (.OLB) or shared images (.EXE) may be used.  Shared images are
the default choice.  Specify the MMS macro OSSLOLB=1 to choose object
libraries.

   When building with OpenSSL shared images, logical names like SSLLIB
(pre-1.1.1) or OSSL$LIBCRYPTO_SHR and OSSL$LIBSSL_SHR (1.1.1 or later)
will be used at build (LINK) time to locate the OpenSSL shared images.
Consult the various LINK options files, [.vms]wget_ssl_*_shr.opt to see
the actual paths used in a particular case.

   At run time, these logical names may not be defined, and then the
image activator may complain if the appropriate shared image is not
found in the default location, SYS$SHARE.  For example:

      %DCL-W-ACTIMAGE, error activating image OSSL$LIBCRYPTO_SHR
      -CLI-E-IMAGEFNF, image file not found
       ITX$DKA1:[SYS0.SYSCOMMON.][SYSLIB]OSSL$LIBCRYPTO_SHR.EXE;

   The user can either define the relevant logical name(s), or else
ensure that the appropriate shared images are placed in SYS$SHARE.

   For the newer (1.1.1 or later) scheme, both the versionless name
specified in the LINK options file and the original versioned name might
be needed.  For example:

      ITX $ dire /size /notrail sys$share:ossl*

      Directory SYS$COMMON:[SYSLIB]

      ossl$libcrypto0101_shr.EXE;1
                                11216
      OSSL$LIBCRYPTO_SHR.EXE;1 -> ossl$libcrypto0101_shr.EXE
                                    1
      ossl$libssl0101_shr.EXE;1
                                 2491
      OSSL$LIBSSL_SHR.EXE;1 -> ossl$libssl0101_shr.EXE
                                    1

   Either symlinks (as shown) or aliases (SET FILE /ENTER) should serve
here.

   HPSSL (or HPSSL1) shared images are normally found in SYS$SHARE, so
their use should require no special preparation.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   Example build commands
   ......................

      SET DEFAULT [.wget-1_20_3a_vms.vms]   ! Required.

      MMS CLEAN                             ! Delete all product files
                                            ! for the current
                                            ! architecture (large-file,
                                            ! except on VAX).

      MMS /MACRO = NOLARGE=1 CLEAN          ! Delete all product files
                                            ! for the current
                                            ! architecture (small-file).

      MMS CLEAN_ALL                         ! Delete all product files
                                            ! for all architectures.

      MMS                                   ! Standard build, no SSL.
                                            ! (Large-file, except on
                                            ! VAX.)

      MMS /MACRO = (NOLARGE=1)              ! Small-file, no-SSL build.

      MMS CLEAN                             ! Delete existing objects.
      MMS /MACRO = (HPSSL=1)                ! Add HTTPS support using HP
                                            ! SSL.

      MMS CLEAN                             ! Delete existing objects.
      MMS /MACRO = (HPSSL1=1)               ! Add HTTPS support using HP
                                            ! SSL1.

      MMS CLEAN                             ! Delete existing objects.
      MMS /MACRO = (OSSL=1)                 ! Add HTTPS support using
                                            ! OpenSSL (pre-1.1.1).

      MMS CLEAN                             ! Delete existing objects.
      MMS /MACRO = (OSSLD=1)                ! Add HTTPS support using
                                            ! OpenSSL (1.1.1 or later).

      DFLT = F$ENVIRONMENT( "DEFAULT")          ! Standard MMK build, with
      MMK /MACRO = (MMSDESCRIPTION_FILE='DFLT') ! explicit definition of
      DELETE /SYMBOL DFLT                       ! MMSDESCRIPTION_FILE.
                                                ! ("dev:[dir]" is enough.)

      MMS HELP                              ! Create a help library.
                                            ! (Optional.  See below.)


   Set the symbol for the foreign command:

      WGET :== $ actual_device:[actual.directory]WGET.EXE

   A very basic VMS HELP file is supplied in [.vms]wget.hlp.  To be
used, it must be added to a HELP library, either an existing library or
one just for Wget.  As shown in the example above, a new Wget help
library may be created using the MMS/MMK target "HELP".

   When a new HELP library is created, a logical name "HLP$LIBRARY_n"
may be defined to allow the HELP utility to find it.  See "HELP HELP
/USERLIBRARY" for details.

   Try to read the original documentation to learn how to use Wget.  The
principal differences in this VMS adaptation are:

   The "-b" ("background") option is ignored.  ("-b" uses "fork()".)

   The --use-askpass option is not supported.

   Excess dots are replaced by underscores in URL-derived file
specifications on ODS2 file systems.  For example, on a UNIX system, the
URL "ftp://ftp.anywhere.org/x.y.z/a.b.c" could produce the local file
"ftp.anywhere.org/x.y.z/a.b.c".  With this VMS adaptation, the local
ODS2 file would be "[.FTP_ANYWHERE_ORG.X_Y_Z]A_B.C".  On an ODS5 file
system, the file would be [.ftp^.anywhere^.org.x^.y^.z]a^.b.c".

   Additional VMS-specific usage information may be found in the VMS
HELP file (Source: [.vms]wget.hlp, Help library: [.vms]WGET.HLB) under
the topic "VMS_specifics".

