Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Wed, 2 Apr 2003 11:24:11 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Cc: Chet Ramey Subject: Re: Missing symbols when I compile bash-2.05b-9 Message-ID: <20030402092411.GW18138@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com, Chet Ramey References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i On Tue, Apr 01, 2003 at 07:05:07PM -0500, Jocelyn Giroux wrote: > Hi, > > I am trying to compile bash and I always get errors at link time. There are > undefined reference to `_wcscoll' and `_wcwidth' symbol. You're right. The problem is that since the last time I compiled bash, newlib has changed. It now defines a lot of multibyte character functions and has the appropriate headers but unfortunately it doesn't define *all* required functions so far. Bash tests the existence of three headers (wchar.h, wctype.h, langinfo.h) and two functions (mbstowcs, wcwidth) to infer that multibyte support as a whole is available. Unfortunately, bash uses only the existence of mbstowcs to switch on multibyte support and it does so in three different files :-( Actually, as a workaround I suggest to patch these three files: config-bot.h, line 110 include/shmbutil.h, line 36 lib/readline/rlmbutil.h, line 38 change # if defined (HAVE_MBSTOWCS) /* system is supposed to support XPG5 */ to # if defined (HAVE_WCWIDTH) /* system is supposed to support XPG5 */ This is only a temporary solution but the result is the same as today, no multibyte support in Cygwin bash. The long term should add wcscoll, wcwidth and other still missing functions to newlib. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/