This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: texmf-beta/dialog and ncurses
- From: Charles Wilson <cwilson at ece dot gatech dot edu>
- To: JGMBenoit at Wanadoo dot fr
- Cc: cygwin-apps at cygwin dot com
- Date: Wed, 12 Dec 2001 01:23:56 -0500
- Subject: Re: texmf-beta/dialog and ncurses
- References: <3c15ca2d3e1b5991@mel-rti20.wanadoo.fr> (added by mel-rti20.wanadoo.fr) <3C164253.3020408@ece.gatech.edu> <3C16DB8B.7E29F717@t-online.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