Am 29.04.2017 um 22:01 schrieb Eli Zaretskii:

Why is ncurses being linked in?  It shouldn't.

Top-level configure.ac searches for tgetent, finds it in ncurses, so adds -lncurses to TERMLIBS.

I guess this happens because the ncurses port you have installed has
termcap.h in the top-level include directory, not in its ncurses
subdirectory.

It has both a <termcap.h> and <ncurses/termcap.h> (from different packages). Both disagree with pcterm.c about what the prototypes of these functions should be (const-ness, mostly, but also the return type of tput()).

Changing line 39 of terminal.c to this:

#elif defined (HAVE_TERMCAP_H) && !defined (__MINGW32__)

does indeed allow ginfo.exe to build.

It does not really work, though. It behaves as if its stdout had been redirected, because the isatty() check fails. Looks like that "MinGW applications inside a MSYS2 Mintty fail detecting tty" issue.

Reply via email to