From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12031 invoked by alias); 5 Apr 2002 19:49:45 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 12001 invoked by uid 61); 5 Apr 2002 19:49:44 -0000 Date: Fri, 05 Apr 2002 11:49:00 -0000 Message-ID: <20020405194944.12000.qmail@sources.redhat.com> To: bkoz@gcc.gnu.org, bkoz@gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, mmartin@integratedeconomics.com, nobody@gcc.gnu.org From: bkoz@gcc.gnu.org Reply-To: bkoz@gcc.gnu.org, bkoz@gcc.gnu.org, bkoz@gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, mmartin@integratedeconomics.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: libstdc++/4145: codecvt::id on solaris, others X-SW-Source: 2002-04/txt/msg00381.txt.bz2 List-Id: Synopsis: codecvt::id on solaris, others Responsible-Changed-From-To: unassigned->bkoz Responsible-Changed-By: bkoz Responsible-Changed-When: Fri Apr 5 11:49:43 2002 Responsible-Changed-Why: Mine. State-Changed-From-To: open->closed State-Changed-By: bkoz State-Changed-When: Fri Apr 5 11:49:43 2002 State-Changed-Why: I don't think this is a bug in the C++ library. ISO C++ requires mbstate_t to be defined in cwchar: it's not in Solaris 2.7, __mbstate_t is. That's the heart of your problem. Note that Sun fixed their headers for Solaris 2.8: #if !defined(_MBSTATE_T) || __cplusplus >= 199711L #define _MBSTATE_T typedef __mbstate_t mbstate_t; #endif /* _MBSTATE_T */ Because this type isn't defined, libstdc++ defines its own, replacement type. This, while not optimal, is acceptable. You see to want to use the native type. That's cool, but hack the Solaris wchar.h header instead of libstdc++. I believe the linkage problems you have are all of your own devising. Note that wide character support is not turned on by default on Solaris 2.7 for precisely these reasons, so the issue is kind of moot (as codecvt is a no-op) best, benjamin http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4145