Current-Users archive

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

Re: CVS commit: src/usr.bin/mklocale



On Fri, Jan 02, 2009 at 10:08:19PM +0000, Takehiko NOZAKI wrote:
> 
> Module Name:  src
> Committed By: tnozaki
> Date:         Fri Jan  2 22:08:19 UTC 2009
> 
> Modified Files:
>       src/usr.bin/mklocale: Makefile lex.l yacc.y
> 
> Log Message:
> 1. fixes PR lib/40317, don't use libc's fparseln(3).
> it is non-portable function, toolchain should link it yourself.
> 
> 2. fixes crossbuild breakage reported by Chiristoph Egger on current-user,
> FreeBSD and MacOS X still make Rune* as public API in their ctype.h.
> so added namespace protection NB* by including src/lib/libc/locale/rune.h

This breaks the build for me in OS X 10.4.11 as follows.  Note that this is
building the toolchain.

    compile  mklocale/yacc.lo
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h: In function '__istype':
/usr/include/ctype.h:219: error: '_DefaultRuneLocale' undeclared (first use in 
this function)
/usr/include/ctype.h:219: error: (Each undeclared identifier is reported only 
once
/usr/include/ctype.h:219: error: for each function it appears in.)
/usr/include/ctype.h: In function '__isctype':
/usr/include/ctype.h:230: error: '_CACHED_RUNES' undeclared (first use in this 
function)
/usr/include/ctype.h:231: error: '_DefaultRuneLocale' undeclared (first use in 
this function)
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:51:1: warning: "_CTYPE_A" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:71:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:52:1: warning: "_CTYPE_C" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:72:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:53:1: warning: "_CTYPE_D" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:73:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:54:1: warning: "_CTYPE_G" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:74:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:55:1: warning: "_CTYPE_L" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:75:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:56:1: warning: "_CTYPE_P" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:76:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:57:1: warning: "_CTYPE_S" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:77:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:58:1: warning: "_CTYPE_U" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:78:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:59:1: warning: "_CTYPE_X" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:79:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:60:1: warning: "_CTYPE_B" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:80:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:61:1: warning: "_CTYPE_R" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:81:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:62:1: warning: "_CTYPE_I" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:82:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:63:1: warning: "_CTYPE_T" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:83:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:64:1: warning: "_CTYPE_Q" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:84:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:65:1: warning: "_CTYPE_SWM" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:89:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:66:1: warning: "_CTYPE_SWS" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:90:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:67:1: warning: "_CTYPE_SW0" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:85:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:68:1: warning: "_CTYPE_SW1" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:86:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:69:1: warning: "_CTYPE_SW2" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:87:1: warning: this is the location of the previous 
definition
In file included from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/Volumes/NetBSD-current/src/lib/libc/locale/rune.h:70:1: warning: "_CTYPE_SW3" 
redefined
In file included from /usr/include/_wctype.h:78,
                 from /usr/include/wchar.h:115,
                 from /Volumes/NetBSD-current/src/lib/libc/locale/rune.h:41,
                 from 
/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale/yacc.y:55:
/usr/include/ctype.h:88:1: warning: this is the location of the previous 
definition

*** Failed target:  yacc.lo
*** Failed command: cc -O -no-cpp-precomp 
-I/Users/jmmv/Projects/NetBSD/obj.amd64/Volumes/NetBSD-current/src/tools/compat 
-I/Users/jmmv/Projects/NetBSD/obj.amd64/Volumes/NetBSD-current/src/tools/compat/include
 -I/Volumes/NetBSD-current/src/tools/mklocale/../compat 
-DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I. 
-I/Volumes/NetBSD-current/src/tools/mklocale/../../usr.bin/mklocale 
-I/Volumes/NetBSD-current/src/lib/libc 
-I/Volumes/NetBSD-current/src/lib/libc/include 
-I/Volumes/NetBSD-current/src/lib/libc/locale 
-I/Volumes/NetBSD-current/src/lib/libc/citrus -DNBCHAR_MAX=127 -DHOSTPROG -c -o 
yacc.lo.o yacc.c
*** Error code 1

Stop.
nbmake: stopped in /Volumes/NetBSD-current/src/tools/mklocale

*** Failed target:  dependall
*** Failed command: cd /Volumes/NetBSD-current/src/tools/mklocale; 
/Users/jmmv/Projects/NetBSD/tools.amd64/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /Volumes/NetBSD-current/src/tools/mklocale

-- 
Julio M. Merino Vidal <jmmv%NetBSD.org@localhost>


Home | Main Index | Thread Index | Old Index