bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

test-string-c++ test failure [Re: bootstrap and git submodules


From: Jim Meyering
Subject: test-string-c++ test failure [Re: bootstrap and git submodules
Date: Wed, 10 Mar 2010 11:32:10 +0100

>> I tried the latest from gnulib via coreutils,
>> ...
>> In file included from test-string-c++.cc:23:
>> ../lib/string.h:301: error: type of 'memchr' is unknown
>
> Can you please tell me how to reproduce?

Here's a much easier way to reproduce the problem,
using only gnulib.  The key is to test the string
module with another, like memchr:

    $ ./gnulib-tool --test --with-tests string memchr

Here's the output I see:

In file included from ../../gltests/test-string-c++.cc:23:
../gllib/string.h:296: error: no matches converting function 'memchr' to type 
'void* (*)(const void*, int, size_t)'
/usr/include/string.h:74: error: candidates are: void* memchr(void*, int, 
size_t)
/usr/include/string.h:76: error:                 const void* memchr(const 
void*, int, size_t)
../gllib/string.h:299: error: type of 'memchr' is unknown
../gllib/string.h:299: error: invalid type in declaration before ';' token
../gllib/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)'
make[4]: *** [test-string-c++.o] Error 1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]