|
From: | Hans-Bernhard Bröker |
Subject: | Re: texinfo-6.3.90 pretest |
Date: | Sat, 29 Apr 2017 23:44:45 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 |
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 ncursessubdirectory.
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.
[Prev in Thread] | Current Thread | [Next in Thread] |