This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++ build failure on darwin5.2


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.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]