From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17374 invoked by alias); 24 May 2011 19:54:07 -0000 Received: (qmail 17364 invoked by uid 22791); 24 May 2011 19:54:06 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_YG,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-wy0-f171.google.com (HELO mail-wy0-f171.google.com) (74.125.82.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 May 2011 19:53:51 +0000 Received: by wyb32 with SMTP id 32so6809518wyb.2 for ; Tue, 24 May 2011 12:53:50 -0700 (PDT) Received: by 10.227.201.148 with SMTP id fa20mr1417505wbb.39.1306266830059; Tue, 24 May 2011 12:53:50 -0700 (PDT) Received: from localhost (144.145.217.87.dynamic.jazztel.es [87.217.145.144]) by mx.google.com with ESMTPS id h11sm4993883wbc.26.2011.05.24.12.53.48 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 May 2011 12:53:49 -0700 (PDT) Date: Tue, 24 May 2011 19:54:00 -0000 From: David Sastre To: cygwin@cygwin.com Subject: Re: Error building run2 from source package in win7 Message-ID: <20110524195347.GB11571@jethro.local.lan> References: <20110523171750.GB16755@jethro.local.lan> <4DDA97CC.1090404@redhat.com> <4DDAA894.5090802@cwilson.fastmail.fm> <20110524183824.GA11571@jethro.local.lan> <4DDBFFFF.8090909@cwilson.fastmail.fm> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MW5yreqqjyrRcusr" Content-Disposition: inline In-Reply-To: <4DDBFFFF.8090909@cwilson.fastmail.fm> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-05/txt/msg00351.txt.bz2 --MW5yreqqjyrRcusr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2994 On Tue, May 24, 2011 at 02:59:11PM -0400, Charles Wilson wrote: > On 5/24/2011 2:38 PM, David Sastre wrote: >=20 > >> hmm...maybe the OP should check his generated config.h file for the > >> offending def. If it's there, a quick look inside config.log should > >> tell you why 'checking for an ANSI C-conforming const' is reporting 'n= o'. > >=20 > > $ grep -nR "define const" run2-0.4.0-1/build/config.h > > 152:#define const /**/ > >=20 > > From the config.log: > >=20 > > configure:12737: checking for an ANSI C-conforming const > > configure:12802: gcc -c -Wall -Werror conftest.c >&5 > > cc1: warnings being treated as errors > > conftest.c: In function 'main': > > conftest.c:69:10: error: 't' is used uninitialized in this function > > conftest.c:85:23: error: 'b' may be used uninitialized in this function >=20 > Looks like a possible bug in autoconf, which is where the definition of > AC_C_CONST comes from -- or they might define this as PIBKAC (see > below). The test really ought to be -Wall -Werror friendly, but that's > up to the autoconf guys. (snip)=20 > $ ./configure CC=3D"gcc -Wall -Werror" > checking for gcc... gcc -Wall -Werror > checking whether the C compiler works... yes > checking for C compiler default output file name... a.exe > checking for suffix of executables... .exe > checking whether we are cross compiling... no > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc -Wall -Werror accepts -g... yes > checking for gcc -Wall -Werror option to accept ISO C89... none needed > checking for an ANSI C-conforming const... no >=20 > A-ha! >=20 > Don't set -Werror as part of $CC, set it in $CFLAGS instead. Which is what is defined in the *.cygport's src_compile func: src_compile() { cd ${S} cygautoreconf cd ${B} cygconf CFLAGS=3D"-Wall -Werror" cygmake } And I'm doing nothing but running 'cygport *.cygport all'. This test is failing for me: $ cat configure.ac AC_INIT([test]) AC_CONFIG_SRCDIR([configure.ac]) AC_C_CONST $ autoconf $ ./configure CFLAGS=3D"-Wall -Werror" checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.exe checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for an ANSI C-conforming const... no for the same reasons (config.log): configure:2563: gcc -c -Wall -Werror conftest.c >&5 cc1: warnings being treated as errors conftest.c: In function 'main': conftest.c:38:10: error: 't' is used uninitialized in this function conftest.c:54:23: error: 'b' may be used uninitialized in this function configure:2563: $? =3D 1 --=20 Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56 --MW5yreqqjyrRcusr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline Content-length: 230 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EAREIAAYFAk3cDMsACgkQ95urBFKZ7FbKoAD/Qg2R42nZpShrKcPdZ1EePLRe T3o11KbbfIXMg3dqwewA+wQy95vKvkECeKPKf/HHgGlNfeEAih0xbhN9eMF1ew0F =EbIf -----END PGP SIGNATURE----- --MW5yreqqjyrRcusr--