Chris@4
|
1 ZLIB version 1.2.7 for AS400 installation instructions
|
Chris@4
|
2
|
Chris@4
|
3 I) From an AS400 *SAVF file:
|
Chris@4
|
4
|
Chris@4
|
5 1) Unpacking archive to an AS400 save file
|
Chris@4
|
6
|
Chris@4
|
7 On the AS400:
|
Chris@4
|
8
|
Chris@4
|
9 _ Create the ZLIB AS400 library:
|
Chris@4
|
10
|
Chris@4
|
11 CRTLIB LIB(ZLIB) TYPE(*PROD) TEXT('ZLIB compression API library')
|
Chris@4
|
12
|
Chris@4
|
13 _ Create a work save file, for example:
|
Chris@4
|
14
|
Chris@4
|
15 CRTSAVF FILE(ZLIB/ZLIBSAVF)
|
Chris@4
|
16
|
Chris@4
|
17 On a PC connected to the target AS400:
|
Chris@4
|
18
|
Chris@4
|
19 _ Unpack the save file image to a PC file "ZLIBSAVF"
|
Chris@4
|
20 _ Upload this file into the save file on the AS400, for example
|
Chris@4
|
21 using ftp in BINARY mode.
|
Chris@4
|
22
|
Chris@4
|
23
|
Chris@4
|
24 2) Populating the ZLIB AS400 source library
|
Chris@4
|
25
|
Chris@4
|
26 On the AS400:
|
Chris@4
|
27
|
Chris@4
|
28 _ Extract the saved objects into the ZLIB AS400 library using:
|
Chris@4
|
29
|
Chris@4
|
30 RSTOBJ OBJ(*ALL) SAVLIB(ZLIB) DEV(*SAVF) SAVF(ZLIB/ZLIBSAVF) RSTLIB(ZLIB)
|
Chris@4
|
31
|
Chris@4
|
32
|
Chris@4
|
33 3) Customize installation:
|
Chris@4
|
34
|
Chris@4
|
35 _ Edit CL member ZLIB/TOOLS(COMPILE) and change parameters if needed,
|
Chris@4
|
36 according to the comments.
|
Chris@4
|
37
|
Chris@4
|
38 _ Compile this member with:
|
Chris@4
|
39
|
Chris@4
|
40 CRTCLPGM PGM(ZLIB/COMPILE) SRCFILE(ZLIB/TOOLS) SRCMBR(COMPILE)
|
Chris@4
|
41
|
Chris@4
|
42
|
Chris@4
|
43 4) Compile and generate the service program:
|
Chris@4
|
44
|
Chris@4
|
45 _ This can now be done by executing:
|
Chris@4
|
46
|
Chris@4
|
47 CALL PGM(ZLIB/COMPILE)
|
Chris@4
|
48
|
Chris@4
|
49
|
Chris@4
|
50
|
Chris@4
|
51 II) From the original source distribution:
|
Chris@4
|
52
|
Chris@4
|
53 1) On the AS400, create the source library:
|
Chris@4
|
54
|
Chris@4
|
55 CRTLIB LIB(ZLIB) TYPE(*PROD) TEXT('ZLIB compression API library')
|
Chris@4
|
56
|
Chris@4
|
57 2) Create the source files:
|
Chris@4
|
58
|
Chris@4
|
59 CRTSRCPF FILE(ZLIB/SOURCES) RCDLEN(112) TEXT('ZLIB library modules')
|
Chris@4
|
60 CRTSRCPF FILE(ZLIB/H) RCDLEN(112) TEXT('ZLIB library includes')
|
Chris@4
|
61 CRTSRCPF FILE(ZLIB/TOOLS) RCDLEN(112) TEXT('ZLIB library control utilities')
|
Chris@4
|
62
|
Chris@4
|
63 3) From the machine hosting the distribution files, upload them (with
|
Chris@4
|
64 FTP in text mode, for example) according to the following table:
|
Chris@4
|
65
|
Chris@4
|
66 Original AS400 AS400 AS400 AS400
|
Chris@4
|
67 file file member type description
|
Chris@4
|
68 SOURCES Original ZLIB C subprogram sources
|
Chris@4
|
69 adler32.c ADLER32 C ZLIB - Compute the Adler-32 checksum of a dta strm
|
Chris@4
|
70 compress.c COMPRESS C ZLIB - Compress a memory buffer
|
Chris@4
|
71 crc32.c CRC32 C ZLIB - Compute the CRC-32 of a data stream
|
Chris@4
|
72 deflate.c DEFLATE C ZLIB - Compress data using the deflation algorithm
|
Chris@4
|
73 gzclose.c GZCLOSE C ZLIB - Close .gz files
|
Chris@4
|
74 gzlib.c GZLIB C ZLIB - Miscellaneous .gz files IO support
|
Chris@4
|
75 gzread.c GZREAD C ZLIB - Read .gz files
|
Chris@4
|
76 gzwrite.c GZWRITE C ZLIB - Write .gz files
|
Chris@4
|
77 infback.c INFBACK C ZLIB - Inflate using a callback interface
|
Chris@4
|
78 inffast.c INFFAST C ZLIB - Fast proc. literals & length/distance pairs
|
Chris@4
|
79 inflate.c INFLATE C ZLIB - Interface to inflate modules
|
Chris@4
|
80 inftrees.c INFTREES C ZLIB - Generate Huffman trees for efficient decode
|
Chris@4
|
81 trees.c TREES C ZLIB - Output deflated data using Huffman coding
|
Chris@4
|
82 uncompr.c UNCOMPR C ZLIB - Decompress a memory buffer
|
Chris@4
|
83 zutil.c ZUTIL C ZLIB - Target dependent utility functions
|
Chris@4
|
84 H Original ZLIB C and ILE/RPG include files
|
Chris@4
|
85 crc32.h CRC32 C ZLIB - CRC32 tables
|
Chris@4
|
86 deflate.h DEFLATE C ZLIB - Internal compression state
|
Chris@4
|
87 gzguts.h GZGUTS C ZLIB - Definitions for the gzclose module
|
Chris@4
|
88 inffast.h INFFAST C ZLIB - Header to use inffast.c
|
Chris@4
|
89 inffixed.h INFFIXED C ZLIB - Table for decoding fixed codes
|
Chris@4
|
90 inflate.h INFLATE C ZLIB - Internal inflate state definitions
|
Chris@4
|
91 inftrees.h INFTREES C ZLIB - Header to use inftrees.c
|
Chris@4
|
92 trees.h TREES C ZLIB - Created automatically with -DGEN_TREES_H
|
Chris@4
|
93 zconf.h ZCONF C ZLIB - Compression library configuration
|
Chris@4
|
94 zlib.h ZLIB C ZLIB - Compression library C user interface
|
Chris@4
|
95 as400/zlib.inc ZLIB.INC RPGLE ZLIB - Compression library ILE RPG user interface
|
Chris@4
|
96 zutil.h ZUTIL C ZLIB - Internal interface and configuration
|
Chris@4
|
97 TOOLS Building source software & AS/400 README
|
Chris@4
|
98 as400/bndsrc BNDSRC Entry point exportation list
|
Chris@4
|
99 as400/compile.clp COMPILE CLP Compile sources & generate service program
|
Chris@4
|
100 as400/readme.txt README TXT Installation instructions
|
Chris@4
|
101
|
Chris@4
|
102 4) Continue as in I)3).
|
Chris@4
|
103
|
Chris@4
|
104
|
Chris@4
|
105
|
Chris@4
|
106
|
Chris@4
|
107 Notes: For AS400 ILE RPG programmers, a /copy member defining the ZLIB
|
Chris@4
|
108 API prototypes for ILE RPG can be found in ZLIB/H(ZLIB.INC).
|
Chris@4
|
109 Please read comments in this member for more information.
|
Chris@4
|
110
|
Chris@4
|
111 Remember that most foreign textual data are ASCII coded: this
|
Chris@4
|
112 implementation does not handle conversion from/to ASCII, so
|
Chris@4
|
113 text data code conversions must be done explicitely.
|
Chris@4
|
114
|
Chris@4
|
115 Mainly for the reason above, always open zipped files in binary mode.
|