source: trunk/essentials/sys-apps/gawk/README_d/README.hpux

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 2.4 KB
Line 
1Wed Jul 28 16:28:42 IDT 2004
2============================
3As of gawk 3.1.4, configure should correctly handle HP-UX and
4I18N issues. -- Arnold
5--------------------------------------------------------------
62003-12-10 15:19:38 EST
7Michael Elizabeth Chastain <mec.gnu@mindspring.com>
8
9I built and tested gawk on hppa-hp-hpux11.11 and ia64-hp-hpux11.23.
10All the tests in the test suite passed.
11
12I 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
18I 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
24To 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-------------------------------
37Mon, 27 May 2002 17:55:46 +0800
38
39The network support "|&" may not work under HP-UX 11.
40An error message appears similar to this:
41gawk: test_script.awk:3: fatal: get_a_record: iop->buf: can't allocate -61246
42bytes of memory (not enough space)
43
44Solution:
45This is a bug in the fstat() call of HP-UX 11.00, please apply
46the cumulative ARPA Transport patch PHNE_26771 to fix it.
47
48The 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
55In case you cannot apply the HP patch, the attached patch to gawk source
56might work.
57
58Xiang Zhao <xiangz@163.net>
59Stepan Kasal <kasal@math.cas.cz>
60
61diff -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
Note: See TracBrowser for help on using the repository browser.