libstdc++/7097: _GLIBCPP_HAVE_MBSTATE_T breaks non-GLIB systems

Matt Thomas matt@pilot.local
Fri Jun 21 10:55:00 GMT 2002


>Number:         7097
>Category:       libstdc++
>Synopsis:       _GLIBCPP_HAVE_MBSTATE_T breaks non-GLIB systems
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 21 07:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Matt Thomas
>Release:        3.2 20020619 (experimental)
>Organization:
>Environment:
System: NetBSD pilot.local 1.5ZC NetBSD 1.5ZC (PILOT) #59: Sat May 18 12:43:46 PDT 2002 matt@pilot.local:/export/i386/kobj/PILOT i386


	
host: i386-unknown-netbsdelf1.5ZC
build: i386-unknown-netbsdelf1.5ZC
target: vax-dec-netbsdelf
configured with: /export/toolchain/gcc/configure --enable-static --disable-shared --target=vax-netbsdelf
>Description:
	The following change (and its related changes) prevents libstdc++
	from being built on NetBSD since NetBSD does not use GLIBC but does
	define its own mbstate_t.  Thus mbstate_t defined typedefed twice
	and libstdc++ fails to build.

libstdc++-v3/include/c/std_cwchar.h
revision 1.4
date: 2002/06/19 15:19:39;  author: bkoz;  state: Exp;  lines: +21 -0

2002-06-18  Benjamin Kosnik  <bkoz@redhat.com>

        * include/c/std_cwchar.h: Guard. Add mbstate_t bits.
        * include/c/std_cwctype.h: Guard.

        * libsupc++/eh_alloc.cc: Tweak include order.
        * libsupc++/pure.cc: Use cstdio.
        * libsupc++/new_op.cc: Remove malloc forward declaration, as
        cstdlib brings it in. Use std::malloc.

        * src/Makefile.am (sources): Remove cmath.cc.
        * src/Makefile.in: Regenerate.
        * src/cmath.cc: Remove.
----------------------------

>How-To-Repeat:
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list