Hi, The setupterm() function lives in the ncurses package (/usr/include/ncurses/term.h). The problem happens in the if pre-processor clause on line 26 of lftp_tinfo.cc. I got around that by changing the order and switching an if to an elif statement like this:
#if defined(__CYGWIN__) # include <ncurses/term.h> # include <curses.h> #elif defined(HAVE_CURSES_H) # include <curses.h> # if defined(HAVE_TERM_H) # include <term.h> # endif #elif defined(HAVE_NCURSES_CURSES_H) #include <ncurses/curses.h> # if defined(HAVE_NCURSES_TERM_H) # include <ncurses/term.h> # endif #endif May not have been the right thing to do but got past that problem. Now I got a `undefined reference to `_WinMain@16'' error, probably because I dont have libsup++ installed though. Elfyn [EMAIL PROTECTED] Original Message: ----------------- From: Frédéric L. W. Meunier [EMAIL PROTECTED] Date: Tue, 17 Dec 2002 01:03:13 -0300 (E. South America Standard Time) To: [EMAIL PROTECTED] Subject: LFTP: Cygwin and setupterm Anybody know what's wrong ? I tried to compile LFTP 2.6.3 with ncurses 5.2-8 and got the following: /cygdrive/g/Linux/lftp/src/lftp_tinfo.cc: In function `void init_terminfo()': /cygdrive/g/Linux/lftp/src/lftp_tinfo.cc:50: implicit declaration of function `int setupterm(...)' There's the following in lftp_tinfo.cc: #if defined(HAVE_TIGETSTR) static bool terminfo_ok = true; static void init_terminfo() { static bool initted = false; if(initted) return; initted = true; int errret=0; if(setupterm(NULL, 1, &errret) == ERR) terminfo_ok = false; } #endif The same error someone reported some time ago with 2.6.2: http://www.mail-archive.com/lftp@uniyar.ac.ru/msg00888.html I also e-mailed the lftp-devel mailing-list. -- 0@pervalidus.{net, {dyndns.}org} -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/