Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: Or on ReliantUNIX ... RE: Make Failure on SunOS-4.1 (correction)



> > 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




Messages sorted by: Reverse Date, Date, Thread, Author