From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27855 invoked from network); 26 Apr 2001 14:03:07 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Apr 2001 14:03:07 -0000 Received: (qmail 3607 invoked by alias); 26 Apr 2001 14:02:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14113 Received: (qmail 3580 invoked from network); 26 Apr 2001 14:02:58 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: Subject: RE: Or on ReliantUNIX ... RE: Make Failure on SunOS-4.1 (correction) Date: Thu, 26 Apr 2001 18:02:39 +0400 Message-ID: <000f01c0ce59$8db674d0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20010426093012.A29857@dman.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > > Yes. The actual problem is of course difference between configure > and source > > code. configure must check for any symbol/declaration/etc using > exactly the > > same defines as will be used in code. Else it finds either too much or too > > little :-) > > If you have HAVE_TGETENT, HAVE_CURSES_H, and HAVE_TERM_H, then you should > have the same defines (curses.h, term.h) as were used in the configure > test, no? > Yes, but you have to test for them after including config.h, not before? After moving #ifdef HAVE_TGETENT # if defined(HAVE_CURSES_H) && defined(HAVE_TERM_H) # define USES_TERM_H 1 # else # ifdef HAVE_TERMCAP_H # define USES_TERMCAP_H 1 # endif # endif #endif after #inlcude "termcap.mdh" I get different error: ONFIG_H -DMODULE -g -Kpic -o termcap..o /tools/src/zsh/Src/Modules/termcap.c /usr/include/unctrl.h 17: [warning]: CFE1301 typedef name has already been declared (with same type) typedef unsigned long chtype; ^ /usr/include/term.h 1196: [error]: CFE1147 declaration is incompatible with "int tputs(char *, int, int (*)(int))" (declared at line 42 of "/tools/src/zsh/Src/prototypes.h") tputs(char *, int, int (*)(char)), putp(char *), ^ /tools/src/zsh/Src/Modules/termcap.c 125: [warning]: CFE1167 argument of type "int (*)(int)" is incompatible with parameter of type "int (*)(char)" tputs(tgoto(t, atoi(*argv), num), num, putraw); ^ -andrej