Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , 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 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> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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