This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc-in-cxx] Trunk fails to bootstrap with --enable-build-with-cxx
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Pedro Lamarão <pedro dot lamarao at ccppbrasil dot org>, gcc at gcc dot gnu dot org
- Date: Wed, 26 Aug 2009 23:36:55 +0200
- Subject: Re: [gcc-in-cxx] Trunk fails to bootstrap with --enable-build-with-cxx
- References: <4A774414.5000209@ccppbrasil.org> <4A959BC5.2030801@redhat.com>
* Jason Merrill wrote on Wed, Aug 26, 2009 at 10:32:05PM CEST:
> On 08/03/2009 04:09 PM, Pedro LamarÃo wrote:
> >Current trunk (revision 150381) fails to bootstrap with the following
> >configuration:
>
> >.../../trunk/libcpp/../include/libiberty.h:106: error: new declaration
> >âchar* basename(const char*)â
> >/usr/include/string.h:601: error: ambiguates old declaration âconst
> >char* basename(const char*)â
>
> The problem is that AC_CHECK_DECLS gets confused by overloaded
> functions, and glibc 2.10 has overloaded declarations of basename
> and some other string functions for const-correctness.
Could you show the config.log snippet that shows the failed test?
Is this a new error due to the autotools upgrade, or new due to
glibc 2.10?
Thanks,
Ralf