Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Compile errors for zsh 4.0.4 on Aix 4.3.3
- X-seq: zsh-workers 17123
- From: Albert Chin <zsh-workers@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Compile errors for zsh 4.0.4 on Aix 4.3.3
- Date: Fri, 10 May 2002 18:01:38 -0500
- In-reply-to: <1020509150823.ZM8499@xxxxxxxxxxxxxxxxxxxxxxx>; from schaefer@xxxxxxxxxxxxxxxx on Thu, May 09, 2002 at 03:08:23PM +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20020509090819.A10978@xxxxxxxxxxxxx> <1020509150823.ZM8499@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: zsh-workers@xxxxxxxxxx
On Thu, May 09, 2002 at 03:08:23PM +0000, Bart Schaefer wrote:
> On May 9, 9:08am, travis@xxxxxxxx wrote:
> } "termcap.c", line 71.13: 1506-334 (S) Identifier boolcodes has already been defined on line 1342 of "/usr/include/term.h".
>
> is happening *because* "Zsh now defaults to termcap on AIX;" the problem
> about which we want more information is "variables boolcodes and some other
> are declared in term.h but missing is libcurses.a."
>
> It's a bit confusing that your build actually included term.h even though
> it was supposedly defaulting to termcap, so that might still be worth
> looking into, but it's not the problem Etc/MACHINES is talking about.
The patch below worked for us with 4.0.4 and AIX 4.3.2.
--
albert chin (china@xxxxxxxxxxxxxxxxxx)
-- snip snip
--- Src/Modules/termcap.c.orig Sat Nov 10 13:26:59 2001
+++ Src/Modules/termcap.c Sat Nov 10 13:27:53 2001
@@ -67,20 +67,20 @@
static Param termcap_pm;
-#ifndef HAVE_BOOLCODES
-static char *boolcodes[] = {
- "bw", "am", "ut", "cc", "xs", "YA", "YF", "YB", "xt", "xn", "eo",
- "gn", "hc", "HC", "km", "YC", "hs", "hl", "in", "YG", "da", "db",
- "mi", "ms", "nx", "xb", "NP", "ND", "NR", "os", "5i", "YD", "YE",
- "es", "hz", "ul", "xo", NULL};
-#endif
-
/**/
static int
ztgetflag(char *s)
{
char **b;
+#ifndef HAVE_BOOLCODES
+ static char *boolcodes[] = {
+ "bw", "am", "ut", "cc", "xs", "YA", "YF", "YB", "xt", "xn", "eo",
+ "gn", "hc", "HC", "km", "YC", "hs", "hl", "in", "YG", "da", "db",
+ "mi", "ms", "nx", "xb", "NP", "ND", "NR", "os", "5i", "YD", "YE",
+ "es", "hz", "ul", "xo", NULL};
+#endif
+
/* ncurses can tell if an existing boolean capability is *
* off, but other curses variants can't, so we fudge it. *
* This feature of ncurses appears to have gone away as *
@@ -295,6 +295,14 @@
"NC", "Nl", "pb", "vt", "ws", "Yo", "Yp", "Ya", "BT", "Yc", "Yb",
"Yd", "Ye", "Yf", "Yg", "Yh", "Yi", "Yk", "Yj", "Yl", "Ym", "Yn",
NULL};
+#endif
+
+#ifndef HAVE_BOOLCODES
+ static char *boolcodes[] = {
+ "bw", "am", "ut", "cc", "xs", "YA", "YF", "YB", "xt", "xn", "eo",
+ "gn", "hc", "HC", "km", "YC", "hs", "hl", "in", "YG", "da", "db",
+ "mi", "ms", "nx", "xb", "NP", "ND", "NR", "os", "5i", "YD", "YE",
+ "es", "hz", "ul", "xo", NULL};
#endif
#ifndef HAVE_STRCODES
Messages sorted by:
Reverse Date,
Date,
Thread,
Author