From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 01 12:16:18 2011 Received: (at submit) by debbugs.gnu.org; 1 Jul 2011 16:16:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QcgO9-0000Qh-2i for submit@debbugs.gnu.org; Fri, 01 Jul 2011 12:16:17 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QcZKj-0002b2-C7 for submit@debbugs.gnu.org; Fri, 01 Jul 2011 04:44:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcZKd-0007bk-0R for submit@debbugs.gnu.org; Fri, 01 Jul 2011 04:44:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:43382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcZKc-0007bc-O8 for submit@debbugs.gnu.org; Fri, 01 Jul 2011 04:44:10 -0400 Received: from eggs.gnu.org ([140.186.70.92]:57184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcZKX-0004Uh-VH for bug-coreutils@gnu.org; Fri, 01 Jul 2011 04:44:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcZKW-0007b3-8E for bug-coreutils@gnu.org; Fri, 01 Jul 2011 04:44:05 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:54122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcZKV-0007af-HG for bug-coreutils@gnu.org; Fri, 01 Jul 2011 04:44:03 -0400 Received: from [194.64.10.194] (dslb-084-056-059-126.pools.arcor-ip.net [84.56.59.126]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0MS2e2-1R1PiH0x22-00TCix; Fri, 01 Jul 2011 10:43:59 +0200 Message-ID: <4E0D88CA.1000503@psysteme.de> Date: Fri, 01 Jul 2011 10:43:54 +0200 From: Wolfgang Steinwender Organization: PSYSTEME Process-Automation Steinwender GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: bug-coreutils@gnu.org Subject: Parse error: Compile coreutils 8.9 with gcc 2.95.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:XuyIKXfp6uXI3G7agJQadIPqYtjES225DeDugzGNVvJ P6oUjF/zNPVgikg5/DN8YPDZkxj1qL89QdyaDdEtMxmADuby2a RLZ4REip/ZG0iqqYsOw564nNI0XCTnQiSd2B6eXZ59OEC86zBK 5lgC4OYIVraJaZOks4iquT9bJrsUChH+7BJrueZIkMEWOzUg7N 36h3VEC0KXx8CTM8Nj80r8Be0zrZls2zOlkQQ/hYdM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 01 Jul 2011 12:16:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Hi, compiling coreutils 8.9 with gcc 2.95.3: heap.c: In function `heap_remove_top': heap.c:99: parse error before `void' heap.c:103: `top' undeclared (first use in this function) heap.c:103: (Each undeclared identifier is reported only once heap.c:103: for each function it appears in.) I hat to change this: void * heap_remove_top (struct heap *heap) { if (heap->count == 0) return NULL; void *top = heap->array[1]; heap->array[1] = heap->array[heap->count--]; heapify_down (heap->array, heap->count, 1, heap->compare); return top; } to this: void * heap_remove_top (struct heap *heap) { void* top; if (heap->count == 0) return NULL; top = heap->array[1]; heap->array[1] = heap->array[heap->count--]; heapify_down (heap->array, heap->count, 1, heap->compare); return top; } The problem is also in the latest git version. Thanks, W. Steinwender From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 01 13:47:43 2011 Received: (at 8977) by debbugs.gnu.org; 1 Jul 2011 17:47:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qchoc-0003LS-Hf for submit@debbugs.gnu.org; Fri, 01 Jul 2011 13:47:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QchoZ-0003L7-J2 for 8977@debbugs.gnu.org; Fri, 01 Jul 2011 13:47:41 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p61HlXif026783 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 1 Jul 2011 13:47:33 -0400 Received: from [10.3.113.45] (ovpn-113-45.phx2.redhat.com [10.3.113.45]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p61HlXvc022212; Fri, 1 Jul 2011 13:47:33 -0400 Message-ID: <4E0E0834.7070306@redhat.com> Date: Fri, 01 Jul 2011 11:47:32 -0600 From: Eric Blake Organization: Red Hat 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 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 MIME-Version: 1.0 To: Wolfgang Steinwender Subject: Re: bug#8977: Parse error: Compile coreutils 8.9 with gcc 2.95.3 References: <4E0D88CA.1000503@psysteme.de> In-Reply-To: <4E0D88CA.1000503@psysteme.de> X-Enigmail-Version: 1.1.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigE5BE9D281D9106D5445669F7" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -10.3 (----------) X-Debbugs-Envelope-To: 8977 Cc: 8977@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -10.3 (----------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE5BE9D281D9106D5445669F7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/01/2011 02:43 AM, Wolfgang Steinwender wrote: > Hi, >=20 > compiling coreutils 8.9 with gcc 2.95.3: Thanks for the report. However, this is not a bug in coreutils, since we explicitly document in the "Pre-C99 build failure" section in README the minimum compiler that we are willing to support. > { > if (heap->count =3D=3D 0) > return NULL; >=20 > void *top =3D heap->array[1]; The declaration-after-statement construct is required by C99 (now more than 10 years old), and supported as an extension by a number of C89 compilers. Your problem is that gcc 2.95.3 is SOOOO old that it does not understand this extension. --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enigE5BE9D281D9106D5445669F7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJODgg0AAoJEKeha0olJ0Nqm10H/3C1NTzvJ9vYcKtt24Yi+EHS uCSNPhPDIVixwDbUEREmZu1Veht/Dt+IvRD0vsO5/zWpjSeSXd3YPvWXXqT/o6XV ka1yt/cDhxpKNGSmMeKBanSHi4afK4NkhY7+BODtJfI7dhj5mr2CPM09H+XHh+pP x3go/C2zqUGU/iidTYDJQzxiF5tqt2H7X9eTan+y0WUjx98Hzo8cR6XkUmRW2ggK aZhXxDR5mRRwUnv25boZ2BED7T19h6M6eZ3o0Xe9NIp/AYMn8NkY67fHxfLJNtoM PLpMeVvRi2iApwFQO00YlIrHaOlKXvLsdv+Mjc2/OxoV6Ybw0GtWmIgf5ujSuZg= =qfp+ -----END PGP SIGNATURE----- --------------enigE5BE9D281D9106D5445669F7-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 01 13:48:38 2011 Received: (at control) by debbugs.gnu.org; 1 Jul 2011 17:48:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QchpW-0003NE-52 for submit@debbugs.gnu.org; Fri, 01 Jul 2011 13:48:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QchpU-0003N3-Mq for control@debbugs.gnu.org; Fri, 01 Jul 2011 13:48:37 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p61HmVpB012196 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 1 Jul 2011 13:48:31 -0400 Received: from [10.3.113.45] (ovpn-113-45.phx2.redhat.com [10.3.113.45]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p61HmU2I023671 for ; Fri, 1 Jul 2011 13:48:30 -0400 Message-ID: <4E0E086E.7080907@redhat.com> Date: Fri, 01 Jul 2011 11:48:30 -0600 From: Eric Blake Organization: Red Hat 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 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: 8977 done X-Enigmail-Version: 1.1.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig81A34BB29169AAED5F16E012" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Spam-Score: -10.3 (----------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -10.3 (----------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig81A34BB29169AAED5F16E012 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable tag 8977 notabug close 8977 thanks --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig81A34BB29169AAED5F16E012 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJODghuAAoJEKeha0olJ0NqyCsH+gK6C1DejRjxDs5VEVYg1ZRo lO5/80y3czwW77i4e/gW7/Cxl6vNvPF9WMGnyrUY3DNfM45FqvmYoW8TCbAWDnEI sEBZ2W6XU3cRM4Hf93QdHkHoX9JZIjyBzvg7XsHfMd1Ut0eFjk9v3hNuFdGIRgnd NXwONHegaEXoHM4ia6TykMk9zzyk4LLso1VhLL6fIhMKnizSLUJ5i/0nCknPPbDm IkT6bYxrdF+qRWYOnR1x3VtcirU29VPA++nNR0Bc29nmppEOc7b921+j7qLpj5JT ISbUZ4EmxT1KC3pG5clQ0nLMrjIXVDaEfRnJNd3WTPeNiWYtYKRZnopYvUfW7go= =qSYt -----END PGP SIGNATURE----- --------------enig81A34BB29169AAED5F16E012-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 01 17:17:31 2011 Received: (at 8977) by debbugs.gnu.org; 1 Jul 2011 21:17:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qcl5e-00043r-Nl for submit@debbugs.gnu.org; Fri, 01 Jul 2011 17:17:30 -0400 Received: from mail1.slb.deg.dub.stisp.net ([84.203.253.98]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Qcl5c-00043e-MQ for 8977@debbugs.gnu.org; Fri, 01 Jul 2011 17:17:29 -0400 Received: (qmail 6787 invoked from network); 1 Jul 2011 21:17:22 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 1 Jul 2011 21:17:22 -0000 Message-ID: <4E0E3931.6080109@draigBrady.com> Date: Fri, 01 Jul 2011 22:16:33 +0100 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Wolfgang Steinwender Subject: Re: bug#8977: Parse error: Compile coreutils 8.9 with gcc 2.95.3 References: <4E0D88CA.1000503@psysteme.de> In-Reply-To: <4E0D88CA.1000503@psysteme.de> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8977 Cc: 8977@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 01/07/11 09:43, Wolfgang Steinwender wrote: > Hi, > > compiling coreutils 8.9 with gcc 2.95.3: > > heap.c: In function `heap_remove_top': > heap.c:99: parse error before `void' > heap.c:103: `top' undeclared (first use in this function) > heap.c:103: (Each undeclared identifier is reported only once > heap.c:103: for each function it appears in.) heap.c is one of the files we might like to have c89 support with, as it may be moved to gnulib. I'm a bit confused though. Did the rest of coreutils compile without issue? Similar code is used in many places. Also as a matter of interest, what system is this? cheers, Pádraig. From unknown Sun Jun 15 01:04:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 30 Jul 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator