[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test-string-c++ test failure
From: |
Jim Meyering |
Subject: |
Re: test-string-c++ test failure |
Date: |
Sat, 13 Mar 2010 14:21:01 +0100 |
Bruno Haible wrote:
> Jim Meyering wrote:
>> In file included from test-string-c++.cc:23:
>> ../lib/string.h:299: error: type of 'memchr' is unknown
>> ../lib/string.h:299: error: invalid type in declaration before ';' token
>> ../lib/string.h:299: error: 'int memchr' redeclared as different kind of
>> symbol
>> /usr/include/string.h:76: error: previous declaration of 'const void*
>> memchr(const void*, int, size_t)'
>> In file included from test-string-c++.cc:23:
>> ../lib/string.h:375: error: type of 'memrchr' is unknown
>> ../lib/string.h:375: error: invalid type in declaration before ';' token
>> ../lib/string.h:375: error: 'int memrchr' redeclared as different kind of
>> symbol
>> /usr/include/string.h:116: error: previous declaration of 'const void*
>> memrchr(const void*, int, size_t)'
>> In file included from test-string-c++.cc:23:
>> ../lib/string.h:580: error: type of 'strpbrk' is unknown
>> ../lib/string.h:580: error: invalid type in declaration before ';' token
>> ../lib/string.h:580: error: 'int strpbrk' redeclared as different kind of
>> symbol
>> /usr/include/string.h:294: error: previous declaration of 'const char*
>> strpbrk(const char*, const char*)'
>> In file included from test-string-c++.cc:23:
>> ../lib/string.h:675: error: type of 'strstr' is unknown
>> ../lib/string.h:675: error: invalid type in declaration before ';' token
>> ../lib/string.h:675: error: 'int strstr' redeclared as different kind of
>> symbol
>> /usr/include/string.h:321: error: previous declaration of 'const char*
>> strstr(const char*, const char*)'
>
> Ok, at least the _GL_CXXALIAS_SYS_CAST2 stuff is working fine now. The rest
> is probably fixed this way:
>
>
> 2010-03-13 Bruno Haible <address@hidden>
>
> Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
> * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
> * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
> * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
> strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
> when appropriate.
> Reported by Jim Meyering.
Speedy! Thank you.
This time I really have confirmed that it's fixed.
coreutils' "make distcheck" passed.