jazzbiker, THANK YOU! Yes, that edit allows the configure step to complete. Nice!
Now I can get as far as make, but it errors out with this:
$ make
---snip---
lftp_tinfo.cc:40:3: error: #error No header file for tigetstr or tgetstr found. Install ncurses-dev or termcap-dev.
40 | # error No header file for tigetstr or tgetstr found. Install ncurses-dev or termcap-dev.
| ^~~~~
lftp_tinfo.cc: In function ‘void init_terminfo()’:
lftp_tinfo.cc:55:7: error: ‘setupterm’ was not declared in this scope
55 | if(setupterm(NULL, 1, &errret) == ERR)
| ^~~~~~~~~
lftp_tinfo.cc:55:38: error: ‘ERR’ was not declared in this scope
55 | if(setupterm(NULL, 1, &errret) == ERR)
| ^~~
lftp_tinfo.cc: In function ‘const char* get_string_term_cap(const char*, const char*)’:
lftp_tinfo.cc:73:22: error: ‘tigetstr’ was not declared in this scope
73 | const char *ret = tigetstr(const_cast<char *>(terminfo_cap));
| ^~~~~~~~
make[2]: *** [Makefile:2332: lftp_tinfo.lo] Error 1
make[2]: Leaving directory '/home/bruno/Downloads/lftp-4.9.1/src'
make[1]: *** [Makefile:1740: all-recursive] Error 1
make[1]: Leaving directory '/home/bruno/Downloads/lftp-4.9.1'
make: *** [Makefile:1685: all] Error 2
In addition to your suggestion, I changed this line in configure:
for ac_header in curses.h term.h ncurses/curses.h ncurses/term.h termcap.h
to this:
for ac_header in curses.h term.h ncursesw/curses.h ncursesw/term.h termcap.h
and these lines in src/lftp_tinfo.cc
# include <ncurses/term.h>
# include <ncurses/curses.h>
# include <ncurses/term.h>
to this:
# include <ncursesw/term.h>
# include <ncursesw/curses.h>
# include <ncursesw/term.h>
But the pesky make error does not go away.