| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <293580-22002122173573899@M2W042.mail2web.com> |
| X-Priority: | 3 |
| Reply-To: | cygwin AT cygwin DOT com |
| X-Originating-IP: | 195.92.67.74 |
| From: | "elfyn-cygwin AT mail DOT exposure DOT org DOT uk" <elfyn-cygwin AT mail DOT exposure DOT org DOT uk> |
| To: | 0 AT pervalidus DOT net, cygwin AT cygwin DOT com |
| Subject: | RE: LFTP: Cygwin and setupterm |
| Date: | Mon, 16 Dec 2002 22:57:38 -0500 |
| MIME-Version: | 1.0 |
| X-OriginalArrivalTime: | 17 Dec 2002 03:57:38.0137 (UTC) FILETIME=[707C0C90:01C2A580] |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id gBH3vkW12633 |
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 AT 16'' error, probably because I dont
have libsup++ installed though.
Elfyn
elfyn AT exposure DOT org DOT uk
Original Message:
-----------------
From: Frédéric L. W. Meunier 0 AT pervalidus DOT net
Date: Tue, 17 Dec 2002 01:03:13 -0300 (E. South America Standard Time)
To: cygwin AT cygwin DOT com
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 AT uniyar DOT ac DOT ru/msg00888.html
I also e-mailed the lftp-devel mailing-list.
--
0 AT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |