Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2002 04:07:00 -0700 (PDT)
From:      "Ralf S. Engelschall" <rse@engelschall.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/44377: multiple declaration of __mbstate_t (sys/_types.h & machine/ansi.h) breaks gcc 3.2 building
Message-ID:  <200210221107.g9MB70UZ041402@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         44377
>Category:       misc
>Synopsis:       multiple declaration of __mbstate_t (sys/_types.h & machine/ansi.h) breaks gcc 3.2 building
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 22 04:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ralf S. Engelschall
>Release:        FreeBSD 5.0-CURRENT
>Organization:
Cable & Wireless
>Environment:
FreeBSD dv2.dev.de.cw.net 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Oct 10 17:08:22 CEST 2002     root@dv2.dev.de.cw.net:/usr/src/sys/i386/compile/DV2  i386

>Description:
While building gcc 3.2 (for OpenPKG) I got:

In file included from include/stdio.h:58,
                 from ../../gcc/tsystem.h:63,
                 from ../../gcc/crtstuff.c:62:
/usr/include/sys/_types.h:83: conflicting types for `__mbstate_t'
/usr/include/machine/ansi.h:174: previous declaration of `__mbstate_t'
make[2]: *** [crtbegin.o] Error 1
make[1]: *** [stage1_build] Error 2

After #if 0...#endif in sys/_types.h for __mbstate_t the building
works fine again. I don't know which declaration is the correct one.
But at least the current situation breaks things.

>How-To-Repeat:
Rebuild gcc 3.2 or at least try to include both headers.

>Fix:
      
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210221107.g9MB70UZ041402>