Re: [PATCH 20/24] Allow TUI windows in Python

Tom Tromey
2020-03-11T00:23:39Z

>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:

Simon> In file included from /home/smarchi/src/binutils-gdb/gdb/python/py-tui.c:24:
Simon> /home/smarchi/src/binutils-gdb/gdb/gdb_curses.h:47:10: fatal error: ncurses.h: No such file or directory
Simon> 47 | #include <ncurses.h>
Simon> | ^~~~~~~~~~~

Simon> So I suspect weare missing an #if/#ifdef somwhere. config.log contains:

Simon> /* Define to 1 if you have the <ncursesw/ncurses.h> header file. */
Simon> /* #undef HAVE_NCURSESW_NCURSES_H */

Simon> /* Define to 1 if you have the <ncurses.h> header file. */
Simon> /* #undef HAVE_NCURSES_H */

Simon> /* Define to 1 if you have the <ncurses/ncurses.h> header file. */
Simon> /* #undef HAVE_NCURSES_NCURSES_H */

That is weird because gdb_curses.h says (I marked line 47):

#if defined (HAVE_NCURSESW_NCURSES_H)
#include <ncursesw/ncurses.h>
#elif defined (HAVE_NCURSES_NCURSES_H)
#include <ncurses/ncurses.h>
#elif defined (HAVE_NCURSES_H)
---> #include <ncurses.h>
#elif defined (HAVE_CURSESX_H)
#include <cursesX.h>
#elif defined (HAVE_CURSES_H)
#include <curses.h>
#endif

... which sure looks like it is guarded by HAVE_NCURSES_H.

I couldn't find any other code that might define HAVE_NCURSES_H.

I don't know what's going on here :(

Tom