Archive-Unzip-Burst
view release on metacpan or search on metacpan
unzip-6.0/vms/INSTALL.VMS view on Meta::CPAN
VMS (OpenVMS):
On VMS, two build methods are provided: a command procedure, and
description files for MMS or MMK. Both methods must be run from
the main directory, not the [.VMS] subdirectory.
A simple build using the command procedure looks like this:
@ [.VMS]BUILD_UNZIP.COM
A simple build using MMS or MMK looks like this:
MMS /DESCRIP = [.VMS]DESCRIP.MMS ! Or, with MMK, ...
MMK /DESCRIP = [.VMS]DESCRIP.MMS
Various options for each build method are explained in comments in
the main builder file, either BUILD_UNZIP.COM or DESCRIP.MMS.
Here are some more complex build examples:
o Build with the large-file option enabled (non-VAX only):
@ [.VMS]BUILD_UNZIP LARGE
or:
MMS /DESC = [.VMS] /MACRO = LARGE=1
o Re-link the executables (small-file and large-file):
@ [.VMS]BUILD_UNZIP LINK
@ [.VMS]BUILD_UNZIP LARGE LINK
or
MMK /DESC = [.VMS] CLEAN_EXE ! Deletes existing executables.
MMK /DESC = [.VMS] ! Builds new executables.
MMK /DESC = [.VMS] /MACRO = LARGE=1 CLEAN_EXE
MMK /DESC = [.VMS] /MACRO = LARGE=1
o Build a large-file product from scratch, for debug, getting
compiler listings and link maps:
MMS /DESC = [.VMS] CLEAN
MMS /DESC = [.VMS] /MACRO = (DBG=1, LARGE=1. LIST=1)
On VAX, the builders attempt to cope with the various available C
compilers, DEC/Compaq/HP C, VAX C, or GNU C. If DEC/Compaq/HP C is
not available or not desired, comments in the relevant builder file
explain the command-line options used to select a different
compiler.
By default, Zip uses (and UnZip supports) the "deflate" compression
method. To add support for the optional "bzip2" compression method,
first obtain and build the bzip2 software (http://www.bzip.org/ or,
for a more VMS-friendly kit, http://antinode.info/dec/sw/bzip2.html).
Then, define the macro IZ_BZIP2 on the BUILD_UNZIP.COM or MMS/MMK
command line to specify the directory where the bzip2 files may be
found. For example:
@ [.VMS]BUILD_UNZIP LARGE -
IZ_BZIP2=SYS$SYSDEVICE:[UTILITY.SOURCE.BZIP2.BZIP2-1_0_4B_VMS]
or:
MMS /DESC = [.VMS] /MACRO = (LARGE=1, -
IZ_BZIP2=SYS$SYSDEVICE:[UTILITY.SOURCE.BZIP2.BZIP2-1_0_4B_VMS])
Note that historically, UnZip has been built with the default
compiler option, /NAMES = UPPERCASE, while bzip2 is normally built
with /NAMES = AS_IS, to avoid name collisions. With modern
compilers, the "#pragma names" directives in [.VMS]BZLIB.H will
handle these differences without user intervention. An old
compiler (for example, DEC C V4.0-000) will emit complaints
%CC-I-UNKNOWNPRAGMA, and will mishandle the bzip2 library function
names, which will cause the link to fail. To solve this problem,
either build the bzip2 BZ_NO_STDIO object library with /NAMES =
UPPERCASE, or else build UnZip with /NAMES = AS_IS. For example:
( run in 1.411 second using v1.01-cache-2.11-cpan-c221a9de4ec )