From unknown Fri Sep 05 08:56:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8555: [Bug Report] O_NOCACHE is a system define on AIX 5.1 and AIX 5.2 Resent-From: "Gary V. Vaughan" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 26 Apr 2011 06:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8555 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 8555@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.130379903419724 (code B ref -1); Tue, 26 Apr 2011 06:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Apr 2011 06:23:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QEbgg-000583-Bl for submit@debbugs.gnu.org; Tue, 26 Apr 2011 02:23:54 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QEbge-00057r-6J for submit@debbugs.gnu.org; Tue, 26 Apr 2011 02:23:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEbgY-00004s-AA for submit@debbugs.gnu.org; Tue, 26 Apr 2011 02:23:47 -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]:48655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEbgY-0008WU-8j for submit@debbugs.gnu.org; Tue, 26 Apr 2011 02:23:46 -0400 Received: from eggs.gnu.org ([140.186.70.92]:53507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEbgX-00016z-9L for bug-coreutils@gnu.org; Tue, 26 Apr 2011 02:23:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEbgW-0008WI-Bf for bug-coreutils@gnu.org; Tue, 26 Apr 2011 02:23:45 -0400 Received: from hapkido.dreamhost.com ([66.33.216.122]:43493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEbgW-0008WC-58 for bug-coreutils@gnu.org; Tue, 26 Apr 2011 02:23:44 -0400 Received: from homiemail-a75.g.dreamhost.com (caiajhbdcbef.dreamhost.com [208.97.132.145]) by hapkido.dreamhost.com (Postfix) with ESMTP id 61CFD17C8A9 for ; Mon, 25 Apr 2011 23:23:43 -0700 (PDT) Received: from homiemail-a75.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a75.g.dreamhost.com (Postfix) with ESMTP id 6803D5EC07C for ; Mon, 25 Apr 2011 23:23:42 -0700 (PDT) Received: from Moloch.local (unknown [180.183.125.206]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: gary@vaughan.pe) by homiemail-a75.g.dreamhost.com (Postfix) with ESMTPSA id 400825EC079 for ; Mon, 25 Apr 2011 23:23:40 -0700 (PDT) Date: Tue, 26 Apr 2011 13:23:37 +0700 From: "Gary V. Vaughan" Message-ID: <20110426062335.GC1841@Moloch.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jousvV0MzM2p6OtC" Content-Disposition: inline X-Face: )d7?`/z9[#Ln7`qBQ, axq.VM%_h`=4t8GKku>6*l$5n=@"uU2[3:l!gLwd:`lqls#/T3RCL 6|o)_o@oli7d=}4<3Fk~:t^:u/<; tl7@i)oM3U4ow0NI!/Y[>4tzQSdi#^OCR=]7vU3K$v)Te!O+=q x'PMW User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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-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 (------) --jousvV0MzM2p6OtC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On AIX 5.1 and AIX 5.2, building coreutils-8.11 is not possible out of the box, because dd.c has an enum that tries to set a new constant O_NOCACHE. On these machines, O_NOCACHE is a preprocessor define in /usr/include/fcntl.c, so the symbol in the dd.c enum definition is replaced by a constant before the compiler sees it, so can't be compiled as is. I worked around it as follows: gsed -i -e 's|O_NOCACHE|DD_NOCACHE|g' src/dd.c I am not subscribed to this list, so please keep me in Cc for any followups. Cheers, --=20 Gary V. Vaughan (gary AT gnu DOT org) --jousvV0MzM2p6OtC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) iEYEARECAAYFAk22ZOcACgkQFRMICSmD1ga5fQCfffqkGCqnPGBI4QdkCa/TaZ7y 1R0An3rNEZZHU/eggdkVQjDxVoHa3rkt =yZ+q -----END PGP SIGNATURE----- --jousvV0MzM2p6OtC-- From unknown Fri Sep 05 08:56:03 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Gary V. Vaughan" Subject: bug#8555: closed (Re: bug#8555: [Bug Report] O_NOCACHE is a system define on AIX 5.1 and AIX 5.2) Message-ID: References: <87k4ehcwnn.fsf@rho.meyering.net> <20110426062335.GC1841@Moloch.local> X-Gnu-PR-Message: they-closed 8555 X-Gnu-PR-Package: coreutils Reply-To: 8555@debbugs.gnu.org Date: Tue, 26 Apr 2011 07:14:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1303802042-24078-1" This is a multi-part message in MIME format... ------------=_1303802042-24078-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #8555: [Bug Report] O_NOCACHE is a system define on AIX 5.1 and AIX 5.2 which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 8555@debbugs.gnu.org. --=20 8555: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D8555 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1303802042-24078-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 8555-done) by debbugs.gnu.org; 26 Apr 2011 07:13:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QEcT8-0006G0-As for submit@debbugs.gnu.org; Tue, 26 Apr 2011 03:13:58 -0400 Received: from mx.meyering.net ([82.230.74.64]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QEcT4-0006Fo-I9 for 8555-done@debbugs.gnu.org; Tue, 26 Apr 2011 03:13:55 -0400 Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id A948960113; Tue, 26 Apr 2011 09:13:48 +0200 (CEST) From: Jim Meyering To: "Gary V. Vaughan" Subject: Re: bug#8555: [Bug Report] O_NOCACHE is a system define on AIX 5.1 and AIX 5.2 In-Reply-To: <20110426062335.GC1841@Moloch.local> (Gary V. Vaughan's message of "Tue, 26 Apr 2011 13:23:37 +0700") References: <20110426062335.GC1841@Moloch.local> Date: Tue, 26 Apr 2011 09:13:48 +0200 Message-ID: <87k4ehcwnn.fsf@rho.meyering.net> Lines: 47 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 8555-done Cc: 8555-done@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: -6.0 (------) Gary V. Vaughan wrote: > On AIX 5.1 and AIX 5.2, building coreutils-8.11 is not possible out of the > box, because dd.c has an enum that tries to set a new constant O_NOCACHE. On > these machines, O_NOCACHE is a preprocessor define in /usr/include/fcntl.c, > so the symbol in the dd.c enum definition is replaced by a constant before > the compiler sees it, so can't be compiled as is. > > I worked around it as follows: > > gsed -i -e 's|O_NOCACHE|DD_NOCACHE|g' src/dd.c Hi Gary, Thank you for the report. Shame on AIX. I've fixed it slightly differently. This way I don't have to change all of dd.c's uses of O_NOCACHE. >From 07c78f7eecf0b9ab75a6ae6aeff6e71bb34e421b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 26 Apr 2011 09:09:43 +0200 Subject: [PATCH] dd: work around compilation failure on AIX 5.1 and 5.2 * src/dd.c (O_NOCACHE): Undefine. This symbol is defined via AIX's , yet used as an enum name in dd.c. Reported by Gary V. Vaughan in http://debbugs.gnu.org/8555 --- src/dd.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/dd.c b/src/dd.c index cb626fc..072410e 100644 --- a/src/dd.c +++ b/src/dd.c @@ -66,6 +66,10 @@ # define O_CIO 0 #endif +/* On AIX 5.1 and AIX 5.2, O_NOCACHE is defined via + and would interfere with our use of that name, below. */ +#undef O_NOCACHE + #if ! HAVE_FDATASYNC # define fdatasync(fd) (errno = ENOSYS, -1) #endif -- 1.7.5.rc3.316.gd1ff9 ------------=_1303802042-24078-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Apr 2011 06:23:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QEbgg-000583-Bl for submit@debbugs.gnu.org; Tue, 26 Apr 2011 02:23:54 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QEbge-00057r-6J for submit@debbugs.gnu.org; Tue, 26 Apr 2011 02:23:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEbgY-00004s-AA for submit@debbugs.gnu.org; Tue, 26 Apr 2011 02:23:47 -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]:48655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEbgY-0008WU-8j for submit@debbugs.gnu.org; Tue, 26 Apr 2011 02:23:46 -0400 Received: from eggs.gnu.org ([140.186.70.92]:53507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEbgX-00016z-9L for bug-coreutils@gnu.org; Tue, 26 Apr 2011 02:23:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEbgW-0008WI-Bf for bug-coreutils@gnu.org; Tue, 26 Apr 2011 02:23:45 -0400 Received: from hapkido.dreamhost.com ([66.33.216.122]:43493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEbgW-0008WC-58 for bug-coreutils@gnu.org; Tue, 26 Apr 2011 02:23:44 -0400 Received: from homiemail-a75.g.dreamhost.com (caiajhbdcbef.dreamhost.com [208.97.132.145]) by hapkido.dreamhost.com (Postfix) with ESMTP id 61CFD17C8A9 for ; Mon, 25 Apr 2011 23:23:43 -0700 (PDT) Received: from homiemail-a75.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a75.g.dreamhost.com (Postfix) with ESMTP id 6803D5EC07C for ; Mon, 25 Apr 2011 23:23:42 -0700 (PDT) Received: from Moloch.local (unknown [180.183.125.206]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: gary@vaughan.pe) by homiemail-a75.g.dreamhost.com (Postfix) with ESMTPSA id 400825EC079 for ; Mon, 25 Apr 2011 23:23:40 -0700 (PDT) Date: Tue, 26 Apr 2011 13:23:37 +0700 From: "Gary V. Vaughan" To: bug-coreutils@gnu.org Subject: [Bug Report] O_NOCACHE is a system define on AIX 5.1 and AIX 5.2 Message-ID: <20110426062335.GC1841@Moloch.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jousvV0MzM2p6OtC" Content-Disposition: inline X-Face: )d7?`/z9[#Ln7`qBQ, axq.VM%_h`=4t8GKku>6*l$5n=@"uU2[3:l!gLwd:`lqls#/T3RCL 6|o)_o@oli7d=}4<3Fk~:t^:u/<; tl7@i)oM3U4ow0NI!/Y[>4tzQSdi#^OCR=]7vU3K$v)Te!O+=q x'PMW User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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-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 (------) --jousvV0MzM2p6OtC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On AIX 5.1 and AIX 5.2, building coreutils-8.11 is not possible out of the box, because dd.c has an enum that tries to set a new constant O_NOCACHE. On these machines, O_NOCACHE is a preprocessor define in /usr/include/fcntl.c, so the symbol in the dd.c enum definition is replaced by a constant before the compiler sees it, so can't be compiled as is. I worked around it as follows: gsed -i -e 's|O_NOCACHE|DD_NOCACHE|g' src/dd.c I am not subscribed to this list, so please keep me in Cc for any followups. Cheers, --=20 Gary V. Vaughan (gary AT gnu DOT org) --jousvV0MzM2p6OtC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) iEYEARECAAYFAk22ZOcACgkQFRMICSmD1ga5fQCfffqkGCqnPGBI4QdkCa/TaZ7y 1R0An3rNEZZHU/eggdkVQjDxVoHa3rkt =yZ+q -----END PGP SIGNATURE----- --jousvV0MzM2p6OtC-- ------------=_1303802042-24078-1-- From unknown Fri Sep 05 08:56:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8555: [Bug Report] O_NOCACHE is a system define on AIX 5.1 and AIX 5.2 Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 26 Apr 2011 08:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8555 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 8555@debbugs.gnu.org Cc: jim@meyering.net Received: via spool by 8555-submit@debbugs.gnu.org id=B8555.1303808339688 (code B ref 8555); Tue, 26 Apr 2011 08:59:01 +0000 Received: (at 8555) by debbugs.gnu.org; 26 Apr 2011 08:58:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QEe6k-0000B3-Aj for submit@debbugs.gnu.org; Tue, 26 Apr 2011 04:58:58 -0400 Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QEe6e-0000Am-Is for 8555@debbugs.gnu.org; Tue, 26 Apr 2011 04:58:57 -0400 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 2331C186DEDA; Tue, 26 Apr 2011 10:58:45 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 0FED31C000A2; Tue, 26 Apr 2011 10:58:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id dH0B2escVW8J; Tue, 26 Apr 2011 10:58:45 +0200 (CEST) Received: from igel.home (ppp-88-217-123-4.dynamic.mnet-online.de [88.217.123.4]) by mail.mnet-online.de (Postfix) with ESMTP; Tue, 26 Apr 2011 10:58:45 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 30DDACA29C; Tue, 26 Apr 2011 10:58:45 +0200 (CEST) From: Andreas Schwab References: <20110426062335.GC1841@Moloch.local> <87k4ehcwnn.fsf@rho.meyering.net> X-Yow: Mary Tyler Moore's SEVENTH HUSBAND is wearing my DACRON TANK TOP in a cheap hotel in HONOLULU! Date: Tue, 26 Apr 2011 10:58:45 +0200 In-Reply-To: <87k4ehcwnn.fsf@rho.meyering.net> (Jim Meyering's message of "Tue, 26 Apr 2011 09:13:48 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.6 (--) 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 (--) Jim Meyering writes: > Shame on AIX. Huh? reserves the whole O_ namespace, so it's clearly shame on coreutils. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."