| 1 |
Fri Dec 24 10:58:16 2010 |
| 2 |
Dave Pitts <[email protected]> |
| 3 |
---------------------------- |
| 4 |
|
| 5 |
GAWK on z/OS |
| 6 |
|
| 7 |
1. To unpack the tarball: |
| 8 |
|
| 9 |
$ gunzip -c gawk-4.0.0.tar.gz | pax -rv from=ISO8859-1,to=IBM-1047 |
| 10 |
|
| 11 |
This will extract the files and convert them from ASCII to EBCDIC. |
| 12 |
|
| 13 |
If you do not have the gunzip program on your system you can perform |
| 14 |
the operation on another system and copy the tar file to z/OS. Then |
| 15 |
unpack as follows: |
| 16 |
|
| 17 |
$ pax -rv from=ISO8859-1,to=IBM-1047 -f gawk-4.0.0.tar |
| 18 |
|
| 19 |
|
| 20 |
2. To Build |
| 21 |
|
| 22 |
$ ./configure CC=c89 |
| 23 |
$ make |
| 24 |
|
| 25 |
You will get compilation warnings of the form: |
| 26 |
|
| 27 |
WARNING CBC3343 ./dfa.c:332 Redeclaration of dfasyntax differs from |
| 28 |
previous declaration on line 404 of "./dfa.h". |
| 29 |
|
| 30 |
Because the IBM compiler complains when a function is decalared using |
| 31 |
prototypes in the header and is defined without prototypes in the code |
| 32 |
these warnings can be ignored. |
| 33 |
|
| 34 |
|
| 35 |
3. To Install: |
| 36 |
|
| 37 |
$ make install |
| 38 |
|
| 39 |
|
| 40 |
4. To Test (optional): |
| 41 |
|
| 42 |
$ make check |
| 43 |
|
| 44 |
NOTE: Since the test suite was defined for an ASCII and IEEE floating point |
| 45 |
environment several of the tests will fail under z/OS. |