delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/16/23:46:41

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
Date: Mon, 16 Dec 2002 23:46:30 -0500
From: Christopher Faylor <cgf-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: LFTP: cygwin and setupterm
Message-ID: <20021217044630.GF12993@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <293580-22002122173573899 AT M2W042 DOT mail2web DOT com> <Pine DOT WNT DOT 4 DOT 51 DOT 0212170201580 DOT 3348 AT pervalidus>
Mime-Version: 1.0
In-Reply-To: <Pine.WNT.4.51.0212170201580.3348@pervalidus>
User-Agent: Mutt/1.5.1i

On Tue, Dec 17, 2002 at 02:12:54AM -0300, Fr?d?ric L. W. Meunier wrote:
>On Mon, 16 Dec 2002, elfyn-cygwin AT mail DOT exposure DOT org DOT uk wrote:
>> 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.
>
>I don't have libsupc++. I'm using the latest gcc2.
>
>I think the right fix was to make the /usr/include/term.h
>symlink, which for some reason:
>
>1- Isn't in ncurses 5.2-8
>or
>2- Is removed when you uninstall libtermcap

Why is there a separate Cygwin definition there at at all?  It seems
like everything should be handled by HAVE_NCURSES_CURSES_H and
HAVE_NCURSES_TERM_H.  Either that or the #if for the HAVE_NCURSES_TERM_H
should be moved outside of the if for HAVE_NCURSES_CURSES_H.

Btw, I just checked and uninstalling the termcap package (assuming
this is what you mean) does not install /usr/include/term.h.  That's
not a file which is included in the termcap distribution.

cgf

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019