bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash-3.1 build feedback


From: Chet Ramey
Subject: Re: bash-3.1 build feedback
Date: Wed, 14 Dec 2005 16:06:23 -0500
User-agent: Thunderbird 1.5 (Macintosh/20051025)

Nelson H. F. Beebe wrote:

> ------------------------------------------------------------------------
> Machinetype:            Intel Pentium III (600 MHz);    NetBSD 1.6 (GENERIC)
> Remote gcc version:     gcc (GCC) 3.4.3
> Remote g++ version:     g++ (GCC) 3.4.3
> Configure environment:  CC=gcc CXX=g++ LDFLAGS=-Wl,-rpath,/usr/local/lib
> ...
> checking wctype.h usability... yes
> checking wctype.h presence... yes
> checking for wctype.h... yes
> checking wchar.h usability... yes
> checking wchar.h presence... yes
> checking for wchar.h... yes
> ...
> gcc -c  -DHAVE_CONFIG_H -DSHELL -I/usr/local/include -I. -I../.. -I../.. 
> -I../../include -I../../lib  -g -O2 smatch.c
> smatch.c: In function `is_wcclass':
> smatch.c:299: error: `wctype_t' undeclared (first use in this function)
> 
> configure, and the code in smatch.c, concluded that since wctype.h was
> present, wctype_t must be too, but that assumption is patently false
> on NetBSD 1.6, which has no support at all for that type:
> 
>       % find /usr/include -name '*.h' | xargs grep wctype
>       /usr/include/g++/std/straits.h:#include <cwctype>
>       /usr/include/wctype.h:/*        $NetBSD: wctype.h,v 1.4 2001/01/20 
> 17:40:09 itojun Exp $   */
>       /usr/include/wctype.h: *        citrus Id: wctype.h,v 1.4 2000/12/21 
> 01:50:21 itojun Exp
> 
> I manually edited config.h:
> 
>       % diff config.h.~1~ config.h
>       907c907
>       < #define HAVE_WCTYPE_H 1
>       ---
>       > /* #define HAVE_WCTYPE_H 1 */
> 
> then removed all *.o files and restarted the "make all check".  It
> succeeded and I can now exhibit this happy result:"
> 
>       % bash --version
>       GNU bash, version 3.1.0(1)-release (i386-unknown-netbsdelf1.6)
>       Copyright (C) 2005 Free Software Foundation, Inc.

You needn't have done anything that drastic.  Just use the
--disable-multibyte option to configure and rebuild.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live Strong.
Chet Ramey, ITS, CWRU    address@hidden    http://tiswww.tis.case.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]