| 1 | Wed Jul 28 16:28:42 IDT 2004
|
|---|
| 2 | ============================
|
|---|
| 3 | As of gawk 3.1.4, configure should correctly handle HP-UX and
|
|---|
| 4 | I18N issues. -- Arnold
|
|---|
| 5 | --------------------------------------------------------------
|
|---|
| 6 | 2003-12-10 15:19:38 EST
|
|---|
| 7 | Michael Elizabeth Chastain <[email protected]>
|
|---|
| 8 |
|
|---|
| 9 | I built and tested gawk on hppa-hp-hpux11.11 and ia64-hp-hpux11.23.
|
|---|
| 10 | All the tests in the test suite passed.
|
|---|
| 11 |
|
|---|
| 12 | I built with these compilers:
|
|---|
| 13 |
|
|---|
| 14 | gcc 3.3.2
|
|---|
| 15 | hp ansi C from /opt/ansic/bin
|
|---|
| 16 | hp aCC from /opt/aCC/bin
|
|---|
| 17 |
|
|---|
| 18 | I ran into these problems:
|
|---|
| 19 |
|
|---|
| 20 | NLS does not work; configure with --disable-nls.
|
|---|
| 21 | -D_XOPEN_SOURCE=500 does not work.
|
|---|
| 22 | Multibyte support is not available.
|
|---|
| 23 |
|
|---|
| 24 | To get multibyte support, the following ugly hack might work:
|
|---|
| 25 | --- gawk-3.1.3.orig/custom.h 2003-06-09 17:45:53.000000000 +0200
|
|---|
| 26 | +++ gawk-3.1.3/custom.h 2003-12-17 15:55:04.000000000 +0100
|
|---|
| 27 | @@ -101,4 +101,7 @@
|
|---|
| 28 | #undef HAVE_TZSET
|
|---|
| 29 | #define HAVE_TZSET 1
|
|---|
| 30 | #define _TZSET 1
|
|---|
| 31 | +/* an ugly hack: */
|
|---|
| 32 | +#include <sys/_mbstate_t.h>
|
|---|
| 33 | +#define HAVE_MBRTOWC 1
|
|---|
| 34 | #endif
|
|---|
| 35 |
|
|---|
| 36 | -------------------------------
|
|---|
| 37 | Mon, 27 May 2002 17:55:46 +0800
|
|---|
| 38 |
|
|---|
| 39 | The network support "|&" may not work under HP-UX 11.
|
|---|
| 40 | An error message appears similar to this:
|
|---|
| 41 | gawk: test_script.awk:3: fatal: get_a_record: iop->buf: can't allocate -61246
|
|---|
| 42 | bytes of memory (not enough space)
|
|---|
| 43 |
|
|---|
| 44 | Solution:
|
|---|
| 45 | This is a bug in the fstat() call of HP-UX 11.00, please apply
|
|---|
| 46 | the cumulative ARPA Transport patch PHNE_26771 to fix it.
|
|---|
| 47 |
|
|---|
| 48 | The following is the related description in PHNE_26771:
|
|---|
| 49 |
|
|---|
| 50 | Customer's application gets the wrong value from fstat().
|
|---|
| 51 | Resolution:
|
|---|
| 52 | The value returned via st_blksize is now retrieved
|
|---|
| 53 | from the same info as in 10.20.
|
|---|
| 54 |
|
|---|
| 55 | In case you cannot apply the HP patch, the attached patch to gawk source
|
|---|
| 56 | might work.
|
|---|
| 57 |
|
|---|
| 58 | Xiang Zhao <[email protected]>
|
|---|
| 59 | Stepan Kasal <[email protected]>
|
|---|
| 60 |
|
|---|
| 61 | diff -ur gawk-3.1.3.a0/posix/gawkmisc.c gawk-3.1.3.a1/posix/gawkmisc.c
|
|---|
| 62 | --- gawk-3.1.3.a0/posix/gawkmisc.c Sun May 25 15:26:19 2003
|
|---|
| 63 | +++ gawk-3.1.3.a1/posix/gawkmisc.c Fri Jul 11 08:56:03 2003
|
|---|
| 64 | @@ -126,7 +126,13 @@
|
|---|
| 65 | * meant for in the first place.
|
|---|
| 66 | */
|
|---|
| 67 | #ifdef HAVE_ST_BLKSIZE
|
|---|
| 68 | -#define DEFBLKSIZE (stb->st_blksize > 0 ? stb->st_blksize : BUFSIZ)
|
|---|
| 69 | + /*
|
|---|
| 70 | + * 100k must be enough for everybody,
|
|---|
| 71 | + * bigger number means probably a bug in fstat()
|
|---|
| 72 | + */
|
|---|
| 73 | +#define MAXBLKSIZE 102400
|
|---|
| 74 | +#define DEFBLKSIZE (stb->st_blksize > 0 && stb->st_blksize <= MAXBLKSIZE \
|
|---|
| 75 | + ? stb->st_blksize : BUFSIZ)
|
|---|
| 76 | #else
|
|---|
| 77 | #define DEFBLKSIZE BUFSIZ
|
|---|
| 78 | #endif
|
|---|