Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 28FD9200D21 for ; Mon, 16 Oct 2017 10:25:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 27B5D1609EF; Mon, 16 Oct 2017 08:25:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6CC1D1609EC for ; Mon, 16 Oct 2017 10:25:42 +0200 (CEST) Received: (qmail 24070 invoked by uid 500); 16 Oct 2017 08:25:41 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 24060 invoked by uid 99); 16 Oct 2017 08:25:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Oct 2017 08:25:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 134651A08CC for ; Mon, 16 Oct 2017 08:25:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.147 X-Spam-Level: X-Spam-Status: No, score=-2.147 tagged_above=-999 required=6.31 tests=[KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id AQzDWuaXGOHD for ; Mon, 16 Oct 2017 08:25:38 +0000 (UTC) Received: from resqmta-po-11v.sys.comcast.net (resqmta-po-11v.sys.comcast.net [96.114.154.170]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 0D85A5F568 for ; Mon, 16 Oct 2017 08:25:37 +0000 (UTC) Received: from resomta-po-16v.sys.comcast.net ([96.114.154.240]) by resqmta-po-11v.sys.comcast.net with ESMTP id 40iJeT4AMUOZz40iJeQJ5I; Mon, 16 Oct 2017 08:25:31 +0000 Received: from [192.168.199.10] ([69.251.90.98]) by resomta-po-16v.sys.comcast.net with SMTP id 40gLe8zsFqSR040gMes9zf; Mon, 16 Oct 2017 08:23:31 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: AC_CHECK_LIB issues under maintainer mode (Was: Re: Tagging 2.4.29 / 2.5.0-{alpha/beta?} today) From: Jim Jagielski In-Reply-To: Date: Mon, 16 Oct 2017 04:23:29 -0400 Cc: dev@httpd.apache.org, List List Content-Transfer-Encoding: quoted-printable Message-Id: <8097FDD3-C0E2-40E3-B365-DE58DA996538@jaguNET.com> References: <52D25D9D-347F-4C79-800A-8CC0372BE005@greenbytes.de> <44e40cdf-0d21-a25b-5a45-6521777c3be3@thelounge.net> <84262985-E153-48B3-8F81-C1B52384B6FD@jaguNET.com> <6aed9d66-a477-d3a8-d6b5-5893fc0830e9@kippdata.de> To: Rainer Jung X-Mailer: Apple Mail (2.3273) X-CMAE-Envelope: MS4wfKO8rdzY8pArAfVNAV5jVcH5i+QTelnYuQWPfnq/kIBWN3uRqbrrDLDK+veNuS2wqnWu0vxd57kd5RX66RWtpUjwhwk381il+DB8yDP+mqOpQedkEHlK A0W4CHirrgofMH51Zd1N1dAmlUrYChl7iqOTdZ8SANq5SW5DSd6FkI4XnzEx0/3O60l2PBzBW0G9gs51XLaVNt9F469xD8er14R2B8Pj/CwYtJpygOewnnt/ archived-at: Mon, 16 Oct 2017 08:25:43 -0000 I'd be +1 on setting -Wno-error=3Dstrict-prototypes unconditionally > On Oct 15, 2017, at 11:52 AM, Rainer Jung = wrote: >=20 > Am 15.10.2017 um 16:25 schrieb Yann Ylavic: >> On Sun, Oct 15, 2017 at 4:03 PM, Rainer Jung = wrote: >>>=20 >>> Why is this happening now? The "-Werror" was backported last = December in >>> r1772330, which was a backport of r1702948 from trunk (May 2015). = Maybe >>> people haven't used maintainer mode since then? >> During the backport process of r1772330, Jacob noticed that -Werror >> was not working as expected (see STATUS changes in this commit). He >> also made a comment on dev@ here: >> https://marc.info/?l=3Dapache-cvs&m=3D147508169616462&w=3D2 >> Maybe -Werror is just ignored somehow, because I always compile in >> maintainer mode with several gcc versions... >=20 > Thanks Yann, I actually only ran gcc with the respective flags. But = indeed configure checks for each flag whether it is "working" and the = program which gets compiled is: >=20 > int > main () > { > struct tm tm; tm.tm_gmtoff; > ; > return 0; > } >=20 > So since we set -Wstrict-prototypes before, -Werror turns this into >=20 > conftest.c:45:1: error: function declaration isn't a prototype = [-Werror=3Dstrict-prototypes] > main () > ^~~~ >=20 > and -Werror does not get set at all. >=20 > Nevertheless I would still say that adding = "-Wno-error=3Dstrict-prototypes" for any clang and gcc version that = supports it would be the correct option. Then -Werror should = automatically get applied again. >=20 > So something like the following (simple) patch should be an = improvement for gcc and clang and also fix Jim's problem. Of course = since we then would have -Werror enabled probably for the first time for = gcc other new problems might show (that will currently only be = observable as warnings during maintainer builds). >=20 > Index: configure.in > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- configure.in (revision 1812218) > +++ configure.in (working copy) > @@ -597,6 +597,7 @@ > if test "$GCC" =3D "yes"; then > APR_ADDTO(CFLAGS,[-Wall -Wmissing-prototypes -Wstrict-prototypes = -Wmissing-declarations -Wpointer-arith]) > APACHE_ADD_GCC_CFLAG([-std=3Dc89]) > + APACHE_ADD_GCC_CFLAG([-Wno-error=3Dstrict-prototypes]) > APACHE_ADD_GCC_CFLAG([-Werror]) > APACHE_ADD_GCC_CFLAG([-Wdeclaration-after-statement]) > APACHE_ADD_GCC_CFLAG([-Wformat]) >=20 > Regards, >=20 > Rainer