bug-autoconf
[Top][All Lists]
Advanced

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

Re: AC_REPLACE_FUNCS is not -Werror safe


From: Ralf Corsepius
Subject: Re: AC_REPLACE_FUNCS is not -Werror safe
Date: Tue, 21 Jun 2011 09:28:54 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10

On 06/21/2011 06:46 AM, Kamaraju Kusumanchi wrote:
I am unable to compile gdb-7.2 using gcc-4.6 with the -Werror option
on a Debian sid machine. When I reported the bug to gdb maintainers as
http://sourceware.org/bugzilla/show_bug.cgi?id=12891 , they informed
me that the bug is actually in autoconf package. It seems libiberty in
gdb-7.2 uses AC_REPLACE_FUNCS and apparently this is not -Werror safe.

The answer is simple: You must not pass -Werror to configure scripts, because many autoconf checks are based on compile checks applying "crude" code, which occasionally trigger warnings but are not supposed to issue errors.

That said, if this -Werror originates from gdb's configury, it's a bug in their package's usage of autoconf, if this -Werror originates from your command-line, the origin of this issue is you ;)

Ralf




reply via email to

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