Chris@4: ZLIB version 1.2.7 for AS400 installation instructions Chris@4: Chris@4: I) From an AS400 *SAVF file: Chris@4: Chris@4: 1) Unpacking archive to an AS400 save file Chris@4: Chris@4: On the AS400: Chris@4: Chris@4: _ Create the ZLIB AS400 library: Chris@4: Chris@4: CRTLIB LIB(ZLIB) TYPE(*PROD) TEXT('ZLIB compression API library') Chris@4: Chris@4: _ Create a work save file, for example: Chris@4: Chris@4: CRTSAVF FILE(ZLIB/ZLIBSAVF) Chris@4: Chris@4: On a PC connected to the target AS400: Chris@4: Chris@4: _ Unpack the save file image to a PC file "ZLIBSAVF" Chris@4: _ Upload this file into the save file on the AS400, for example Chris@4: using ftp in BINARY mode. Chris@4: Chris@4: Chris@4: 2) Populating the ZLIB AS400 source library Chris@4: Chris@4: On the AS400: Chris@4: Chris@4: _ Extract the saved objects into the ZLIB AS400 library using: Chris@4: Chris@4: RSTOBJ OBJ(*ALL) SAVLIB(ZLIB) DEV(*SAVF) SAVF(ZLIB/ZLIBSAVF) RSTLIB(ZLIB) Chris@4: Chris@4: Chris@4: 3) Customize installation: Chris@4: Chris@4: _ Edit CL member ZLIB/TOOLS(COMPILE) and change parameters if needed, Chris@4: according to the comments. Chris@4: Chris@4: _ Compile this member with: Chris@4: Chris@4: CRTCLPGM PGM(ZLIB/COMPILE) SRCFILE(ZLIB/TOOLS) SRCMBR(COMPILE) Chris@4: Chris@4: Chris@4: 4) Compile and generate the service program: Chris@4: Chris@4: _ This can now be done by executing: Chris@4: Chris@4: CALL PGM(ZLIB/COMPILE) Chris@4: Chris@4: Chris@4: Chris@4: II) From the original source distribution: Chris@4: Chris@4: 1) On the AS400, create the source library: Chris@4: Chris@4: CRTLIB LIB(ZLIB) TYPE(*PROD) TEXT('ZLIB compression API library') Chris@4: Chris@4: 2) Create the source files: Chris@4: Chris@4: CRTSRCPF FILE(ZLIB/SOURCES) RCDLEN(112) TEXT('ZLIB library modules') Chris@4: CRTSRCPF FILE(ZLIB/H) RCDLEN(112) TEXT('ZLIB library includes') Chris@4: CRTSRCPF FILE(ZLIB/TOOLS) RCDLEN(112) TEXT('ZLIB library control utilities') Chris@4: Chris@4: 3) From the machine hosting the distribution files, upload them (with Chris@4: FTP in text mode, for example) according to the following table: Chris@4: Chris@4: Original AS400 AS400 AS400 AS400 Chris@4: file file member type description Chris@4: SOURCES Original ZLIB C subprogram sources Chris@4: adler32.c ADLER32 C ZLIB - Compute the Adler-32 checksum of a dta strm Chris@4: compress.c COMPRESS C ZLIB - Compress a memory buffer Chris@4: crc32.c CRC32 C ZLIB - Compute the CRC-32 of a data stream Chris@4: deflate.c DEFLATE C ZLIB - Compress data using the deflation algorithm Chris@4: gzclose.c GZCLOSE C ZLIB - Close .gz files Chris@4: gzlib.c GZLIB C ZLIB - Miscellaneous .gz files IO support Chris@4: gzread.c GZREAD C ZLIB - Read .gz files Chris@4: gzwrite.c GZWRITE C ZLIB - Write .gz files Chris@4: infback.c INFBACK C ZLIB - Inflate using a callback interface Chris@4: inffast.c INFFAST C ZLIB - Fast proc. literals & length/distance pairs Chris@4: inflate.c INFLATE C ZLIB - Interface to inflate modules Chris@4: inftrees.c INFTREES C ZLIB - Generate Huffman trees for efficient decode Chris@4: trees.c TREES C ZLIB - Output deflated data using Huffman coding Chris@4: uncompr.c UNCOMPR C ZLIB - Decompress a memory buffer Chris@4: zutil.c ZUTIL C ZLIB - Target dependent utility functions Chris@4: H Original ZLIB C and ILE/RPG include files Chris@4: crc32.h CRC32 C ZLIB - CRC32 tables Chris@4: deflate.h DEFLATE C ZLIB - Internal compression state Chris@4: gzguts.h GZGUTS C ZLIB - Definitions for the gzclose module Chris@4: inffast.h INFFAST C ZLIB - Header to use inffast.c Chris@4: inffixed.h INFFIXED C ZLIB - Table for decoding fixed codes Chris@4: inflate.h INFLATE C ZLIB - Internal inflate state definitions Chris@4: inftrees.h INFTREES C ZLIB - Header to use inftrees.c Chris@4: trees.h TREES C ZLIB - Created automatically with -DGEN_TREES_H Chris@4: zconf.h ZCONF C ZLIB - Compression library configuration Chris@4: zlib.h ZLIB C ZLIB - Compression library C user interface Chris@4: as400/zlib.inc ZLIB.INC RPGLE ZLIB - Compression library ILE RPG user interface Chris@4: zutil.h ZUTIL C ZLIB - Internal interface and configuration Chris@4: TOOLS Building source software & AS/400 README Chris@4: as400/bndsrc BNDSRC Entry point exportation list Chris@4: as400/compile.clp COMPILE CLP Compile sources & generate service program Chris@4: as400/readme.txt README TXT Installation instructions Chris@4: Chris@4: 4) Continue as in I)3). Chris@4: Chris@4: Chris@4: Chris@4: Chris@4: Notes: For AS400 ILE RPG programmers, a /copy member defining the ZLIB Chris@4: API prototypes for ILE RPG can be found in ZLIB/H(ZLIB.INC). Chris@4: Please read comments in this member for more information. Chris@4: Chris@4: Remember that most foreign textual data are ASCII coded: this Chris@4: implementation does not handle conversion from/to ASCII, so Chris@4: text data code conversions must be done explicitely. Chris@4: Chris@4: Mainly for the reason above, always open zipped files in binary mode.