This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++ build failure on darwin5.2
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Andreas Tobler <toa at pop dot agri dot ch>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Sat, 05 Jan 2002 14:51:59 +0100
- Subject: Re: libstdc++ build failure on darwin5.2
- References: <3C36FB16.DFBEF808@pop.agri.ch>
Andreas Tobler wrote:
> In file included from /Volumes/xufs/gccclean/objdir/powerpc-apple-darwin5.2/libstdc++-v3/include/cstring:40,
> from /Volumes/xufs/gccclean/objdir/powerpc-apple-darwin5.2/libstdc++-v3/include/bits/char_traits.h:44,
> from /Volumes/xufs/gccclean/objdir/powerpc-apple-darwin5.2/libstdc++-v3/include/string:46,
> from /Volumes/xufs/gccclean/objdir/powerpc-apple-darwin5.2/libstdc++-v3/include/bits/localefwd.h:48,
> from /Volumes/xufs/gccclean/objdir/powerpc-apple-darwin5.2/libstdc++-v3/include/locale:44,
> from c++locale.cc:36:
> /usr/include/string.h:63: syntax error before `;' token
> make[3]: *** [c++locale.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive-am] Error 2
> make: *** [all-target-libstdc++-v3] Error 2
> ----
>
> The string.h around 63 is:
>
> ----
>
> #ifndef _STRING_H_
> #define _STRING_H_
> #include <machine/ansi.h>
>
> #ifndef _BSD_SIZE_T_DEFINED_
> #define _BSD_SIZE_T_DEFINED_
> typedef _BSD_SIZE_T_ size_t; <----- line 63
> #endif
Sorry if I'm asking you a couple of very stupid questions, but, just to be sure:
1- Before mine and Benjamin's commits your libstdc++ builds were perfectly ok?
2- The failure you are reporting regards a libc file, string.h. Is it perfectly ok? Are you otherwise able to include
<string.h> and use it in your C projects?
Thanks,
Paolo.