This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Missing symbols when I compile bash-2.05b-9


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]