From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Vin Shelton <shelton@icd.teradyne.com>, zsh-workers@sunsite.auc.dk
Subject: Re: Build Failures on SunOS-4.1 and 5.5
Date: Thu, 12 Apr 2001 15:28:56 +0000 [thread overview]
Message-ID: <1010412152857.ZM31425@candle.brasslantern.com> (raw)
In-Reply-To: <545wv8qb31n.fsf@icd.teradyne.com>
On Apr 12, 10:33am, Vin Shelton wrote:
} Subject: Build Failures on SunOS-4.1 and 5.5
}
} Yesterday's changes to terminfo.c were no good for SunOS-4.1 and
} SunOS-5.5.
The problem is that Src/system.h globally includes <termcap.h> when it
exists, but that clashes with <curses.h> and/or <term.h> where they're
wanted in terminfo.c.
<termcap.h> or an equivalent is needed in init.c for tgetstr() and in
zle_refresh.c for tgoto(). Src/prototypes.h has the necessary proto-
types to avoid this, but they're #ifndef HAVE_TERMCAP_H.
Since configure won't find terminfo once it's found termcap, I believe
a minimal workaround is the patch that follows. Much more extensive
fiddling is going to be necessary if we really want to use both termcap
and terminfo simultaneously.
Please let me know if this gets your build working again.
Index: Src/Modules/terminfo.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/terminfo.c,v
retrieving revision 1.12
diff -u -r1.12 terminfo.c
--- Src/Modules/terminfo.c 2001/04/12 04:08:37 1.12
+++ Src/Modules/terminfo.c 2001/04/12 14:53:35
@@ -29,17 +29,17 @@
#include "terminfo.mdh"
#include "terminfo.pro"
+
+static char terminfo_nam[] = "terminfo";
+
+/**/
+#ifdef HAVE_TIGETSTR
#ifdef HAVE_CURSES_H
# include <curses.h>
#endif
#ifdef HAVE_TERM_H
# include <term.h>
#endif
-
-static char terminfo_nam[] = "terminfo";
-
-/**/
-#ifdef HAVE_TIGETSTR
static Param terminfo_pm;
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
prev parent reply other threads:[~2001-04-12 15:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-12 14:33 Vin Shelton
2001-04-12 14:54 ` PATCH: " Clint Adams
2001-04-12 15:39 ` Bart Schaefer
2001-04-12 15:57 ` Bart Schaefer
2001-04-12 16:20 ` Bart Schaefer
2001-04-12 22:29 ` Wayne Davison
2001-04-12 23:08 ` Bart Schaefer
2001-04-13 1:13 ` Wayne Davison
2001-04-13 3:51 ` Bart Schaefer
2001-04-13 8:00 ` Wayne Davison
2001-04-13 16:42 ` Bart Schaefer
2001-04-13 16:49 ` Wayne Davison
2001-04-12 15:28 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1010412152857.ZM31425@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=shelton@icd.teradyne.com \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).