delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/12/12/01:24:39

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Message-ID: <3C16F7FC.8070609@ece.gatech.edu>
Date: Wed, 12 Dec 2001 01:23:56 -0500
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010914
X-Accept-Language: en-us
MIME-Version: 1.0
To: JGMBenoit AT Wanadoo DOT fr
CC: cygwin-apps AT cygwin DOT com
Subject: Re: texmf-beta/dialog and ncurses
References: <3c15ca2d3e1b5991 AT mel-rti20 DOT wanadoo DOT fr> (added by mel-rti20.wanadoo.fr) <3C164253 DOT 3020408 AT ece DOT gatech DOT edu> <3C16DB8B DOT 7E29F717 AT t-online DOT de>

Jerome BENOIT wrote:

> Thanks you very much for your help:
> 
> Charles Wilson wrote:
> 
>>Jérôme-Georges-Michel BENOIT wrote:
>>
>>
>>>Bonjour:
>>>
>>>I am rebuilding the tetex-beta (cygwin) package.
>>>I have a trouble with ncurces:
>>>when I build dialog,
>>>I get the error message:
>>>
>>>undefined reference to `acs_map'
>>>
>>>How can we fix it ?
>>>
>>Looks like you don't have the current ncurses.h file:  it should have a
>>line like:
>>
> 
> I update my Cygnus every day (every two days if not):
> my `ncurses.h' are linked to `curses.h' which contains the line
> 
> /* $Id: curses.h.in,v 1.96 2000/09/16 16:11:01 tom Exp $ */
> 
> 
>>#define acs_map  acs_mapf()
>>
>>and
>>
>>extern const chtype * acs_mapf(void);
>>
>>
> true,
> but this lines are nested with
> 
> #if BROKEN_LINKER
> #else
> #endif
> 
> May I define BROKEN_LINKER somewhere ?


!DOH!

Sorry, I forgot about this (known) problem.  Yes, you (currently) have 
to manually define BROKEN_LINKER when linking with ncurses.  It's a bug 
in ncurses -- and not just the cygwin version.  Since BROKEN_LINKER 
changes the external interface of the library, client programs should 
KNOW about that -- ncurses' public headers OUGHT to declare 
BROKEN_LINKER when necessary, but they do not.  It's only declared in 
private, uninstalled headers.  It's something I have on my list to fix 
b/f the next cygwin ncurses release, but haven't gotten round tuit yet.

For now, manually #define BROKEN_LINKER before #including ncurses.h

--Chuck

- Raw text -


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