GNU bug report logs - #35650
[PATCH] Improving HP-UX support

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: "Osipov, Michael" <michael.osipov@HIDDEN>; Keywords: patch; dated Thu, 9 May 2019 14:34:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 20 May 2019 08:59:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 20 04:59:20 2019
Received: from localhost ([127.0.0.1]:36051 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hSe8e-000202-GG
	for submit <at> debbugs.gnu.org; Mon, 20 May 2019 04:59:20 -0400
Received: from david.siemens.de ([192.35.17.14]:55297)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.osipov@HIDDEN>) id 1hSe8a-0001zp-77
 for 35650 <at> debbugs.gnu.org; Mon, 20 May 2019 04:59:19 -0400
Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14])
 by david.siemens.de (8.15.2/8.15.2) with ESMTPS id x4K8x3lI004721
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Mon, 20 May 2019 10:59:04 +0200
Received: from [147.54.65.49] (MD11GXTC.ad001.siemens.net [147.54.65.49])
 by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id x4K8x3j0031229;
 Mon, 20 May 2019 10:59:03 +0200
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: Paul Eggert <eggert@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
 <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
 <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
 <c8f43ddf-481d-453d-c631-9daa102acd61@HIDDEN>
 <c54f408c-9227-a41c-174f-44b21124cc85@HIDDEN>
 <35bd2680-3d28-313d-5062-7a926ec8bae6@HIDDEN>
 <f84e3b99-93cb-a223-1511-55e8a38d514e@HIDDEN>
From: "Osipov, Michael" <michael.osipov@HIDDEN>
Message-ID: <2de649ac-923f-b413-53b5-3e6aa91cd7a0@HIDDEN>
Date: Mon, 20 May 2019 10:59:03 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <f84e3b99-93cb-a223-1511-55e8a38d514e@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)



Am 2019-05-17 um 17:00 schrieb Paul Eggert:
> On 5/16/19 1:42 AM, Osipov, Michael wrote:
>> + /opt/aCC/bin/aCC -AC99 -I. -I./lib -DHASH_ALGO_BLAKE2=1 
>> -DHAVE_CONFIG_H -Ilib -I./lib -Isrc -I./src 
>> -I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -g -c -o 
>> src/blake2/b2sum-blake2b-ref.o src/blake2/blake2b-ref.c +Maked
>> "./lib/unistd.h", line 627: error #2035: #error directive: "Please 
>> include
>>           config.h first." 
> 
> Oh, I forgot to update blake2b-ref.c. I installed the attached further 
> patch; please give it a try.

Deleted my work dir, untarred 8.31, applied diff betweeen v8.31 and 
master, autoreconf, configure, gmake.

Looks good to me:
> bash-5.0# ldd ./src/b2sum
> 
> ./src/b2sum:
>         libc.so.1 =>    /usr/lib/hpux32/libc.so.1
>         libdl.so.1 =>   /usr/lib/hpux32/libdl.so.1
> bash-5.0# file ./src/b2sum
> ./src/b2sum:    ELF-32 executable object file - IA64

Thank you very much.

Compiling GNU coreutils on HP-UX is now a snap!

Michael




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 20 May 2019 07:56:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 20 03:56:15 2019
Received: from localhost ([127.0.0.1]:36006 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hSd9a-0000Ov-Vp
	for submit <at> debbugs.gnu.org; Mon, 20 May 2019 03:56:15 -0400
Received: from goliath.siemens.de ([192.35.17.28]:50359)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.osipov@HIDDEN>) id 1hSd9Y-0000Om-NW
 for 35650 <at> debbugs.gnu.org; Mon, 20 May 2019 03:56:13 -0400
Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11])
 by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x4K7twSM007461
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Mon, 20 May 2019 09:55:59 +0200
Received: from [147.54.65.49] (MD11GXTC.ad001.siemens.net [147.54.65.49])
 by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id x4K7twfw031392;
 Mon, 20 May 2019 09:55:58 +0200
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: Paul Eggert <eggert@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
 <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
 <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
 <5ef19664-f9a8-4924-983b-0710e1e3fced@HIDDEN>
 <e616f24c-798d-d116-04f0-0bcf389b0d60@HIDDEN>
 <324135e1-056b-7ce8-f4fd-17d5cb2fb16c@HIDDEN>
 <1ebd4d36-ebae-c460-ab35-265d8f71c9c4@HIDDEN>
From: "Osipov, Michael" <michael.osipov@HIDDEN>
Message-ID: <3a4bac54-0965-16cc-6d6b-2cd2430eddd9@HIDDEN>
Date: Mon, 20 May 2019 09:55:58 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <1ebd4d36-ebae-c460-ab35-265d8f71c9c4@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)



Am 2019-05-17 um 00:31 schrieb Paul Eggert:
> On 5/16/19 1:09 AM, Osipov, Michael wrote:
>> stdbuf is still compiled and linked: 
> 
> If it works, great; if not then I suppose we have more work to do.

I don't know how to test stdbuf to figure out whether it works as intended.

Michael





Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 17 May 2019 15:00:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 17 11:00:39 2019
Received: from localhost ([127.0.0.1]:58776 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hReLf-0000R6-Cy
	for submit <at> debbugs.gnu.org; Fri, 17 May 2019 11:00:39 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:58808)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1hReLc-0000Qq-Tr
 for 35650 <at> debbugs.gnu.org; Fri, 17 May 2019 11:00:38 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id AF3E0161A3A;
 Fri, 17 May 2019 08:00:30 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id Obu-6aA4BmOB; Fri, 17 May 2019 08:00:29 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id BE06A161AD6;
 Fri, 17 May 2019 08:00:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id Tsuq3y8Sc2LG; Fri, 17 May 2019 08:00:29 -0700 (PDT)
Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id A13A7161A73;
 Fri, 17 May 2019 08:00:29 -0700 (PDT)
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: "Osipov, Michael" <michael.osipov@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
 <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
 <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
 <c8f43ddf-481d-453d-c631-9daa102acd61@HIDDEN>
 <c54f408c-9227-a41c-174f-44b21124cc85@HIDDEN>
 <35bd2680-3d28-313d-5062-7a926ec8bae6@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Openpgp: preference=signencrypt
Autocrypt: addr=eggert@HIDDEN; prefer-encrypt=mutual; keydata=
 xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9
 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS
 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eN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J16gs
 T3oCjZrBKGEhKMOGX4O0GA6VOEryO7QRCCYah3oxSG38IAnNeiwJXgU9Bzkk85UGbPEd7HGF
 /VSeHCQwWou6jqUDTSDvn9YhNTdG0KXPM74aC+xr2Zow1O2mhXihgWKD0Dw+0LYPnUOsQ0KO
 FxHXXYHmRrS1OZPU59BLvc+TRhIhafSHKLwbXK+6ckkxBx6h8z5ccpG0Qs4bFhdFYnFrEieD
 LoGmnE2YLhdV6swJ9VNCS6pLiEohT3fm7aXm15tZOIyzMZhHRSAPblXxQ0ZSWjq8oRrcYNFx
 c4W1URpAkBCOYJoXvQfD5L3lqAl8TCqDUzYxhH/tJhbDdHrqHH767jaDaTB1+Talp/2AMKwc
 XNOdiklGxbmHVG6YGl6g8Lrbsu9NZEI4yLlHzuikthJWgz+3vZhVGyNlt+HNIoF6CjDL2omu
 5cEq4RDHM44QqPk6l7O0pUvN1mT4B+S1b08RKpqm/ff015E37HNV/piIvJlxGAYz8PSfuGCB
 1thMYqlmgdhd9/BabGFbGGYHA6U4/T5zqU+f6xHy1SsAQZ1MSKlLwekBIT+4/cLRGqCHjnV0
 q5H/T6a7t5mPkbzSrOLSo4puj+IToNjYyYIDBWzhlA19avOa+rvUjmHtD3sFN7cXWtkGoi8b
 uNcby4U=
Organization: UCLA Computer Science Department
Message-ID: <f84e3b99-93cb-a223-1511-55e8a38d514e@HIDDEN>
Date: Fri, 17 May 2019 08:00:23 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <35bd2680-3d28-313d-5062-7a926ec8bae6@HIDDEN>
Content-Type: multipart/mixed; boundary="------------8FE6060F8372FFCEBDB06B5E"
Content-Language: en-US
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

This is a multi-part message in MIME format.
--------------8FE6060F8372FFCEBDB06B5E
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

On 5/16/19 1:42 AM, Osipov, Michael wrote:
> + /opt/aCC/bin/aCC -AC99 -I. -I./lib -DHASH_ALGO_BLAKE2=3D1=20
> -DHAVE_CONFIG_H -Ilib -I./lib -Isrc -I./src=20
> -I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -g -c -o=20
> src/blake2/b2sum-blake2b-ref.o src/blake2/blake2b-ref.c +Maked
> "./lib/unistd.h", line 627: error #2035: #error directive: "Please=20
> include
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 config.h first."=
=20

Oh, I forgot to update blake2b-ref.c. I installed the attached further=20
patch; please give it a try.


--------------8FE6060F8372FFCEBDB06B5E
Content-Type: text/x-patch;
 name="0001-b2sum-port-blake2b-ref.c-to-HP-UX-aCC.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0001-b2sum-port-blake2b-ref.c-to-HP-UX-aCC.patch"

From 03970702c30337fd75cffffee9984f18af2cbcde Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@HIDDEN>
Date: Fri, 17 May 2019 07:57:39 -0700
Subject: [PATCH] b2sum: port blake2b-ref.c to HP-UX aCC

Continue the fix for Bug#35650.
* src/blake2/blake2b-ref.c [HAVE_CONFIG_H]: Include <config.h>.
---
 src/blake2/blake2b-ref.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/blake2/blake2b-ref.c b/src/blake2/blake2b-ref.c
index cbb1d8be4..74cbf1fb4 100644
--- a/src/blake2/blake2b-ref.c
+++ b/src/blake2/blake2b-ref.c
@@ -13,6 +13,10 @@
    https://blake2.net.
 */
 
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include <stdint.h>
 #include <string.h>
 #include <stdio.h>
-- 
2.21.0


--------------8FE6060F8372FFCEBDB06B5E--




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 16 May 2019 22:31:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 16 18:31:55 2019
Received: from localhost ([127.0.0.1]:56689 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hROuo-0006i0-Py
	for submit <at> debbugs.gnu.org; Thu, 16 May 2019 18:31:55 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:50670)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1hROul-0006hb-Tt
 for 35650 <at> debbugs.gnu.org; Thu, 16 May 2019 18:31:53 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id C20CD161A2E;
 Thu, 16 May 2019 15:31:45 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id 8-wFp3O5Wdoo; Thu, 16 May 2019 15:31:45 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 222E2161A33;
 Thu, 16 May 2019 15:31:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id G_mxBjUQU2DF; Thu, 16 May 2019 15:31:45 -0700 (PDT)
Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 042311618EB;
 Thu, 16 May 2019 15:31:45 -0700 (PDT)
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: "Osipov, Michael" <michael.osipov@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
 <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
 <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
 <5ef19664-f9a8-4924-983b-0710e1e3fced@HIDDEN>
 <e616f24c-798d-d116-04f0-0bcf389b0d60@HIDDEN>
 <324135e1-056b-7ce8-f4fd-17d5cb2fb16c@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Openpgp: preference=signencrypt
Autocrypt: addr=eggert@HIDDEN; prefer-encrypt=mutual; keydata=
 xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9
 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS
 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp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J7S5uJ16gs
 T3oCjZrBKGEhKMOGX4O0GA6VOEryO7QRCCYah3oxSG38IAnNeiwJXgU9Bzkk85UGbPEd7HGF
 /VSeHCQwWou6jqUDTSDvn9YhNTdG0KXPM74aC+xr2Zow1O2mhXihgWKD0Dw+0LYPnUOsQ0KO
 FxHXXYHmRrS1OZPU59BLvc+TRhIhafSHKLwbXK+6ckkxBx6h8z5ccpG0Qs4bFhdFYnFrEieD
 LoGmnE2YLhdV6swJ9VNCS6pLiEohT3fm7aXm15tZOIyzMZhHRSAPblXxQ0ZSWjq8oRrcYNFx
 c4W1URpAkBCOYJoXvQfD5L3lqAl8TCqDUzYxhH/tJhbDdHrqHH767jaDaTB1+Talp/2AMKwc
 XNOdiklGxbmHVG6YGl6g8Lrbsu9NZEI4yLlHzuikthJWgz+3vZhVGyNlt+HNIoF6CjDL2omu
 5cEq4RDHM44QqPk6l7O0pUvN1mT4B+S1b08RKpqm/ff015E37HNV/piIvJlxGAYz8PSfuGCB
 1thMYqlmgdhd9/BabGFbGGYHA6U4/T5zqU+f6xHy1SsAQZ1MSKlLwekBIT+4/cLRGqCHjnV0
 q5H/T6a7t5mPkbzSrOLSo4puj+IToNjYyYIDBWzhlA19avOa+rvUjmHtD3sFN7cXWtkGoi8b
 uNcby4U=
Organization: UCLA Computer Science Department
Message-ID: <1ebd4d36-ebae-c460-ab35-265d8f71c9c4@HIDDEN>
Date: Thu, 16 May 2019 15:31:44 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <324135e1-056b-7ce8-f4fd-17d5cb2fb16c@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-US
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On 5/16/19 1:09 AM, Osipov, Michael wrote:
>
> Is that what you have expected now?

Yes.

>
> stdbuf is still compiled and linked: 

If it works, great; if not then I suppose we have more work to do.





Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 16 May 2019 08:42:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 16 04:42:44 2019
Received: from localhost ([127.0.0.1]:54190 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hRByN-0005sm-Us
	for submit <at> debbugs.gnu.org; Thu, 16 May 2019 04:42:44 -0400
Received: from goliath.siemens.de ([192.35.17.28]:42758)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.osipov@HIDDEN>) id 1hRByG-0005sW-Va
 for 35650 <at> debbugs.gnu.org; Thu, 16 May 2019 04:42:42 -0400
Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14])
 by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x4G8gW7U011922
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Thu, 16 May 2019 10:42:32 +0200
Received: from [147.54.65.49] (MD11GXTC.ad001.siemens.net [147.54.65.49])
 by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id x4G8gVhl014139;
 Thu, 16 May 2019 10:42:31 +0200
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: Paul Eggert <eggert@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
 <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
 <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
 <c8f43ddf-481d-453d-c631-9daa102acd61@HIDDEN>
 <c54f408c-9227-a41c-174f-44b21124cc85@HIDDEN>
From: "Osipov, Michael" <michael.osipov@HIDDEN>
Message-ID: <35bd2680-3d28-313d-5062-7a926ec8bae6@HIDDEN>
Date: Thu, 16 May 2019 10:42:31 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <c54f408c-9227-a41c-174f-44b21124cc85@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Am 2019-05-15 um 22:02 schrieb Paul Eggert:
> On 5/15/19 2:30 AM, Osipov, Michael wrote:
>>
>> I don't know how to solve this differently for now, but to disable
>> include_next in configure.ac if the compiler is aCC.
> 
> Better yet, let's stop using the -include option as it's not portable.
> The -include option was used only to attempt to keep b2sum.c identical
> with upstream, but we've already given up on that for other reasons, so
> I installed the attached patches to fix this (the first patch drops
> -include, the second patch lessens changes from upstream)

Patches applied, autoreconf -fi run, ran configure w/o override and this 
is what I get now:
> + /opt/aCC/bin/aCC -AC99 -I. -I./lib -DHASH_ALGO_BLAKE2=1 -DHAVE_CONFIG_H -Ilib -I./lib -Isrc -I./src -I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -g -c -o src/blake2/b2sum-blake2b-ref.o src/blake2/blake2b-ref.c +Maked
> "./lib/unistd.h", line 627: error #2035: #error directive: "Please include
>           config.h first."
>    #error "Please include config.h first."
>     ^
> 
> "./lib/unistd.h", line 629: error #2077-D: this declaration has no storage
>           class or type specifier
>   _GL_INLINE_HEADER_BEGIN
>   ^
> 
> "./lib/unistd.h", line 741: error #2065: expected a ";"
>   _GL_CXXALIAS_SYS (chdir, int, (const char *file) _GL_ARG_NONNULL ((1)));
>   ^
> 
> "./lib/unistd.h", line 2147: error #2077-D: this declaration has no storage
>           class or type specifier
>   _GL_INLINE_HEADER_END
>   ^
> 
> "./lib/stdlib.h", line 665: error #2065: expected a ";"
>   _GL_CXXALIAS_SYS (calloc, void *, (size_t nmemb, size_t size));
>   ^
> 
> 5 errors detected in the compilation of "src/blake2/blake2b-ref.c".

Michael




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 16 May 2019 08:10:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 16 04:10:03 2019
Received: from localhost ([127.0.0.1]:54146 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hRBSk-00058K-Lp
	for submit <at> debbugs.gnu.org; Thu, 16 May 2019 04:10:02 -0400
Received: from goliath.siemens.de ([192.35.17.28]:52995)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.osipov@HIDDEN>) id 1hRBSi-00057q-3o
 for 35650 <at> debbugs.gnu.org; Thu, 16 May 2019 04:10:01 -0400
Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14])
 by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x4G89kvp004833
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Thu, 16 May 2019 10:09:47 +0200
Received: from [147.54.65.49] (MD11GXTC.ad001.siemens.net [147.54.65.49])
 by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id x4G89k42026810;
 Thu, 16 May 2019 10:09:46 +0200
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: Paul Eggert <eggert@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
 <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
 <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
 <5ef19664-f9a8-4924-983b-0710e1e3fced@HIDDEN>
 <e616f24c-798d-d116-04f0-0bcf389b0d60@HIDDEN>
From: "Osipov, Michael" <michael.osipov@HIDDEN>
Message-ID: <324135e1-056b-7ce8-f4fd-17d5cb2fb16c@HIDDEN>
Date: Thu, 16 May 2019 10:09:45 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <e616f24c-798d-d116-04f0-0bcf389b0d60@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)



Am 2019-05-15 um 19:59 schrieb Paul Eggert:
> On 5/14/19 2:15 PM, Osipov, Michael wrote:
>>> configure:68559: checking whether this system supports stdbuf
>>> configure:68586: /opt/aCC/bin/aCC -AC99 -o conftest +z -g
>>> -I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -b
>>> -L/opt/ports/coreutils/lib/hpux32 conftest.c  >&5
>>> configure:68586: $? = 0
>>> configure:68591: result: yes
>>
>> I do not really understand the purpose of the patch as it does not
>> really test for PIC/shared.
> 
> The patch alters the 'configure' script so that it's pickier about
> rejecting warnings from the compiler.
> 
> The 'configure' script should be testing for -fPIC and -shared. It
> should have something like this.

Purely my bad, apologies:
> configure:68484: checking whether C compiler handles -Werror
> configure:68503: /opt/aCC/bin/aCC -AC99 -o conftest -g  -Werror -I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -L/opt/ports/coreutils/lib/hpux32 conftest.c  >&5
> aCC: error 1914: bad form for `-W' option
> configure:68503: $? = 1
> configure:68513: result: no
> configure:68522: checking whether C compiler handles -errwarn
> configure:68541: /opt/aCC/bin/aCC -AC99 -o conftest -g  -errwarn -I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -L/opt/ports/coreutils/lib/hpux32 conftest.c  >&5
> ld: Entry symbol "rrwarn" not found
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This probably no the message you were striving for, but it serves the 
purpose.

> Fatal error.
> configure:68541: $? = 1
> configure:68551: result: no
> configure:68559: checking whether this system supports stdbuf
> configure:68586: /opt/aCC/bin/aCC -AC99 -o conftest -fPIC -g -I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -shared -L/opt/ports/coreutils/lib/hpux32 conftest.c  >&5
> aCC: warning 901: unknown option: `-fPIC': use +help for online documentation.
> aCC: warning 901: unknown option: `-hared': use +help for online documentation.
> aCC: warning 919: "-s" and "-g/-g0/-g1/-G/-p/+I" are mutually exclusive.  "-s" option ignored
> configure:68586: $? = 0
> configure:68591: result: no

Is that what you have expected now?

stdbuf is still compiled and linked:
> bash-5.0# find . -name stdbuf
> ./src/stdbuf
> bash-5.0# ./src/stdbuf


Michael




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 15 May 2019 20:03:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 15 16:03:00 2019
Received: from localhost ([127.0.0.1]:53430 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hR079-0008TM-KE
	for submit <at> debbugs.gnu.org; Wed, 15 May 2019 16:03:00 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:50550)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1hR075-0008T4-CG
 for 35650 <at> debbugs.gnu.org; Wed, 15 May 2019 16:02:58 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1C61A161A30;
 Wed, 15 May 2019 13:02:49 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id GllQLdEADOvH; Wed, 15 May 2019 13:02:44 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 98D2A161A1F;
 Wed, 15 May 2019 13:02:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id DQewfdVE2rDl; Wed, 15 May 2019 13:02:44 -0700 (PDT)
Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 73E8C16191D;
 Wed, 15 May 2019 13:02:44 -0700 (PDT)
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: "Osipov, Michael" <michael.osipov@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
 <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
 <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
 <c8f43ddf-481d-453d-c631-9daa102acd61@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Openpgp: preference=signencrypt
Autocrypt: addr=eggert@HIDDEN; prefer-encrypt=mutual; keydata=
 xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9
 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS
 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl
 KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss
 mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK
 QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2
 Sf1tk5eU8MBiyN/bZ03bKNjNYMpODDQQwuP84kYLkX2wBxxMAhBxwbDVZudzxDZJ1C2VXujC
 OJVxq2kljBM9ETYuUGqd75AW2LXrLw6+MuIsHFAYAgRr7+KcwDgBAfwhPBYX34nSSiHlmLC+
 KaHLeCLF5ZI2vKm3HEeCTtlOg7xZEONgwzL+fdKo+D6SoC8RRxJKs8a3sVfI4t6CnrQzvJbB
 n6gxdgCu5i29J1QCYrCYvql2UyFPAK+do99/1jOXT4m2836j1wARAQABzSBQYXVsIEVnZ2Vy
 dCA8ZWdnZXJ0QGNzLnVjbGEuZWR1PsLBfgQTAQIAKAUCTIByZAIbAwUJEswDAAYLCQgHAwIG
 FQgCCQoLBBYCAwECHgECF4AACgkQ7ZfpDmKqfjRRGw/+Ij03dhYfYl/gXVRiuzV1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WtkGoi8b
 uNcby4U=
Organization: UCLA Computer Science Department
Message-ID: <c54f408c-9227-a41c-174f-44b21124cc85@HIDDEN>
Date: Wed, 15 May 2019 13:02:44 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <c8f43ddf-481d-453d-c631-9daa102acd61@HIDDEN>
Content-Type: multipart/mixed; boundary="------------6D44743565526C166AC80516"
Content-Language: en-US
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

This is a multi-part message in MIME format.
--------------6D44743565526C166AC80516
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

On 5/15/19 2:30 AM, Osipov, Michael wrote:
>
> I don't know how to solve this differently for now, but to disable
> include_next in configure.ac if the compiler is aCC. 

Better yet, let's stop using the -include option as it's not portable.
The -include option was used only to attempt to keep b2sum.c identical
with upstream, but we've already given up on that for other reasons, so
I installed the attached patches to fix this (the first patch drops
-include, the second patch lessens changes from upstream).


--------------6D44743565526C166AC80516
Content-Type: text/x-patch;
 name="0001-b2sum-port-to-HP-UX-aCC.patch"
Content-Disposition: attachment;
 filename="0001-b2sum-port-to-HP-UX-aCC.patch"
Content-Transfer-Encoding: quoted-printable

From 05412088900635a5965c0b5d2dde875387d63f0b Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@HIDDEN>
Date: Wed, 15 May 2019 12:42:23 -0700
Subject: [PATCH 1/2] b2sum: port to HP-UX aCC
MIME-Version: 1.0
Content-Type: text/plain; charset=3DUTF-8
Content-Transfer-Encoding: 8bit

Its support for the -include option is flaky.  Problem reported by
Michael Osipov (Bug#35650).  Plus, we could run into other
compilers that don=E2=80=99t support any option like -include.  Change th=
e
code so that -include is not needed.  Although this causes us to
depart from the upstream version, we=E2=80=99re already doing that for
other reasons.
* configure.ac (USE_XLC_INCLUDE): Remove, as there=E2=80=99s no
guarantee a compiler will support something like -include.
* src/blake2/b2sum.c [HAVE_CONFIG_H]: Include <config.h>.
* src/local.mk (src_b2sum_CPPFLAGS): Add -DHAVE_CONFIG_H.
Do not use -include or a substitute.
---
 configure.ac       | 12 ------------
 src/blake2/b2sum.c |  4 ++++
 src/local.mk       |  9 +--------
 3 files changed, 5 insertions(+), 20 deletions(-)

diff --git a/configure.ac b/configure.ac
index f97ff862e..781a305e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -508,18 +508,6 @@ CFLAGS=3D$ac_save_CFLAGS
 LDFLAGS=3D$ac_save_LDFLAGS
 ac_c_werror_flag=3D$cu_save_c_werror_flag
=20
-# Detect when using xlc to determine whether to use -qinclude=3D
-AC_CACHE_CHECK([whether the system supports xlc include], [utils_cv_xlc]=
,
-  [AC_COMPILE_IFELSE(
-     [AC_LANG_PROGRAM([[
-          #ifndef __xlc__
-            #error "not xlc"
-          #endif
-        ]])],
-     [utils_cv_xlc=3Dyes],
-     [utils_cv_xlc=3Dno])])
-AM_CONDITIONAL([USE_XLC_INCLUDE], [test "$utils_cv_xlc" =3D yes])
-
 ########################################################################=
####
=20
 dnl Autogenerated by the 'gen-lists-of-programs.sh' auxiliary script.
diff --git a/src/blake2/b2sum.c b/src/blake2/b2sum.c
index 5df2046f8..5cb25b86a 100644
--- a/src/blake2/b2sum.c
+++ b/src/blake2/b2sum.c
@@ -13,6 +13,10 @@
    https://blake2.net.
 */
=20
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/src/local.mk b/src/local.mk
index a69d40521..763c8a01c 100644
--- a/src/local.mk
+++ b/src/local.mk
@@ -399,14 +399,7 @@ src_sha384sum_SOURCES =3D src/md5sum.c
 src_sha384sum_CPPFLAGS =3D -DHASH_ALGO_SHA384=3D1 $(AM_CPPFLAGS)
 src_sha512sum_SOURCES =3D src/md5sum.c
 src_sha512sum_CPPFLAGS =3D -DHASH_ALGO_SHA512=3D1 $(AM_CPPFLAGS)
-# Include the file on the command line to avoid modifying
-# the blake2 upstream source
-if USE_XLC_INCLUDE
-src_b2sum_CPPFLAGS =3D -qinclude=3Dconfig.h
-else
-src_b2sum_CPPFLAGS =3D -include config.h
-endif
-src_b2sum_CPPFLAGS +=3D -DHASH_ALGO_BLAKE2=3D1 $(AM_CPPFLAGS)
+src_b2sum_CPPFLAGS =3D -DHASH_ALGO_BLAKE2=3D1 -DHAVE_CONFIG_H $(AM_CPPFL=
AGS)
 src_b2sum_SOURCES =3D src/md5sum.c \
 		    src/blake2/blake2.h src/blake2/blake2-impl.h \
 		    src/blake2/blake2b-ref.c \
--=20
2.21.0


--------------6D44743565526C166AC80516
Content-Type: text/x-patch;
 name="0002-b2sum-sync-better-with-upstream.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0002-b2sum-sync-better-with-upstream.patch"

From 4a67a8f633c7f1b7eb12279be90326ca6062389f Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@HIDDEN>
Date: Wed, 15 May 2019 12:57:53 -0700
Subject: [PATCH 2/2] b2sum: sync better with upstream

* src/blake2/b2sum.c: Reorder source code to minimize diffs from:
https://github.com/BLAKE2/BLAKE2/blob/master/b2sum/b2sum.c
---
 src/blake2/b2sum.c | 29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)

diff --git a/src/blake2/b2sum.c b/src/blake2/b2sum.c
index 5cb25b86a..9f1108137 100644
--- a/src/blake2/b2sum.c
+++ b/src/blake2/b2sum.c
@@ -30,18 +30,19 @@
 
 #include "blake2.h"
 
+#if 0
 /* This will help compatibility with coreutils */
-int blake2b_stream( FILE *stream, void *resstream, size_t outbytes )
+int blake2s_stream( FILE *stream, void *resstream, size_t outbytes )
 {
   int ret = -1;
   size_t sum, n;
-  blake2b_state S[1];
+  blake2s_state S[1];
   static const size_t buffer_length = 32768;
   uint8_t *buffer = ( uint8_t * )malloc( buffer_length );
 
   if( !buffer ) return -1;
 
-  blake2b_init( S, outbytes );
+  blake2s_init( S, outbytes );
 
   while( 1 )
   {
@@ -67,32 +68,32 @@ int blake2b_stream( FILE *stream, void *resstream, size_t outbytes )
         goto final_process;
     }
 
-    blake2b_update( S, buffer, buffer_length );
+    blake2s_update( S, buffer, buffer_length );
   }
 
 final_process:;
 
-  if( sum > 0 ) blake2b_update( S, buffer, sum );
+  if( sum > 0 ) blake2s_update( S, buffer, sum );
 
-  blake2b_final( S, resstream, outbytes );
+  blake2s_final( S, resstream, outbytes );
   ret = 0;
 cleanup_buffer:
   free( buffer );
   return ret;
 }
+#endif
 
-#if 0
-int blake2s_stream( FILE *stream, void *resstream, size_t outbytes )
+int blake2b_stream( FILE *stream, void *resstream, size_t outbytes )
 {
   int ret = -1;
   size_t sum, n;
-  blake2s_state S[1];
+  blake2b_state S[1];
   static const size_t buffer_length = 32768;
   uint8_t *buffer = ( uint8_t * )malloc( buffer_length );
 
   if( !buffer ) return -1;
 
-  blake2s_init( S, outbytes );
+  blake2b_init( S, outbytes );
 
   while( 1 )
   {
@@ -118,20 +119,21 @@ int blake2s_stream( FILE *stream, void *resstream, size_t outbytes )
         goto final_process;
     }
 
-    blake2s_update( S, buffer, buffer_length );
+    blake2b_update( S, buffer, buffer_length );
   }
 
 final_process:;
 
-  if( sum > 0 ) blake2s_update( S, buffer, sum );
+  if( sum > 0 ) blake2b_update( S, buffer, sum );
 
-  blake2s_final( S, resstream, outbytes );
+  blake2b_final( S, resstream, outbytes );
   ret = 0;
 cleanup_buffer:
   free( buffer );
   return ret;
 }
 
+#if 0
 
 int blake2sp_stream( FILE *stream, void *resstream, size_t outbytes )
 {
@@ -253,6 +255,7 @@ static void usage( char **argv, int errcode )
   exit( errcode );
 }
 
+
 int main( int argc, char **argv )
 {
   blake2fn blake2_stream = blake2b_stream;
-- 
2.21.0


--------------6D44743565526C166AC80516--




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 15 May 2019 17:59:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 15 13:59:17 2019
Received: from localhost ([127.0.0.1]:53338 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hQyBR-0005Kk-8G
	for submit <at> debbugs.gnu.org; Wed, 15 May 2019 13:59:17 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:55832)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1hQyBO-0005KV-HV
 for 35650 <at> debbugs.gnu.org; Wed, 15 May 2019 13:59:15 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4B9B6161A3D;
 Wed, 15 May 2019 10:59:08 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id lEpTf90Llm9I; Wed, 15 May 2019 10:59:07 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 529EC161A3C;
 Wed, 15 May 2019 10:59:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id hMH3U6CRnx6e; Wed, 15 May 2019 10:59:07 -0700 (PDT)
Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 364F2161A33;
 Wed, 15 May 2019 10:59:07 -0700 (PDT)
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: "Osipov, Michael" <michael.osipov@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
 <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
 <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
 <5ef19664-f9a8-4924-983b-0710e1e3fced@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Openpgp: preference=signencrypt
Autocrypt: addr=eggert@HIDDEN; prefer-encrypt=mutual; keydata=
 xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9
 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS
 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl
 KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss
 mE3QjqfRqI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6jqUDTSDvn9YhNTdG0KXPM74aC+xr2Zow1O2mhXihgWKD0Dw+0LYPnUOsQ0KO
 FxHXXYHmRrS1OZPU59BLvc+TRhIhafSHKLwbXK+6ckkxBx6h8z5ccpG0Qs4bFhdFYnFrEieD
 LoGmnE2YLhdV6swJ9VNCS6pLiEohT3fm7aXm15tZOIyzMZhHRSAPblXxQ0ZSWjq8oRrcYNFx
 c4W1URpAkBCOYJoXvQfD5L3lqAl8TCqDUzYxhH/tJhbDdHrqHH767jaDaTB1+Talp/2AMKwc
 XNOdiklGxbmHVG6YGl6g8Lrbsu9NZEI4yLlHzuikthJWgz+3vZhVGyNlt+HNIoF6CjDL2omu
 5cEq4RDHM44QqPk6l7O0pUvN1mT4B+S1b08RKpqm/ff015E37HNV/piIvJlxGAYz8PSfuGCB
 1thMYqlmgdhd9/BabGFbGGYHA6U4/T5zqU+f6xHy1SsAQZ1MSKlLwekBIT+4/cLRGqCHjnV0
 q5H/T6a7t5mPkbzSrOLSo4puj+IToNjYyYIDBWzhlA19avOa+rvUjmHtD3sFN7cXWtkGoi8b
 uNcby4U=
Organization: UCLA Computer Science Department
Message-ID: <e616f24c-798d-d116-04f0-0bcf389b0d60@HIDDEN>
Date: Wed, 15 May 2019 10:59:03 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <5ef19664-f9a8-4924-983b-0710e1e3fced@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On 5/14/19 2:15 PM, Osipov, Michael wrote:
>> configure:68559: checking whether this system supports stdbuf
>> configure:68586: /opt/aCC/bin/aCC -AC99 -o conftest +z -g
>> -I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -b
>> -L/opt/ports/coreutils/lib/hpux32 conftest.c=C2=A0 >&5
>> configure:68586: $? =3D 0
>> configure:68591: result: yes
>
> I do not really understand the purpose of the patch as it does not
> really test for PIC/shared.

The patch alters the 'configure' script so that it's pickier about
rejecting warnings from the compiler.

The 'configure' script should be testing for -fPIC and -shared. It
should have something like this.

=C2=A0 $as_echo_n "checking whether this system supports stdbuf... " >&6;=
 }
=C2=A0 CFLAGS=3D"-fPIC $CFLAGS"
=C2=A0 LDFLAGS=3D"-shared $LDFLAGS"
=C2=A0 stdbuf_supported=3Dno
=C2=A0 # Note we only LINK here rather than RUN to support cross compilat=
ion
=C2=A0 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
=C2=A0 ...
=C2=A0 _ACEOF
=C2=A0 if ac_fn_c_try_link "$LINENO"; then :
=C2=A0=C2=A0=C2=A0 stdbuf_supported=3Dyes
=C2=A0 fi

So there should be an -fPIC and a -shared in the command line, but there
isn't in the diagnostics you mentioned. This is puzzling because the
diagnostic output you mentioned in <https://debbugs.gnu.org/35650#20>
did have -fPIC and -shared. So my guess is that somehow your 'configure'
script wasn't regenerated properly after you upgraded to my recent patch.

Please investigate why that is. I suggest looking into your updated
'configure' script to see whether it matches mine in this area. You can
also try putting the shell command 'set -x' into the 'configure' where
you want more debugging output.

Or, it might be easier for you to regenerate the source code from
scratch, by running this on a GNU/Linux platform:

git clone https://git.savannah.gnu.org/git/coreutils.git
cd coreutils
./bootstrap
./configure
make dist

and then unpacking and building the resulting tarball on HP-UX.





Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 15 May 2019 10:49:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 15 06:49:40 2019
Received: from localhost ([127.0.0.1]:51176 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hQrTe-00073n-5A
	for submit <at> debbugs.gnu.org; Wed, 15 May 2019 06:49:40 -0400
Received: from goliath.siemens.de ([192.35.17.28]:56242)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.osipov@HIDDEN>) id 1hQrTb-00073e-AW
 for 35650 <at> debbugs.gnu.org; Wed, 15 May 2019 06:49:36 -0400
Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14])
 by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x4FAnTtG031634
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Wed, 15 May 2019 12:49:29 +0200
Received: from [147.54.65.49] (MD11GXTC.ad001.siemens.net [147.54.65.49])
 by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id x4FAnSCY028266;
 Wed, 15 May 2019 12:49:29 +0200
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: Paul Eggert <eggert@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
 <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
 <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
From: "Osipov, Michael" <michael.osipov@HIDDEN>
Message-ID: <090a9242-630b-88b7-3114-cb2cdf1ec76f@HIDDEN>
Date: Wed, 15 May 2019 12:49:29 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

sys/bitypes.h:

Am 2019-05-14 um 18:26 schrieb Paul Eggert:
> On 5/14/19 6:52 AM, Osipov, Michael wrote:
>>
>> aCC does not exit with non-zero, it just prints a warning.
> 
> OK, I installed the attached patch to try to fix this problem with
> 'configure'. Please give it a try. We may need some more patches to fix
> the problems you evidently observed with #include_next, getacl, aclsort,
> and sys/bitypes.h.
> 

After evaluation of /usr/include:
> $ ll /usr/include/sys/*types*
> -r--r--r-- 1 bin bin   443 2007-02-15 22:31 /usr/include/sys/cred_types.h
> -r--r--r-- 1 bin bin   853 2007-02-15 22:31 /usr/include/sys/kc_typespec.h
> -r--r--r-- 1 bin bin   566 2007-01-12 20:37 /usr/include/sys/kthread_types.h
> -r--r--r-- 1 bin bin   530 2007-01-12 20:37 /usr/include/sys/proc_types.h
> -r--r--r-- 1 bin bin 17226 2010-08-14 23:23 /usr/include/sys/types.h
> -r--r--r-- 1 bin bin  6290 2007-02-15 22:31 /usr/include/sys/_inttypes.h
> osipovmi@deblndw024v:/tmp/system-compile/gnu/m4-1.4.18/m4
> $ ll /usr/include/*types*
> -r--r--r-- 1 bin bin  1132 2016-02-29 09:59 /usr/include/aouttypes.h
> -r--r--r-- 1 bin bin  1711 2016-02-29 09:59 /usr/include/elftypes.h
> -r--r--r-- 1 bin bin 14188 2007-02-15 22:36 /usr/include/inttypes.h
> -r--r--r-- 1 bin bin  1828 2016-02-29 09:59 /usr/include/langtypes.h
> -r--r--r-- 1 bin bin  3277 2007-02-15 22:36 /usr/include/nl_types.h

the ac_cv_header_sys_bitypes_h=no is redundant because there is no such 
header file. It would default to no anyway.

So we're down to #include_next and the linking/PIC issue.

Michael




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 15 May 2019 10:24:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 15 06:24:51 2019
Received: from localhost ([127.0.0.1]:51115 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hQr5f-0006O5-B8
	for submit <at> debbugs.gnu.org; Wed, 15 May 2019 06:24:51 -0400
Received: from thoth.sbs.de ([192.35.17.2]:43903)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.osipov@HIDDEN>) id 1hQr5d-0006Nv-4P
 for 35650 <at> debbugs.gnu.org; Wed, 15 May 2019 06:24:50 -0400
Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14])
 by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id x4FAOhVS026169
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Wed, 15 May 2019 12:24:43 +0200
Received: from [147.54.65.49] (MD11GXTC.ad001.siemens.net [147.54.65.49])
 by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id x4FAOgxc001200;
 Wed, 15 May 2019 12:24:42 +0200
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: Paul Eggert <eggert@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
 <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
 <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
From: "Osipov, Michael" <michael.osipov@HIDDEN>
Message-ID: <f421a8bf-d679-1bfb-3598-d59f3a61df07@HIDDEN>
Date: Wed, 15 May 2019 12:24:43 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

getacl, aclsort:

Am 2019-05-14 um 18:26 schrieb Paul Eggert:
> On 5/14/19 6:52 AM, Osipov, Michael wrote:
>>
>> aCC does not exit with non-zero, it just prints a warning.
> 
> OK, I installed the attached patch to try to fix this problem with
> 'configure'. Please give it a try. We may need some more patches to fix
> the problems you evidently observed with #include_next, getacl, aclsort,
> and sys/bitypes.h.
> 

I checked acl.m4, headers in /usr/include/, manpages with errno as well 
as the affected C files:

* configure properly detects everything
* the code compiles flawlessly

so both ac_cv_func_getacl=no ac_cv_func_aclsort=no can be dropped.

Note: I don't have ACLs explcitly in use on our servers.

Michael




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 15 May 2019 09:30:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 15 05:30:38 2019
Received: from localhost ([127.0.0.1]:50977 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hQqFC-00051Y-Cq
	for submit <at> debbugs.gnu.org; Wed, 15 May 2019 05:30:38 -0400
Received: from goliath.siemens.de ([192.35.17.28]:44876)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.osipov@HIDDEN>) id 1hQqF7-00051M-Ki
 for 35650 <at> debbugs.gnu.org; Wed, 15 May 2019 05:30:36 -0400
Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11])
 by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x4F9UQWX021185
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Wed, 15 May 2019 11:30:27 +0200
Received: from [147.54.65.49] (MD11GXTC.ad001.siemens.net [147.54.65.49])
 by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id x4F9UQAd028212;
 Wed, 15 May 2019 11:30:26 +0200
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: Paul Eggert <eggert@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
 <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
 <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
From: "Osipov, Michael" <michael.osipov@HIDDEN>
Message-ID: <c8f43ddf-481d-453d-c631-9daa102acd61@HIDDEN>
Date: Wed, 15 May 2019 11:30:26 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

let's examine #include_next first:

Am 2019-05-14 um 18:26 schrieb Paul Eggert:
> On 5/14/19 6:52 AM, Osipov, Michael wrote:
>>
>> aCC does not exit with non-zero, it just prints a warning.
> 
> OK, I installed the attached patch to try to fix this problem with
> 'configure'. Please give it a try. We may need some more patches to fix
> the problems you evidently observed with #include_next, getacl, aclsort,
> and sys/bitypes.h.
> 

configure.ac:
 > configure:8765: checking whether the preprocessor supports include_next
 > configure:8803: /opt/aCC/bin/aCC -AC99 -c -g 
-I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 
-Iconftestd1b -Iconftestd2 conftest.c >&5
 > configure:8803: $? = 0
 > configure:8824: result: yes

result:
 >   CC       src/b2sum-md5sum.o
 > cpp: "./lib/stdlib.h", line 28: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/stdio.h", line 43: error 4052: Unknown preprocessing 
directive.
 > cpp: "/usr/include/sys/stdsyms.h", line 63: warning 2001: 
Redefinition of macro _INCLUDE_STDC__SOURCE_199901.
 > cpp: "./lib/stddef.h", line 55: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/sys/types.h", line 39: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/unistd.h", line 40: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/stdlib.h", line 28: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/time.h", line 41: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/sys/stat.h", line 47: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/sys/time.h", line 39: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/limits.h", line 27: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/time.h", line 35: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/string.h", line 41: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/errno.h", line 27: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/stdlib.h", line 36: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/fcntl.h", line 61: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/dirent.h", line 27: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/inttypes.h", line 41: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/stdint.h", line 77: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/inttypes.h", line 41: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/time.h", line 35: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/wchar.h", line 55: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/inttypes.h", line 61: error 4062: "This file assumes that 
'int' has exactly 32 bits. Please report your platform and compiler to 
<bug-gnulib@HIDDEN>."
 > cpp: "./lib/time.h", line 35: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/ctype.h", line 35: error 4052: Unknown preprocessing 
directive.
 > cpp: "./lib/locale.h", line 41: error 4052: Unknown preprocessing 
directive.
 > gmake[2]: *** [Makefile:12142: src/b2sum-md5sum.o] Error 1
 > gmake[2]: Leaving directory '/tmp/system-compile/gnu/coreutils-8.31'

command in question:
 > + /opt/aCC/bin/aCC -AC99 -I. -I./lib -include config.h 
-DHASH_ALGO_BLAKE2=1 -Ilib -I./lib -Isrc -I./src 
-I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -g -c -o 
src/b2sum-md5sum.o src/md5sum.c +Maked

without the '-include':
 > bash-5.0# /opt/aCC/bin/aCC -AC99 -I. -I./lib  -DHASH_ALGO_BLAKE2=1 
-Ilib -I./lib -Isrc -I./src -I/opt/ports/coreutils/include 
-D_INCLUDE_STDC__SOURCE_199901 -g -c -o src/b2sum-md5sum.o src/md5sum.c 
+Maked
 > "./lib/timespec.h", line 98: warning #2174-D: expression has no effect
 >     assume (-1 <= a.tv_nsec && a.tv_nsec <= 2 * TIMESPEC_HZ);
 >     ^
 >
 > "./lib/timespec.h", line 99: warning #2174-D: expression has no effect
 >     assume (-1 <= b.tv_nsec && b.tv_nsec <= 2 * TIMESPEC_HZ);
 >     ^

According the manual [1] the compiler supports #include_next, but for 
some strange reason it does not when -include is used. The funny thing 
is -include isn't even in the manual.
 > bash-5.0# aCC -include
 > aCC: error 1909: `-include' option requires argument

This one comes from:
 > @USE_XLC_INCLUDE_FALSE@src_b2sum_CPPFLAGS = -include config.h

I will inquire this with HPE because it looks fishy to me.
I don't know how to solve this differently for now, but to disable 
include_next in configure.ac if the compiler is aCC.

Michael

[1] https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c05054285




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 14 May 2019 21:16:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 14 17:16:11 2019
Received: from localhost ([127.0.0.1]:50066 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hQemR-0005m1-GI
	for submit <at> debbugs.gnu.org; Tue, 14 May 2019 17:16:11 -0400
Received: from goliath.siemens.de ([192.35.17.28]:37432)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.osipov@HIDDEN>) id 1hQemO-0005lq-V4
 for 35650 <at> debbugs.gnu.org; Tue, 14 May 2019 17:16:10 -0400
Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11])
 by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x4ELFuRR021961
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Tue, 14 May 2019 23:15:57 +0200
Received: from [147.54.65.49] (MD11GXTC.ad001.siemens.net [147.54.65.49])
 by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id x4ELFuVE010157;
 Tue, 14 May 2019 23:15:56 +0200
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: Paul Eggert <eggert@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
 <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
 <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
From: "Osipov, Michael" <michael.osipov@HIDDEN>
Message-ID: <5ef19664-f9a8-4924-983b-0710e1e3fced@HIDDEN>
Date: Tue, 14 May 2019 23:15:55 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Am 2019-05-14 um 18:26 schrieb Paul Eggert:
> On 5/14/19 6:52 AM, Osipov, Michael wrote:
>>
>> aCC does not exit with non-zero, it just prints a warning.
> 
> OK, I installed the attached patch to try to fix this problem with
> 'configure'. Please give it a try. We may need some more patches to fix
> the problems you evidently observed with #include_next, getacl, aclsort,
> and sys/bitypes.h.
> 

So:
> checking whether C compiler handles -Werror... no
> checking whether C compiler handles -errwarn... no
> checking whether this system supports stdbuf... yes

in detail:
> configure:68484: checking whether C compiler handles -Werror
> configure:68503: /opt/aCC/bin/aCC -AC99 -o conftest -g  -Werror -I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -L/opt/ports/coreutils/lib/hpux32 conftest.c  >&5
> aCC: error 1914: bad form for `-W' option
> configure:68503: $? = 1 > configure:68513: result: no> configure:68522: checking whether C 
compiler handles -errwarn
> configure:68541: /opt/aCC/bin/aCC -AC99 -o conftest -g  -errwarn -I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -L/opt/ports/coreutils/lib/hpux32 conftest.c  >&5
> ld: Entry symbol "rrwarn" not found
> Fatal error.
> configure:68541: $? = 1
> configure:68551: result: no
> configure:68559: checking whether this system supports stdbuf
> configure:68586: /opt/aCC/bin/aCC -AC99 -o conftest +z -g -I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -b -L/opt/ports/coreutils/lib/hpux32 conftest.c  >&5
> configure:68586: $? = 0
> configure:68591: result: yes

I do not really understand the purpose of the patch as it does not 
really test for PIC/shared. This [1] is a viable approach I have taken 
to make it work for linker style on HP-UX. I guess one could steal that 
and reuse for -fPIC/+z.

[1] https://github.com/git/git/pull/608/files

WDYT?

Michael




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 14 May 2019 16:26:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 14 12:26:26 2019
Received: from localhost ([127.0.0.1]:49685 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hQaG1-000535-Uq
	for submit <at> debbugs.gnu.org; Tue, 14 May 2019 12:26:26 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45198)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1hQaFx-00052p-6J
 for 35650 <at> debbugs.gnu.org; Tue, 14 May 2019 12:26:24 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 722A1161A26;
 Tue, 14 May 2019 09:26:14 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id oaW8cbA9F-PE; Tue, 14 May 2019 09:26:11 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8F26A161A36;
 Tue, 14 May 2019 09:26:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id vFlx5VfV93s7; Tue, 14 May 2019 09:26:11 -0700 (PDT)
Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6C80F161A29;
 Tue, 14 May 2019 09:26:11 -0700 (PDT)
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: "Osipov, Michael" <michael.osipov@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
 <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Openpgp: preference=signencrypt
Autocrypt: addr=eggert@HIDDEN; prefer-encrypt=mutual; keydata=
 xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9
 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS
 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl
 KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss
 mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK
 QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2
 Sf1tk5eU8MBiyN/bZ03bKNjNYMpODDQQwuP84kYLkX2wBxxMAhBxwbDVZudzxDZJ1C2VXujC
 OJVxq2kljBM9ETYuUGqd75AW2LXrLw6+MuIsHFAYAgRr7+KcwDgBAfwhPBYX34nSSiHlmLC+
 KaHLeCLF5ZI2vKm3HEeCTtlOg7xZEONgwzL+fdKo+D6SoC8RRxJKs8a3sVfI4t6CnrQzvJbB
 n6gxdgCu5i29J1QCYrCYvql2UyFPAK+do99/1jOXT4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RKpqm/ff015E37HNV/piIvJlxGAYz8PSfuGCB
 1thMYqlmgdhd9/BabGFbGGYHA6U4/T5zqU+f6xHy1SsAQZ1MSKlLwekBIT+4/cLRGqCHjnV0
 q5H/T6a7t5mPkbzSrOLSo4puj+IToNjYyYIDBWzhlA19avOa+rvUjmHtD3sFN7cXWtkGoi8b
 uNcby4U=
Organization: UCLA Computer Science Department
Message-ID: <d3615117-0d46-b7ea-9426-54bc21c70675@HIDDEN>
Date: Tue, 14 May 2019 09:26:11 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
Content-Type: multipart/mixed; boundary="------------E777AAD0F6930597D7DB4841"
Content-Language: en-US
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

This is a multi-part message in MIME format.
--------------E777AAD0F6930597D7DB4841
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

On 5/14/19 6:52 AM, Osipov, Michael wrote:
>
> aCC does not exit with non-zero, it just prints a warning.

OK, I installed the attached patch to try to fix this problem with
'configure'. Please give it a try. We may need some more patches to fix
the problems you evidently observed with #include_next, getacl, aclsort,
and sys/bitypes.h.


--------------E777AAD0F6930597D7DB4841
Content-Type: text/x-patch;
 name="0001-stdbuf-port-configure-time-checking-to-HP-UX-aCC.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0001-stdbuf-port-configure-time-checking-to-HP-UX-aCC.patch"

From 9eb544252ca9ecb9b52b8a26bd98a5e6723bbc3a Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@HIDDEN>
Date: Tue, 14 May 2019 09:20:56 -0700
Subject: [PATCH] stdbuf: port configure-time checking to HP-UX aCC

Problem reported by Michael Osipov (Bug#35650).
* configure.ac: Use AC_LANG_WERROR to pay attention to compiler
and linker warnings when testing whether stdbuf will work.
---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index 0ee01b2cd..f97ff862e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -476,6 +476,8 @@ fi
 # Build stdbuf only if supported
 ac_save_CFLAGS=$CFLAGS
 ac_save_LDFLAGS=$LDFLAGS
+cu_save_c_werror_flag=$ac_c_werror_flag
+AC_LANG_WERROR
 # Detect warnings about ignored "constructor" attributes.
 gl_WARN_ADD([-Werror], [CFLAGS])
 gl_WARN_ADD([-errwarn], [CFLAGS])
@@ -504,6 +506,7 @@ if test "$stdbuf_supported" = "yes" && test -z "$EXEEXT"; then
 fi
 CFLAGS=$ac_save_CFLAGS
 LDFLAGS=$ac_save_LDFLAGS
+ac_c_werror_flag=$cu_save_c_werror_flag
 
 # Detect when using xlc to determine whether to use -qinclude=
 AC_CACHE_CHECK([whether the system supports xlc include], [utils_cv_xlc],
-- 
2.21.0


--------------E777AAD0F6930597D7DB4841--




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 14 May 2019 14:34:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 14 10:34:50 2019
Received: from localhost ([127.0.0.1]:49568 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hQYVz-0000FN-0E
	for submit <at> debbugs.gnu.org; Tue, 14 May 2019 10:34:50 -0400
Received: from thoth.sbs.de ([192.35.17.2]:55650)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.osipov@HIDDEN>) id 1hQXrM-0007ET-Cj
 for 35650 <at> debbugs.gnu.org; Tue, 14 May 2019 09:52:53 -0400
Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11])
 by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id x4EDqYmf017054
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Tue, 14 May 2019 15:52:34 +0200
Received: from [147.54.65.49] (MD11GXTC.ad001.siemens.net [147.54.65.49])
 by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id x4EDqXPD007676;
 Tue, 14 May 2019 15:52:33 +0200
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: Paul Eggert <eggert@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
From: "Osipov, Michael" <michael.osipov@HIDDEN>
Message-ID: <46b58022-769f-c540-6f16-fbf38fd5a2a7@HIDDEN>
Date: Tue, 14 May 2019 15:52:33 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 35650
X-Mailman-Approved-At: Tue, 14 May 2019 10:34:42 -0400
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Hi Paul,

Am 2019-05-11 um 23:14 schrieb Paul Eggert:
> Thanks for the bug report. I installed the attached patches to coreutils 
> on savannah to fix some (but not all) of the bugs, and some other 
> C99-related bugs I noticed, and have some further comments and questions.
>>
>> * system.h: use __attribute(x) on a GNU-style compiler only
>> * configure.ac, local.mk: use HP aCC-style linker options for libstdbuf 
> 
> I don't see why these patches are needed. 'configure' should arrange for 
> libstdbuf to be built only if you are using GCC. If libstdbuf is being 
> built when you use HP-UX aCC, that suggests there is a bug in 
> 'configure.ac' and we should fix that bug rather than try to port 
> libstdbuf to HP-UX.

Here it is w/o the patch:
> checking whether this system supports stdbuf... yes
> configure:68555: checking whether this system supports stdbuf
> configure:68582: /opt/aCC/bin/aCC -AC99 -o conftest -fPIC -g -I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -shared -L/opt/ports/cor
> aCC: warning 901: unknown option: `-fPIC': use +help for online documentation.
> aCC: warning 901: unknown option: `-hared': use +help for online documentation.
> aCC: warning 919: "-s" and "-g/-g0/-g1/-G/-p/+I" are mutually exclusive.  "-s" option ignored
> configure:68582: $? = 0
> configure:68587: result: yes

aCC does not exit with non-zero, it just prints a warning. configure.ac 
makes false assumptions here at the end. Personally, I don't need 
stdbuf. If it really should only be compiled with GCC, you should test 
for GCC only.

Drop the hunk for system.h if you think it is not necessary.

>>
>>> FORCE_UNSAFE_CONFIGURE=1 gl_cv_have_include_next=no 
>>> ac_cv_func_getacl=no ac_cv_func_aclsort=no 
>>> ac_cv_header_sys_bitypes_h=no $CONFIGURE
>>> gmake install
> 
> Why do you need all those flags and why do you need to use gmake? Plain 
> './configure; make' should work. The fact that you need those flags 
> suggests that there is a bug in configure.ac, and it'd be better to fix 
> the underlying bug than to try to paper around it (and possibly 
> introduce further bugs).

I agree here, I will take on this in the next round of patches if you 
don't mind. I wanted to avoid a huge patch in the first place.

>> * I have disabled the compilation of b2sum completely because gmake 
>> repeatedly quits with:
>>> gmake[2]: *** No rule to make target '/var/tmp/AAA000546.i', needed 
>>> by 'src/b2sum-md5sum.o'.  Stop.
>>> gmake[2]: Leaving directory '/tmp/system-compile/gnu/coreutils-8.31'
>>> gmake[1]: *** [Makefile:12647: all-recursive] Error 1
>>> gmake[1]: Leaving directory '/tmp/system-compile/gnu/coreutils-8.31'
>>> gmake: *** [Makefile:6827: all] Error 2
> 
> Presumably your top-level Makefile is messed up somehow. Please 
> investigate the rule for building b2sum that is in 'Makefile', and try 
> to figure out how it got corrupted. It might be a bug in the way 
> 'configure' calls 'sed', or a bug in your 'sed' or 'awk' implementation.

Right now, it is a bit awkward. After a 'gmake clean' and 'configure' 
it works again. I will leave it as-is for now and maybe have a look at 
it later.

>> * The configuration of PIC and shared library is for HP-UX now. At 
>> best autotools would determine that with some default m4 file. 
> Plain './configure; make' should work and if it doesn't work we should 
> fix it. Normally it does not build shared libraries or try to use PIC; 
> although you can arrange for it to do so that is lower priority for us.

See above.

Michael




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 14 May 2019 14:34:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 14 10:34:47 2019
Received: from localhost ([127.0.0.1]:49566 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hQYVv-0000FF-7Z
	for submit <at> debbugs.gnu.org; Tue, 14 May 2019 10:34:46 -0400
Received: from david.siemens.de ([192.35.17.14]:57087)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.osipov@HIDDEN>) id 1hQVWI-0001Jz-0t
 for 35650 <at> debbugs.gnu.org; Tue, 14 May 2019 07:22:57 -0400
Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11])
 by david.siemens.de (8.15.2/8.15.2) with ESMTPS id x4EBMqKR027231
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Tue, 14 May 2019 13:22:52 +0200
Received: from [147.54.65.49] (MD11GXTC.ad001.siemens.net [147.54.65.49])
 by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id x4EBMqxf029988;
 Tue, 14 May 2019 13:22:52 +0200
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <b575ac04-7b69-3a51-6e0e-684ee2492977@HIDDEN>
From: "Osipov, Michael" <michael.osipov@HIDDEN>
Message-ID: <86ecd8b7-578c-63e9-aa0b-0e0403a8e034@HIDDEN>
Date: Tue, 14 May 2019 13:22:53 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <b575ac04-7b69-3a51-6e0e-684ee2492977@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 35650
X-Mailman-Approved-At: Tue, 14 May 2019 10:34:42 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Am 2019-05-10 um 11:49 schrieb Pádraig Brady:
> On 09/05/19 03:50, Osipov, Michael wrote:
>> diff -ur src/system.h src/system.h
>> --- src/system.h	2019-01-05 11:36:22 +0000
>> +++ src/system.h	2019-05-08 15:19:29 +0000
>> @@ -422,6 +422,10 @@
>>   # endif
>>   #endif
>>   
>> +#ifndef __GNUC__
>> +#define __attribute(x) /* empty */
>> +#endif
> 
> The only use of __attribute is:
> 
> src/libstdbuf.c:/* Use __attribute to avoid elision of __attribute__ on SUNPRO_C etc.  */
> src/libstdbuf.c:static void __attribute ((constructor))
> 
> So we should probably have special __hpux handling in that file
> rather than doing the above.
> 
> This is all dependent on stdbuf actually working on your platform.
> Possibly the most appropriate change would be to use __attribute
> rather than __attribute__ in configure.ac
> 
>>   #ifndef ATTRIBUTE_NORETURN
>>   # define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
>>   #endif
>> --- configure.ac	2019-03-04 08:40:55 +0000
>> +++ configure.ac	2019-05-08 15:40:41 +0000
>> @@ -481,8 +481,8 @@
>>   gl_WARN_ADD([-errwarn], [CFLAGS])
>>   # Put this message here, after gl_WARN_ADD's chatter.
>>   AC_MSG_CHECKING([whether this system supports stdbuf])
>> -CFLAGS="-fPIC $CFLAGS"
>> -LDFLAGS="-shared $LDFLAGS"
>> +CFLAGS="+z $CFLAGS"
>> +LDFLAGS="-b $LDFLAGS"
> 
> This would need to be conditional,
> again if stdbuf does actually work on hpux.

How try that out? I have it in place and we'll know it in an instant:
> $ ldd $(which stdbuf)
> 
> /opt/ports/coreutils/bin/stdbuf:
>         libc.so.1 =>    /usr/lib/hpux32/libc.so.1
>         libdl.so.1 =>   /usr/lib/hpux32/libdl.so.1
> $ ldd /opt/ports/coreutils/libexec/coreutils/libstdbuf.so
> 
> /opt/ports/coreutils/libexec/coreutils/libstdbuf.so:

Regards,

Michael




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 11 May 2019 21:45:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 11 17:45:12 2019
Received: from localhost ([127.0.0.1]:41365 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hPZns-0006dI-08
	for submit <at> debbugs.gnu.org; Sat, 11 May 2019 17:45:12 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:46848)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1hPZnp-0006cv-Gs
 for 35650 <at> debbugs.gnu.org; Sat, 11 May 2019 17:45:10 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9A1A2161856;
 Sat, 11 May 2019 14:45:03 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id HEJd-Rsd_2WM; Sat, 11 May 2019 14:45:02 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6941A1618B1;
 Sat, 11 May 2019 14:45:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id f8PmtZOYIC45; Sat, 11 May 2019 14:45:02 -0700 (PDT)
Received: from [192.168.147.182] (unknown [12.201.183.3])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id CADE4161144;
 Sat, 11 May 2019 14:45:01 -0700 (PDT)
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
 <b575ac04-7b69-3a51-6e0e-684ee2492977@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Message-ID: <b6936938-69d9-424e-e46d-ded27b5b1c54@HIDDEN>
Date: Sat, 11 May 2019 16:45:00 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <b575ac04-7b69-3a51-6e0e-684ee2492977@HIDDEN>
Content-Type: multipart/mixed; boundary="------------0A4A07D6D3D251D818CE82DA"
Content-Language: en-US
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35650
Cc: contact@HIDDEN, "Osipov, Michael" <michael.osipov@HIDDEN>,
 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

This is a multi-part message in MIME format.
--------------0A4A07D6D3D251D818CE82DA
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

On 5/10/19 4:49 AM, P=C3=A1draig Brady wrote:
> this file comes from blake2 upstream source on github,
> so you might want to broach the change there.

I'll cc: this email to contact@HIDDEN to let them know about the=20
problem (if you're just catching up you can see the thread at=20
<https://bugs.gnu.org/35650>).

We shouldn't simply push this problem upstream to the BLAKE2=20
maintainers, as the BLAKE2 code is now in coreutils and if it breaks a=20
build then it's our responsibility to fix it. So for now I installed the=20
attached patch into coreutils, which I hope works around the BLAKE2=20
code's problem.

The underlying problem is that the reference code's definition of the=20
BLAKE2_PACKED macro assumes that the compiler is compatible with either=20
GCC or with Microsoft's C compiler, and HP-UX aCC is neither. As far as=20
I can see, for blake2.h on typical current platforms, there is no need=20
to use __attribute__ ((oacked)) or the Microsoft equivalent because the=20
data structure is already packed well enough, so the attached patch=20
simply skips the attribute unless we know that it will work.

I also noticed that the BLAKE2 code is not portable code according to=20
either POSIX or to the C standard, since it assumes types like uint64_t=20
that both standards say are optional. If that's OK with the BLAKE2=20
maintainers then the attached patch should suffice, as it should be=20
"good enough" for most common platforms. If you want the code to be=20
portable, you'll need to arrange for it to pack and unpack by hand, at=20
least on platforms that don't support a packed attribute and/or don't=20
support types like uint64_t.


--------------0A4A07D6D3D251D818CE82DA
Content-Type: text/plain; charset=UTF-8;
 name="0001-b2sum-port-to-HP-UX-C.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="0001-b2sum-port-to-HP-UX-C.txt"

RnJvbSA2ZTk3ZDM2MWI0N2M5ODE5NjZmMGJmZWYwMzY1OWM1NzI0MDliY2JhIE1vbiBTZXAg
MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1
PgpEYXRlOiBTYXQsIDExIE1heSAyMDE5IDEzOjQ4OjE2IC0wNzAwClN1YmplY3Q6IFtQQVRD
SF0gYjJzdW06IHBvcnQgdG8gSFAtVVggQwpNSU1FLVZlcnNpb246IDEuMApDb250ZW50LVR5
cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9VVRGLTgKQ29udGVudC1UcmFuc2Zlci1FbmNvZGlu
ZzogOGJpdAoKKiBzcmMvYmxha2UyL2JsYWtlMi5oIChCTEFLRTJfUEFDS0VEKToKRG9u4oCZ
dCBhc3N1bWUgX19hdHRyaWJ1dGVfXyAoKHBhY2tlZCkpIHdvcmtzIG9uIG5vbi1NaWNyb3Nv
ZnQKY29tcGlsZXJzLiAgSW5zdGVhZCwgYXNzdW1lIGl0IHdvcmtzIG9ubHkgaWYgd2UgaGF2
ZSBnb29kCnJlYXNvbiB0byBhc3N1bWUgc28sIGFuZCBmYWxsIGJhY2sgb24gTWljcm9zb2Z0
IChvciBub3QgcGFja2luZykKb3RoZXJ3aXNlLiAgSW4gcHJhY3RpY2UsIG5vdCBw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BhY2sgKHBvcCkpCisjZW5kaWYKKyNpZm5kZWYgQkxBS0Uy
X1BBQ0tFRAorLyogVGhpcyBzaG91bGQgYmUgZ29vZCBlbm91Z2ggb24gb3RoZXIgcGxhdGZv
cm1zLgorICAgSWYgaXQncyBub3QgZ29vZCBvbiB5b3VycywgcGxlYXNlIGZpbGUgYSBidWcg
cmVwb3J0LiAgKi8KKyMgZGVmaW5lIEJMQUtFMl9QQUNLRUQoeCkgeAogI2VuZGlmCiAKICNp
ZiBkZWZpbmVkKF9fY3BsdXNwbHVzKQotLSAKMi4yMC4xCgo=
--------------0A4A07D6D3D251D818CE82DA--




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 11 May 2019 21:15:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 11 17:15:17 2019
Received: from localhost ([127.0.0.1]:41321 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hPZKu-0005sd-R6
	for submit <at> debbugs.gnu.org; Sat, 11 May 2019 17:15:17 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44606)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1hPZKq-0005sD-Lc
 for 35650 <at> debbugs.gnu.org; Sat, 11 May 2019 17:15:14 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 544C21619ED;
 Sat, 11 May 2019 14:15:06 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id odOdmIoRC6jC; Sat, 11 May 2019 14:15:02 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id C706B1619F0;
 Sat, 11 May 2019 14:15:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id re3xc8beVB0D; Sat, 11 May 2019 14:15:02 -0700 (PDT)
Received: from [192.168.147.182] (unknown [12.201.183.3])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B5C3B161058;
 Sat, 11 May 2019 14:15:01 -0700 (PDT)
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: "Osipov, Michael" <michael.osipov@HIDDEN>
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Message-ID: <1394c8fe-1d2c-7d37-0d58-838ebb3f246c@HIDDEN>
Date: Sat, 11 May 2019 16:14:57 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
Content-Type: multipart/mixed; boundary="------------CDFB95ED5CCF23E9B247040B"
Content-Language: en-US
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35650
Cc: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>, 35650 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

This is a multi-part message in MIME format.
--------------CDFB95ED5CCF23E9B247040B
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Thanks for the bug report. I installed the attached patches to coreutils=20
on savannah to fix some (but not all) of the bugs, and some other=20
C99-related bugs I noticed, and have some further comments and questions.

On 5/9/19 5:50 AM, Osipov, Michael wrote:
>
> * basenc.c: HP aCC does not allow anonymous unions inside structs,

Fixed in the 3rd attached patch, in a slightly-different way.

> * blake2/blake2.h: __attribute__((packed)) does not exist in HP aCC,=20
> use #pragma pack

As near as I can make out, that code (a) doesn't need the packed=20
attribute on any popular platform, and (b) wouldn't be portable among=20
Standard C platforms even if Standard C had the packed attribute. I'll=20
try to follow up with the BLAKE2 folks and CC: here.

> * copy.c, mkfifo.c: disable SELinux code if it is not available

As you noted, this patch isn't needed (the code builds without it) so=20
let's omit the patch.

>
> * system.h: use __attribute(x) on a GNU-style compiler only
> * configure.ac, local.mk: use HP aCC-style linker options for libstdbuf=
=20

I don't see why these patches are needed. 'configure' should arrange for=20
libstdbuf to be built only if you are using GCC. If libstdbuf is being=20
built when you use HP-UX aCC, that suggests there is a bug in=20
'configure.ac' and we should fix that bug rather than try to port=20
libstdbuf to HP-UX.

>
>> FORCE_UNSAFE_CONFIGURE=3D1 gl_cv_have_include_next=3Dno=20
>> ac_cv_func_getacl=3Dno ac_cv_func_aclsort=3Dno=20
>> ac_cv_header_sys_bitypes_h=3Dno $CONFIGURE
>> gmake install

Why do you need all those flags and why do you need to use gmake? Plain=20
'./configure; make' should work. The fact that you need those flags=20
suggests that there is a bug in configure.ac, and it'd be better to fix=20
the underlying bug than to try to paper around it (and possibly=20
introduce further bugs).


> * I have disabled the compilation of b2sum completely because gmake=20
> repeatedly quits with:
>> gmake[2]: *** No rule to make target '/var/tmp/AAA000546.i', needed=20
>> by 'src/b2sum-md5sum.o'.=C2=A0 Stop.
>> gmake[2]: Leaving directory '/tmp/system-compile/gnu/coreutils-8.31'
>> gmake[1]: *** [Makefile:12647: all-recursive] Error 1
>> gmake[1]: Leaving directory '/tmp/system-compile/gnu/coreutils-8.31'
>> gmake: *** [Makefile:6827: all] Error 2

Presumably your top-level Makefile is messed up somehow. Please=20
investigate the rule for building b2sum that is in 'Makefile', and try=20
to figure out how it got corrupted. It might be a bug in the way=20
'configure' calls 'sed', or a bug in your 'sed' or 'awk' implementation.

> * The configuration of PIC and shared library is for HP-UX now. At=20
> best autotools would determine that with some default m4 file.=20
Plain './configure; make' should work and if it doesn't work we should=20
fix it. Normally it does not build shared libraries or try to use PIC;=20
although you can arrange for it to do so that is lower priority for us.

--------------CDFB95ED5CCF23E9B247040B
Content-Type: text/x-patch;
 name="0001-build-update-gnulib-submodule-to-latest.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0001-build-update-gnulib-submodule-to-latest.patch"

From 83317a740c1930513ecfab64123545b66a93c556 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@HIDDEN>
Date: Sat, 11 May 2019 08:34:59 -0700
Subject: [PATCH 1/4] build: update gnulib submodule to latest

---
 gnulib | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnulib b/gnulib
index 22b911f63..c7d0b4506 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 22b911f63ca11395f03ce2ce3cc0b371a37a576d
+Subproject commit c7d0b4506574887be5835ae9ae892d365afbb98c
-- 
2.21.0


--------------CDFB95ED5CCF23E9B247040B
Content-Type: text/x-patch;
 name="0002-maint-adjust-to-recent-verify_true-removal.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0002-maint-adjust-to-recent-verify_true-removal.patch"

From ac790dd221a774b9f6dda7b924a74c0d3a673514 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@HIDDEN>
Date: Sat, 11 May 2019 09:32:04 -0700
Subject: [PATCH 2/4] maint: adjust to recent verify_true removal

* src/system.h (X2NREALLOC, X2REALLOC, DECIMAL_DIGIT_ACCUMULATE):
Use verify_expr instead of verify_true, which has been removed.
(DECIMAL_DIGIT_ACCUMULATE): Remove unnecessary size check.
---
 src/system.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/system.h b/src/system.h
index e4790f7cc..65cd742fc 100644
--- a/src/system.h
+++ b/src/system.h
@@ -245,15 +245,15 @@ uid_t getuid (void);
    the third argument to x2nrealloc would be 'sizeof *(P)'.
    Ensure that sizeof *(P) is *not* 1.  In that case, it'd be
    better to use X2REALLOC, although not strictly necessary.  */
-#define X2NREALLOC(P, PN) ((void) verify_true (sizeof *(P) != 1), \
-                           x2nrealloc (P, PN, sizeof *(P)))
+#define X2NREALLOC(P, PN) verify_expr (sizeof *(P) != 1, \
+                                       x2nrealloc (P, PN, sizeof *(P)))
 
 /* Using x2realloc (when appropriate) usually makes your code more
    readable than using x2nrealloc, but it also makes it so your
    code will malfunction if sizeof *(P) ever becomes 2 or greater.
    So use this macro instead of using x2realloc directly.  */
-#define X2REALLOC(P, PN) ((void) verify_true (sizeof *(P) == 1), \
-                          x2realloc (P, PN))
+#define X2REALLOC(P, PN) verify_expr (sizeof *(P) == 1, \
+                                      x2realloc (P, PN))
 
 #include "unlocked-io.h"
 #include "same-inode.h"
@@ -567,11 +567,11 @@ is_nul (void const *buf, size_t length)
 #define DECIMAL_DIGIT_ACCUMULATE(Accum, Digit_val, Type)		\
   (									\
    (void) (&(Accum) == (Type *) NULL),  /* The type matches.  */	\
-   (void) verify_true (! TYPE_SIGNED (Type)), /* The type is unsigned.  */ \
-   (void) verify_true (sizeof (Accum) == sizeof (Type)), /* Added check.  */ \
-   (((Type) -1 / 10 < (Accum)						\
-     || (Type) ((Accum) * 10 + (Digit_val)) < (Accum))			\
-    ? false : (((Accum) = (Accum) * 10 + (Digit_val)), true))		\
+   verify_expr (! TYPE_SIGNED (Type), /* The type is unsigned.  */      \
+                (((Type) -1 / 10 < (Accum)                              \
+                  || (Type) ((Accum) * 10 + (Digit_val)) < (Accum))     \
+                 ? false                                                \
+                 : (((Accum) = (Accum) * 10 + (Digit_val)), true)))     \
   )
 
 static inline void
-- 
2.21.0


--------------CDFB95ED5CCF23E9B247040B
Content-Type: text/x-patch;
 name="0003-basenc-port-to-C99.patch"
Content-Disposition: attachment;
 filename="0003-basenc-port-to-C99.patch"
Content-Transfer-Encoding: quoted-printable

From f344f473fe985b52563864ef3031dfc6a643d6a1 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@HIDDEN>
Date: Sat, 11 May 2019 13:01:37 -0700
Subject: [PATCH 3/4] basenc: port to C99
MIME-Version: 1.0
Content-Type: text/plain; charset=3DUTF-8
Content-Transfer-Encoding: 8bit

* src/basenc.c: Various minor style cleanups.
(struct base_decode_context): Do not use anonymous unions, as
they=E2=80=99re not in C99.  Use a named union instead.  All uses changed=
.
---
 src/basenc.c | 184 ++++++++++++++++++++++++---------------------------
 1 file changed, 88 insertions(+), 96 deletions(-)

diff --git a/src/basenc.c b/src/basenc.c
index 5ec7bf4a5..a167fb917 100644
--- a/src/basenc.c
+++ b/src/basenc.c
@@ -242,12 +242,12 @@ struct base_decode_context
 {
   int i; /* will be updated manually */
   union {
-    struct base64_decode_context b64ctx;
-    struct base32_decode_context b32ctx;
-    struct base16_decode_context b16ctx;
-    struct base2_decode_context  b2ctx;
-    struct z85_decode_context    z85ctx;
-  };
+    struct base64_decode_context base64;
+    struct base32_decode_context base32;
+    struct base16_decode_context base16;
+    struct base2_decode_context base2;
+    struct z85_decode_context z85;
+  } ctx;
   char *inbuf;
   size_t bufsize;
 };
@@ -271,7 +271,7 @@ base64_length_wrapper (int len)
 static void
 base64_decode_ctx_init_wrapper (struct base_decode_context *ctx)
 {
-  base64_decode_ctx_init (&ctx->b64ctx);
+  base64_decode_ctx_init (&ctx->ctx.base64);
 }
=20
 static bool
@@ -279,8 +279,8 @@ base64_decode_ctx_wrapper (struct base_decode_context=
 *ctx,
                            const char *restrict in, size_t inlen,
                            char *restrict out, size_t *outlen)
 {
-  bool b =3D base64_decode_ctx (&ctx->b64ctx, in, inlen, out, outlen);
-  ctx->i =3D ctx->b64ctx.i;
+  bool b =3D base64_decode_ctx (&ctx->ctx.base64, in, inlen, out, outlen=
);
+  ctx->i =3D ctx->ctx.base64.i;
   return b;
 }
=20
@@ -296,8 +296,8 @@ prepare_inbuf (struct base_decode_context *ctx, size_=
t inlen)
 {
   if (ctx->bufsize < inlen)
     {
-      ctx->bufsize =3D inlen*2;
-      ctx->inbuf =3D xnrealloc (ctx->inbuf, ctx->bufsize, sizeof (char) =
);
+      ctx->bufsize =3D inlen * 2;
+      ctx->inbuf =3D xnrealloc (ctx->inbuf, ctx->bufsize, sizeof (char))=
;
     }
 }
=20
@@ -322,14 +322,14 @@ base64url_encode (const char *restrict in, size_t i=
nlen,
 static bool
 isbase64url (char ch)
 {
-  return ( (ch =3D=3D '-') || (ch =3D=3D '_') \
-           || ( (ch !=3D '+') && (ch !=3D '/') && isbase64 (ch) ) );
+  return (ch =3D=3D '-' || ch =3D=3D '_'
+          || (ch !=3D '+' && ch !=3D '/' && isbase64 (ch)));
 }
=20
 static void
 base64url_decode_ctx_init_wrapper (struct base_decode_context *ctx)
 {
-  base64_decode_ctx_init (&ctx->b64ctx);
+  base64_decode_ctx_init (&ctx->ctx.base64);
   init_inbuf (ctx);
 }
=20
@@ -347,7 +347,7 @@ base64url_decode_ctx_wrapper (struct base_decode_cont=
ext *ctx,
   char* p =3D ctx->inbuf;
   while (i--)
     {
-      if (*p =3D=3D '+' || *p =3D=3D'/')
+      if (*p =3D=3D '+' || *p =3D=3D '/')
         {
           *outlen =3D 0;
           return false; /* reject base64 input */
@@ -359,8 +359,9 @@ base64url_decode_ctx_wrapper (struct base_decode_cont=
ext *ctx,
       ++p;
     }
=20
-  bool b =3D base64_decode_ctx (&ctx->b64ctx, ctx->inbuf, inlen, out, ou=
tlen);
-  ctx->i =3D ctx->b64ctx.i;
+  bool b =3D base64_decode_ctx (&ctx->ctx.base64, ctx->inbuf, inlen,
+                              out, outlen);
+  ctx->i =3D ctx->ctx.base64.i;
=20
   return b;
 }
@@ -376,7 +377,7 @@ base32_length_wrapper (int len)
 static void
 base32_decode_ctx_init_wrapper (struct base_decode_context *ctx)
 {
-  base32_decode_ctx_init (&ctx->b32ctx);
+  base32_decode_ctx_init (&ctx->ctx.base32);
 }
=20
 static bool
@@ -384,8 +385,8 @@ base32_decode_ctx_wrapper (struct base_decode_context=
 *ctx,
                            const char *restrict in, size_t inlen,
                            char *restrict out, size_t *outlen)
 {
-  bool b =3D base32_decode_ctx (&ctx->b32ctx, in, inlen, out, outlen);
-  ctx->i =3D ctx->b32ctx.i;
+  bool b =3D base32_decode_ctx (&ctx->ctx.base32, in, inlen, out, outlen=
);
+  ctx->i =3D ctx->ctx.base32.i;
   return b;
 }
=20
@@ -434,7 +435,7 @@ static const char base32_hex_to_norm[32+9] =3D {
 inline static bool
 isbase32hex (char ch)
 {
-  return ( (ch>=3D'0' && ch<=3D'9') || (ch>=3D'A' && ch<=3D'V') );
+  return ('0' <=3D ch && ch <=3D '9') || ('A' <=3D ch && ch <=3D 'V');
 }
=20
=20
@@ -444,12 +445,10 @@ base32hex_encode (const char *restrict in, size_t i=
nlen,
 {
   base32_encode (in, inlen, out, outlen);
=20
-  char* p =3D out;
-  while (outlen--)
+  for (char *p =3D out; outlen--; p++)
     {
-      assert (*p >=3D 0x32 && *p <=3D 0x5a);          /* LCOV_EXCL_LINE =
*/
-      *p =3D base32_norm_to_hex[(int)*p - 0x32];
-      ++p;
+      assert (0x32 <=3D *p && *p <=3D 0x5a);          /* LCOV_EXCL_LINE =
*/
+      *p =3D base32_norm_to_hex[*p - 0x32];
     }
 }
=20
@@ -457,7 +456,7 @@ base32hex_encode (const char *restrict in, size_t inl=
en,
 static void
 base32hex_decode_ctx_init_wrapper (struct base_decode_context *ctx)
 {
-  base32_decode_ctx_init (&ctx->b32ctx);
+  base32_decode_ctx_init (&ctx->ctx.base32);
   init_inbuf (ctx);
 }
=20
@@ -481,8 +480,9 @@ base32hex_decode_ctx_wrapper (struct base_decode_cont=
ext *ctx,
       ++in;
     }
=20
-  bool b =3D base32_decode_ctx (&ctx->b32ctx, ctx->inbuf, inlen, out, ou=
tlen);
-  ctx->i =3D ctx->b32ctx.i;
+  bool b =3D base32_decode_ctx (&ctx->ctx.base32, ctx->inbuf, inlen,
+                              out, outlen);
+  ctx->i =3D ctx->ctx.base32.i;
=20
   return b;
 }
@@ -491,16 +491,16 @@ base32hex_decode_ctx_wrapper (struct base_decode_co=
ntext *ctx,
 static bool
 isbase16 (char ch)
 {
-  return ( (ch>=3D'0' && ch<=3D'9') || (ch>=3D'A' && ch<=3D'F') );
+  return ('0' <=3D ch && ch <=3D '9') || ('A' <=3D ch && ch <=3D 'F');
 }
=20
 static int
 base16_length (int len)
 {
-  return len*2;
+  return len * 2;
 }
=20
-static const char base16[16] =3D { "0123456789ABCDEF" };
+static const char base16[16] =3D "0123456789ABCDEF";
=20
 static void
 base16_encode (const char *restrict in, size_t inlen,
@@ -508,8 +508,9 @@ base16_encode (const char *restrict in, size_t inlen,
 {
   while (inlen--)
     {
-      *out++ =3D base16[ ( ((unsigned char)*in) >> 4) ];
-      *out++ =3D base16[ ( ((unsigned char)*in) & 0x0F ) ];
+      unsigned char c =3D *in;
+      *out++ =3D base16[c >> 4];
+      *out++ =3D base16[c & 0x0F];
       ++in;
     }
 }
@@ -519,7 +520,7 @@ static void
 base16_decode_ctx_init (struct base_decode_context *ctx)
 {
   init_inbuf (ctx);
-  ctx->b16ctx.have_nibble =3D false;
+  ctx->ctx.base16.have_nibble =3D false;
   ctx->i =3D 1;
 }
=20
@@ -538,7 +539,7 @@ base16_decode_ctx (struct base_decode_context *ctx,
      if there is a dangling high nibble - we are missing the low nibble,
      so return false - indicating an invalid input.  */
   if (inlen =3D=3D 0)
-    return !ctx->b16ctx.have_nibble;
+    return !ctx->ctx.base16.have_nibble;
=20
   while (inlen--)
     {
@@ -557,18 +558,18 @@ base16_decode_ctx (struct base_decode_context *ctx,
=20
       ++in;
=20
-      if (ctx->b16ctx.have_nibble)
+      if (ctx->ctx.base16.have_nibble)
         {
           /* have both nibbles, write octet */
-          *out++ =3D (ctx->b16ctx.nibble<<4) + nib;
+          *out++ =3D (ctx->ctx.base16.nibble << 4) + nib;
           ++(*outlen);
         }
       else
         {
           /* Store higher nibble until next one arrives */
-          ctx->b16ctx.nibble =3D nib;
+          ctx->ctx.base16.nibble =3D nib;
         }
-      ctx->b16ctx.have_nibble =3D !ctx->b16ctx.have_nibble;
+      ctx->ctx.base16.have_nibble =3D !ctx->ctx.base16.have_nibble;
     }
   return true;
 }
@@ -590,17 +591,11 @@ isz85 (char ch)
   return c_isalnum (ch) || (strchr (".-:+=3D^!/*?&<>()[]{}@%$#", ch) !=3D=
 NULL);
 }
=20
-static char z85_encoding[85] =3D {
-  "0123456789" \
-  "abcdefghij" \
-  "klmnopqrst" \
-  "uvwxyzABCD" \
-  "EFGHIJKLMN" \
-  "OPQRSTUVWX" \
-  "YZ.-:+=3D^!/" \
-  "*?&<>()[]{" \
-  "}@%$#"
-};
+static char const z85_encoding[85] =3D
+  "0123456789"
+  "abcdefghijklmnopqrstuvwxyz"
+  "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+  ".-:+=3D^!/*?&<>()[]{}@%$#";
=20
 static void
 z85_encode (const char *restrict in, size_t inlen,
@@ -616,7 +611,7 @@ z85_encode (const char *restrict in, size_t inlen,
       if (inlen =3D=3D 0)
         {
           /* no more input, exactly on 4 octet boundary. */
-          if (i =3D=3D0)
+          if (i =3D=3D 0)
             return;
=20
           /* currently, there's no way to return an error in encoding.  =
*/
@@ -625,14 +620,14 @@ z85_encode (const char *restrict in, size_t inlen,
         }
       else
         {
-          quad[i++] =3D (unsigned char)*in++;
+          quad[i++] =3D *in++;
           --inlen;
         }
=20
       /* Got a quad, encode it */
-      if (i=3D=3D4)
+      if (i =3D=3D 4)
         {
-          val =3D (quad[0]<<24) + (quad[1]<<16) + (quad[2]<<8) + quad[3]=
;
+          val =3D (quad[0] << 24) + (quad[1] << 16) + (quad[2] << 8) + q=
uad[3];
=20
           for (int j =3D 4; j>=3D0; --j)
             {
@@ -657,20 +652,20 @@ static void
 z85_decode_ctx_init (struct base_decode_context *ctx)
 {
   init_inbuf (ctx);
-  ctx->z85ctx.i =3D 0;
+  ctx->ctx.z85.i =3D 0;
   ctx->i =3D 1;
 }
=20
=20
 # define Z85_LO_CTX_TO_32BIT_VAL(ctx) \
-  (((ctx)->z85ctx.octets[1] * 85 * 85 * 85) +   \
-   ((ctx)->z85ctx.octets[2] * 85 * 85) +	    \
-   ((ctx)->z85ctx.octets[3] * 85) +		    \
-   ((ctx)->z85ctx.octets[4]))
+  (((ctx)->ctx.z85.octets[1] * 85 * 85 * 85) +      \
+   ((ctx)->ctx.z85.octets[2] * 85 * 85) +	    \
+   ((ctx)->ctx.z85.octets[3] * 85) +		    \
+   ((ctx)->ctx.z85.octets[4]))
=20
=20
 # define Z85_HI_CTX_TO_32BIT_VAL(ctx) \
-  ((ctx)->z85ctx.octets[0] * 85 * 85 * 85 * 85 )
+  ((ctx)->ctx.z85.octets[0] * 85 * 85 * 85 * 85 )
=20
 /*
  0 -  9:  0 1 2 3 4 5 6 7 8 9
@@ -704,7 +699,6 @@ z85_decode_ctx (struct base_decode_context *ctx,
                 char *restrict out, size_t *outlen)
 {
   bool ignore_lines =3D true;  /* for now, always ignore them */
-  unsigned char c;
=20
   *outlen =3D 0;
=20
@@ -713,7 +707,7 @@ z85_decode_ctx (struct base_decode_context *ctx,
      so return false - indicating an invalid input.  */
   if (inlen =3D=3D 0)
     {
-      if (ctx->z85ctx.i > 0)
+      if (ctx->ctx.z85.i > 0)
         {
           /* Z85 variant does not allow padding - input must
              be a multiple of 5 - so return error.  */
@@ -731,7 +725,7 @@ z85_decode_ctx (struct base_decode_context *ctx,
         }
=20
       /* z85 decoding */
-      c =3D (unsigned char)(*in);
+      unsigned char c =3D *in;
=20
       if (c >=3D 33 && c <=3D 125)
         {
@@ -744,8 +738,8 @@ z85_decode_ctx (struct base_decode_context *ctx,
=20
       ++in;
=20
-      ctx->z85ctx.octets[ctx->z85ctx.i++] =3D c;
-      if (ctx->z85ctx.i =3D=3D 5)
+      ctx->ctx.z85.octets[ctx->ctx.z85.i++] =3D c;
+      if (ctx->ctx.z85.i =3D=3D 5)
         {
           /* decode the lowest 4 octets, then check for overflows.  */
           unsigned int val =3D Z85_LO_CTX_TO_32BIT_VAL (ctx);
@@ -761,25 +755,25 @@ z85_decode_ctx (struct base_decode_context *ctx,
              '%' (decoded to 82) in the highest octet can fit in unsigne=
d int
              if the other 4 octets decode to a small enough value.
           */
-          if ((ctx->z85ctx.octets[0] =3D=3D 84 || ctx->z85ctx.octets[0] =
=3D=3D 83) \
-              || (ctx->z85ctx.octets[0] =3D=3D 82 \
-                  && (val > 0xFFFFFFFF - 82*85*85*85*85U)))
+          if (ctx->ctx.z85.octets[0] =3D=3D 84 || ctx->ctx.z85.octets[0]=
 =3D=3D 83
+              || (ctx->ctx.z85.octets[0] =3D=3D 82
+                  && val > 0xFFFFFFFF - 82*85*85*85*85U))
             return false;
=20
           /* no overflow, add the high octet value */
           val +=3D Z85_HI_CTX_TO_32BIT_VAL (ctx);
=20
-          *out++ =3D (val>>24)&0xFF;
-          *out++ =3D (val>>16)&0xFF;
-          *out++ =3D (val>>8)&0xFF;
-          *out++ =3D (val)&0xFF;
+          *out++ =3D (val >> 24) & 0xFF;
+          *out++ =3D (val >> 16) & 0xFF;
+          *out++ =3D (val >> 8) & 0xFF;
+          *out++ =3D val & 0xFF;
=20
           *outlen +=3D 4;
=20
-          ctx->z85ctx.i =3D 0;
+          ctx->ctx.z85.i =3D 0;
         }
     }
-  ctx->i =3D ctx->z85ctx.i;
+  ctx->i =3D ctx->ctx.z85.i;
   return true;
 }
=20
@@ -787,13 +781,13 @@ z85_decode_ctx (struct base_decode_context *ctx,
 inline static bool
 isbase2 (char ch)
 {
-  return (ch=3D=3D'0' || ch=3D=3D'1');
+  return ch =3D=3D '0' || ch =3D=3D '1';
 }
=20
 static int
 base2_length (int len)
 {
-  return len*8;
+  return len * 8;
 }
=20
=20
@@ -801,13 +795,12 @@ inline static void
 base2msbf_encode (const char *restrict in, size_t inlen,
                   char *restrict out, size_t outlen)
 {
-  unsigned char c;
   while (inlen--)
     {
-      c =3D (unsigned char)*in;
-      for (int i=3D0;i<8;++i)
+      unsigned char c =3D *in;
+      for (int i =3D 0; i < 8; i++)
         {
-          *out++ =3D (c & 0x80)?'1':'0';
+          *out++ =3D c & 0x80 ? '1' : '0';
           c <<=3D 1;
         }
       outlen -=3D 8;
@@ -819,13 +812,12 @@ inline static void
 base2lsbf_encode (const char *restrict in, size_t inlen,
                   char *restrict out, size_t outlen)
 {
-  unsigned char c;
   while (inlen--)
     {
-      c =3D (unsigned char)*in;
-      for (int i=3D0;i<8;++i)
+      unsigned char c =3D *in;
+      for (int i =3D 0; i < 8; i++)
         {
-          *out++ =3D (c & 0x01)?'1':'0';
+          *out++ =3D c & 0x01 ? '1' : '0';
           c >>=3D 1;
         }
       outlen -=3D 8;
@@ -838,7 +830,7 @@ static void
 base2_decode_ctx_init (struct base_decode_context *ctx)
 {
   init_inbuf (ctx);
-  ctx->b2ctx.octet =3D 0;
+  ctx->ctx.base2.octet =3D 0;
   ctx->i =3D 0;
 }
=20
@@ -856,7 +848,7 @@ base2lsbf_decode_ctx (struct base_decode_context *ctx=
,
      if there is a dangling bit - we are missing some bits,
      so return false - indicating an invalid input.  */
   if (inlen =3D=3D 0)
-    return ctx->i=3D=3D0;
+    return ctx->i =3D=3D 0;
=20
   while (inlen--)
     {
@@ -870,13 +862,13 @@ base2lsbf_decode_ctx (struct base_decode_context *c=
tx,
         return false;
=20
       bool bit =3D (*in =3D=3D '1');
-      ctx->b2ctx.octet |=3D bit << ctx->i;
+      ctx->ctx.base2.octet |=3D bit << ctx->i;
       ++ctx->i;
=20
-      if (ctx->i=3D=3D8)
+      if (ctx->i =3D=3D 8)
         {
-          *out++ =3D ctx->b2ctx.octet ;
-          ctx->b2ctx.octet =3D 0;
+          *out++ =3D ctx->ctx.base2.octet;
+          ctx->ctx.base2.octet =3D 0;
           ++*outlen;
           ctx->i =3D 0;
         }
@@ -900,7 +892,7 @@ base2msbf_decode_ctx (struct base_decode_context *ctx=
,
      if there is a dangling bit - we are missing some bits,
      so return false - indicating an invalid input.  */
   if (inlen =3D=3D 0)
-    return ctx->i=3D=3D0;
+    return ctx->i =3D=3D 0;
=20
   while (inlen--)
     {
@@ -917,12 +909,12 @@ base2msbf_decode_ctx (struct base_decode_context *c=
tx,
       if (ctx->i =3D=3D 0)
         ctx->i =3D 8;
       --ctx->i;
-      ctx->b2ctx.octet |=3D bit << ctx->i;
+      ctx->ctx.base2.octet |=3D bit << ctx->i;
=20
-      if (ctx->i=3D=3D0)
+      if (ctx->i =3D=3D 0)
         {
-          *out++ =3D ctx->b2ctx.octet ;
-          ctx->b2ctx.octet =3D 0;
+          *out++ =3D ctx->ctx.base2.octet;
+          ctx->ctx.base2.octet =3D 0;
           ++*outlen;
           ctx->i =3D 0;
         }
--=20
2.21.0


--------------CDFB95ED5CCF23E9B247040B
Content-Type: text/x-patch;
 name="0004-cp-port-fiemap.h-to-C99.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0004-cp-port-fiemap.h-to-C99.patch"

From 785f742280e157d9811e1800c84cfc6d3633c470 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@HIDDEN>
Date: Sat, 11 May 2019 13:09:39 -0700
Subject: [PATCH 4/4] cp: port fiemap.h to C99

* src/extent-scan.c (extent_scan_read): Adjust to change in
struct fiemap.
* src/fiemap.h (struct fiemap): Use FLEXIBLE_ARRAY_MEMBER
to port to C99.
---
 src/extent-scan.c | 3 ++-
 src/fiemap.h      | 9 ++-------
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/extent-scan.c b/src/extent-scan.c
index 2c9db4405..ae0d3914b 100644
--- a/src/extent-scan.c
+++ b/src/extent-scan.c
@@ -94,7 +94,8 @@ extent_scan_read (struct extent_scan *scan)
       union { struct fiemap f; char c[4096]; } fiemap_buf;
       struct fiemap *fiemap = &fiemap_buf.f;
       struct fiemap_extent *fm_extents = &fiemap->fm_extents[0];
-      enum { count = (sizeof fiemap_buf - sizeof *fiemap)/sizeof *fm_extents };
+      enum { headersize = offsetof (struct fiemap, fm_extents) };
+      enum { count = (sizeof fiemap_buf - headersize) / sizeof *fm_extents };
       verify (count > 1);
 
       /* This is required at least to initialize fiemap->fm_start,
diff --git a/src/fiemap.h b/src/fiemap.h
index 88a9fa614..bf5337381 100644
--- a/src/fiemap.h
+++ b/src/fiemap.h
@@ -51,13 +51,8 @@ struct fiemap
 
   uint32_t fm_reserved;
 
-  /* Array of mapped extents(out).
-     This is protected by the ifdef because it uses non standard
-     zero length arrays.  Note C99 has the equivalent flexible arrays,
-     but we don't use those for maximum portability to older systems.  */
-# ifdef __linux__
-  struct fiemap_extent fm_extents[0];
-# endif
+  /* Array of mapped extents(out).  */
+  struct fiemap_extent fm_extents[FLEXIBLE_ARRAY_MEMBER];
 };
 
 /* The maximum offset can be mapped for a file.  */
-- 
2.21.0


--------------CDFB95ED5CCF23E9B247040B--




Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at 35650 <at> debbugs.gnu.org:


Received: (at 35650) by debbugs.gnu.org; 10 May 2019 09:50:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 05:50:06 2019
Received: from localhost ([127.0.0.1]:37183 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hP2AG-0002q7-7g
	for submit <at> debbugs.gnu.org; Fri, 10 May 2019 05:50:04 -0400
Received: from mail.magicbluesmoke.com ([82.195.144.49]:45108)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <P@HIDDEN>) id 1hP2AC-0002pO-ID
 for 35650 <at> debbugs.gnu.org; Fri, 10 May 2019 05:50:03 -0400
Received: from localhost.localdomain (unknown [109.78.242.23])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by mail.magicbluesmoke.com (Postfix) with ESMTPSA id 337E9AC20;
 Fri, 10 May 2019 10:49:59 +0100 (IST)
Subject: Re: bug#35650: [PATCH] Improving HP-UX support
To: "Osipov, Michael" <michael.osipov@HIDDEN>, 35650 <at> debbugs.gnu.org
References: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
From: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>
Message-ID: <b575ac04-7b69-3a51-6e0e-684ee2492977@HIDDEN>
Date: Fri, 10 May 2019 02:49:58 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 35650
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 09/05/19 03:50, Osipov, Michael wrote:
> Hi folks,
> 
> please find a patch attached to properly compile and link GNU coreutils 
> 8.31 on HP-UX IA64. As of now, it does not compile out of the box.
> 
> The patch includes these changes:
> 
> * basenc.c: HP aCC does not allow anonymous unions inside structs, I 
> have named it otherwise the compilation fails
> * blake2/blake2.h: __attribute__((packed)) does not exist in HP aCC, use 
> #pragma pack
> * copy.c, mkfifo.c: disable SELinux code if it is not available
> * system.h: use __attribute(x) on a GNU-style compiler only
> * configure.ac, local.mk: use HP aCC-style linker options for libstdbuf
> 
> Compile instructions:
>> export PREFIX=/opt/ports/coreutils
>> export LIBDIR=$PREFIX/lib/hpux32
>> export CONFIGURE="./configure --prefix=$PREFIX --libdir=$LIBDIR"
>> export CPPFLAGS="-I$PREFIX/include -D_INCLUDE_STDC__SOURCE_199901"
>> export LDFLAGS="-L$LIBDIR"
>> autoreconf -fi
>> FORCE_UNSAFE_CONFIGURE=1 gl_cv_have_include_next=no ac_cv_func_getacl=no ac_cv_func_aclsort=no ac_cv_header_sys_bitypes_h=no $CONFIGURE
>> gmake install
> The patch isn't perfect, some issues need to be discussion because I 
> don't know yet how to solve them:
> * copy.c, mkfifo.c: for some reason the code compiles w/o changes 
> although SELinux is not available

These selinux interfaces are provided by gnulib,
and so should automatically by ignored on HPUX.
I.E. I'm not sure this part is needed at all.

> * I have disabled the compilation of b2sum completely because gmake 
> repeatedly quits with:
>> gmake[2]: *** No rule to make target '/var/tmp/AAA000546.i', needed by 'src/b2sum-md5sum.o'.  Stop.
>> gmake[2]: Leaving directory '/tmp/system-compile/gnu/coreutils-8.31'
>> gmake[1]: *** [Makefile:12647: all-recursive] Error 1
>> gmake[1]: Leaving directory '/tmp/system-compile/gnu/coreutils-8.31'
>> gmake: *** [Makefile:6827: all] Error 2


> diff -ur src/blake2/blake2.h src/blake2/blake2.h
> --- src/blake2/blake2.h	2018-05-14 06:20:24 +0000
> +++ src/blake2/blake2.h	2019-05-08 15:08:42 +0000
> @@ -21,8 +21,12 @@
>  #if defined(_MSC_VER)
>  #define BLAKE2_PACKED(x) __pragma(pack(push, 1)) x __pragma(pack(pop))
>  #else
> +#ifdef __hpux
> +#define BLAKE2_PACKED(x) x
>
> +#else
>  #define BLAKE2_PACKED(x) x __attribute__((packed))
>  #endif
> +#endif
>  
>  #if defined(__cplusplus)
>  extern "C" {
> @@ -86,6 +90,9 @@
>      size_t        outlen;
>    } blake2bp_state;
>  
> +#ifdef __hpux
> +#pragma pack 1
> +#endif
>  
>    BLAKE2_PACKED(struct blake2s_param__
>    {
> @@ -102,9 +109,15 @@
>      uint8_t  salt[BLAKE2S_SALTBYTES]; /* 24 */
>      uint8_t  personal[BLAKE2S_PERSONALBYTES];  /* 32 */
>    });
> +#ifdef __hpux
> +#pragma pack
> +#endif

That's a bit awkward,
also this file comes from blake2 upstream source on github,
so you might want to broach the change there.

> diff -ur src/system.h src/system.h
> --- src/system.h	2019-01-05 11:36:22 +0000
> +++ src/system.h	2019-05-08 15:19:29 +0000
> @@ -422,6 +422,10 @@
>  # endif
>  #endif
>  
> +#ifndef __GNUC__
> +#define __attribute(x) /* empty */
> +#endif

The only use of __attribute is:

src/libstdbuf.c:/* Use __attribute to avoid elision of __attribute__ on SUNPRO_C etc.  */
src/libstdbuf.c:static void __attribute ((constructor))

So we should probably have special __hpux handling in that file
rather than doing the above.

This is all dependent on stdbuf actually working on your platform.
Possibly the most appropriate change would be to use __attribute
rather than __attribute__ in configure.ac

>  #ifndef ATTRIBUTE_NORETURN
>  # define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
>  #endif
> --- configure.ac	2019-03-04 08:40:55 +0000
> +++ configure.ac	2019-05-08 15:40:41 +0000
> @@ -481,8 +481,8 @@
>  gl_WARN_ADD([-errwarn], [CFLAGS])
>  # Put this message here, after gl_WARN_ADD's chatter.
>  AC_MSG_CHECKING([whether this system supports stdbuf])
> -CFLAGS="-fPIC $CFLAGS"
> -LDFLAGS="-shared $LDFLAGS"
> +CFLAGS="+z $CFLAGS"
> +LDFLAGS="-b $LDFLAGS"

This would need to be conditional,
again if stdbuf does actually work on hpux.

thanks,
Pádraig





Information forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 May 2019 14:33:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 09 10:33:53 2019
Received: from localhost ([127.0.0.1]:36026 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hOk7K-0004Hz-Qn
	for submit <at> debbugs.gnu.org; Thu, 09 May 2019 10:33:53 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33065)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.osipov@HIDDEN>) id 1hOgdJ-00075F-20
 for submit <at> debbugs.gnu.org; Thu, 09 May 2019 06:50:39 -0400
Received: from lists.gnu.org ([209.51.188.17]:44793)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <michael.osipov@HIDDEN>)
 id 1hOgdD-0006BS-RK
 for submit <at> debbugs.gnu.org; Thu, 09 May 2019 06:50:31 -0400
Received: from eggs.gnu.org ([209.51.188.92]:47439)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <michael.osipov@HIDDEN>) id 1hOgdB-0001Ff-Ln
 for bug-coreutils@HIDDEN; Thu, 09 May 2019 06:50:31 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_HI,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael.osipov@HIDDEN>) id 1hOgd5-00063m-SD
 for bug-coreutils@HIDDEN; Thu, 09 May 2019 06:50:27 -0400
Received: from david.siemens.de ([192.35.17.14]:53379)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <michael.osipov@HIDDEN>)
 id 1hOgd5-0005uz-HU
 for bug-coreutils@HIDDEN; Thu, 09 May 2019 06:50:23 -0400
Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14])
 by david.siemens.de (8.15.2/8.15.2) with ESMTPS id x49AoJZT018927
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK)
 for <bug-coreutils@HIDDEN>; Thu, 9 May 2019 12:50:19 +0200
Received: from [147.54.65.49] (MD11GXTC.ad001.siemens.net [147.54.65.49])
 by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id x49AoH41013072
 for <bug-coreutils@HIDDEN>; Thu, 9 May 2019 12:50:17 +0200
From: "Osipov, Michael" <michael.osipov@HIDDEN>
Subject: [PATCH] Improving HP-UX support
To: bug-coreutils@HIDDEN
Message-ID: <9f26b1e7-e075-1fa7-f004-f89d8cf41c21@HIDDEN>
Date: Thu, 9 May 2019 12:50:16 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
 Thunderbird/60.6.1
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------CF13B4556E5C6122759E6339"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 192.35.17.14
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 09 May 2019 10:33:48 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

This is a multi-part message in MIME format.
--------------CF13B4556E5C6122759E6339
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi folks,

please find a patch attached to properly compile and link GNU coreutils 
8.31 on HP-UX IA64. As of now, it does not compile out of the box.

The patch includes these changes:

* basenc.c: HP aCC does not allow anonymous unions inside structs, I 
have named it otherwise the compilation fails
* blake2/blake2.h: __attribute__((packed)) does not exist in HP aCC, use 
#pragma pack
* copy.c, mkfifo.c: disable SELinux code if it is not available
* system.h: use __attribute(x) on a GNU-style compiler only
* configure.ac, local.mk: use HP aCC-style linker options for libstdbuf

Compile instructions:
> export PREFIX=/opt/ports/coreutils
> export LIBDIR=$PREFIX/lib/hpux32
> export CONFIGURE="./configure --prefix=$PREFIX --libdir=$LIBDIR"
> export CPPFLAGS="-I$PREFIX/include -D_INCLUDE_STDC__SOURCE_199901"
> export LDFLAGS="-L$LIBDIR"
> autoreconf -fi
> FORCE_UNSAFE_CONFIGURE=1 gl_cv_have_include_next=no ac_cv_func_getacl=no ac_cv_func_aclsort=no ac_cv_header_sys_bitypes_h=no $CONFIGURE
> gmake install

The patch isn't perfect, some issues need to be discussion because I 
don't know yet how to solve them:
* copy.c, mkfifo.c: for some reason the code compiles w/o changes 
although SELinux is not available
* I have disabled the compilation of b2sum completely because gmake 
repeatedly quits with:
> gmake[2]: *** No rule to make target '/var/tmp/AAA000546.i', needed by 'src/b2sum-md5sum.o'.  Stop.
> gmake[2]: Leaving directory '/tmp/system-compile/gnu/coreutils-8.31'
> gmake[1]: *** [Makefile:12647: all-recursive] Error 1
> gmake[1]: Leaving directory '/tmp/system-compile/gnu/coreutils-8.31'
> gmake: *** [Makefile:6827: all] Error 2
* The configuration of PIC and shared library is for HP-UX now. At best 
autotools would determine that with some default m4 file.

Note: I am not subscribed to this list.

Regards,

Michael


--------------CF13B4556E5C6122759E6339
Content-Type: text/plain; charset=UTF-8;
 name="coreutils.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="coreutils.patch"

ZGlmZiAtdXIgc3JjL2Jhc2VuYy5jIHNyYy9iYXNlbmMuYwotLS0gc3JjL2Jhc2VuYy5jCTIw
MTktMDItMTEgMDI6NTE6NDcgKzAwMDAKKysrIHNyYy9iYXNlbmMuYwkyMDE5LTA1LTA4IDE1
OjA4OjUwICswMDAwCkBAIC0yNDcsNyArMjQ3LDcgQEAKICAgICBzdHJ1Y3QgYmFzZTE2X2Rl
Y29kZV9jb250ZXh0IGIxNmN0eDsKICAgICBzdHJ1Y3QgYmFzZTJfZGVjb2RlX2NvbnRleHQg
IGIyY3R4OwogICAgIHN0cnVjdCB6ODVfZGVjb2RlX2NvbnRleHQgICAgejg1Y3R4OwotICB9
OworICB9IGJkY29udGV4dDsKICAgY2hhciAqaW5idWY7CiAgIHNpemVfdCBidWZzaXplOwog
fTsKQEAgLTI3MSw3ICsyNzEsNyBAQAogc3RhdGljIHZvaWQKIGJhc2U2NF9kZWNvZGVfY3R4
X2luaXRfd3Jh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iB0aGVyZSBpcyBhIGRhbmdsaW5n
IGhpZ2ggbmliYmxlIC0gd2UgYXJlIG1pc3NpbmcgdGhlIGxvdyBuaWJibGUsCiAgICAgIHNv
IHJldHVybiBmYWxzZSAtIGluZGljYXRpbmcgYW4gaW52YWxpZCBpbnB1dC4gICovCiAgIGlm
IChpbmxlbiA9PSAwKQotICAgIHJldHVybiAhY3R4LT5iMTZjdHguaGF2ZV9uaWJibGU7Cisg
ICAgcmV0dXJuICFjdHgtPmJkY29udGV4dC5iMTZjdHguaGF2ZV9uaWJibGU7CiAKICAgd2hp
bGUgKGlubGVuLS0pCiAgICAgewpAQCAtNTU3LDE4ICs1NTcsMTggQEAKIAogICAgICAgKytp
bjsKIAotICAgICAgaWYgKGN0eC0+YjE2Y3R4LmhhdmVfbmliYmxlKQorICAgICAgaWYgKGN0
eC0+YmRjb250ZXh0LmIxNmN0eC5oYXZlX25pYmJsZSkKICAgICAgICAgewogICAgICAgICAg
IC8qIGhhdmUgYm90aCBuaWJibGVzLCB3cml0ZSBvY3RldCAqLwotICAgICAgICAgICpvdXQr
KyA9IChjdHgtPmIxNmN0eC5uaWJibGU8PDQpICsgbmliOworICAgICAgICAgICpvdXQrKyA9
IChjdHgtPmJkY29udGV4dC5iMTZjdHgubmliYmxlPDw0KSArIG5pYjsKICAgICAgICAgICAr
Kygqb3V0bGVuKTsKICAgICAgICAgfQogICAgICAgZWxzZQogICAgICAgICB7CiAgICAgICAg
ICAgLyogU3RvcmUgaGlnaGVyIG5pYmJsZSB1bnRpbCBuZXh0IG9uZSBhcnJpdmVzICovCi0g
ICAgICAgICAgY3R4LT5iMTZjdHgubmliYmxlID0gbmliOworICAgICAgICAgIGN0eC0+YmRj
b250ZXh0LmIxNmN0eC5uaWJibGUgPSBuaWI7CiAgICAgICAgIH0KLSAgICAgIGN0eC0+YjE2
Y3R4LmhhdmVfbmliYmxlID0gIWN0eC0+YjE2Y3R4LmhhdmVfbmliYmxlOworICAgICAgY3R4
LT5iZGNvb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R4LT5iZGNvbnRl
eHQuYjJjdHgub2N0ZXQgPSAwOwogICBjdHgtPmkgPSAwOwogfQogCkBAIC04NzAsMTMgKzg3
MCwxMyBAQAogICAgICAgICByZXR1cm4gZmFsc2U7CiAKICAgICAgIGJvb2wgYml0ID0gKCpp
biA9PSAnMScpOwotICAgICAgY3R4LT5iMmN0eC5vY3RldCB8PSBiaXQgPDwgY3R4LT5pOwor
ICAgICAgY3R4LT5iZGNvbnRleHQuYjJjdHgub2N0ZXQgfD0gYml0IDw8IGN0eC0+aTsKICAg
ICAgICsrY3R4LT5pOwogCiAgICAgICBpZiAoY3R4LT5pPT04KQogICAgICAgICB7Ci0gICAg
ICAgICAgKm91dCsrID0gY3R4LT5iMmN0eC5vY3RldCA7Ci0gICAgICAgICAgY3R4LT5iMmN0
eC5vY3RldCA9IDA7CisgICAgICAgICAgKm91dCsrID0gY3R4LT5iZGNvbnRleHQuYjJjdHgu
b2N0ZXQgOworICAgICAgICAgIGN0eC0+YmRjb250ZXh0LmIyY3R4Lm9jdGV0ID0gMDsKICAg
ICAgICAgICArKypvdXRsZW47CiAgICAgICAgICAgY3R4LT5pID0gMDsKICAgICAgICAgfQpA
QCAtOTE3LDEyICs5MTcsMTIgQEAKICAgICAgIGlmIChjdHgtPmkgPT0gMCkKICAgICAgICAg
Y3R4LT5pID0gODsKICAgICAgIC0tY3R4LT5pOwotICAgICAgY3R4LT5iMmN0eC5vY3RldCB8
PSBiaXQgPDwgY3R4LT5pOworICAgICAgY3R4LT5iZGNvbnRleHQuYjJjdHgub2N0ZXQgfD0g
Yml0IDw8IGN0eC0+aTsKIAogICAgICAgaWYgKGN0eC0+aT09MCkKICAgICAgICAgewotICAg
ICAgICAgICpvdXQrKyA9IGN0eC0+YjJjdHgub2N0ZXQgOwotICAgICAgICAgIGN0eC0+YjJj
dHgub2N0ZXQgPSAwOworICAgICAgICAgICpvdXQrKyA9IGN0eC0+YmRjb250ZXh0LmIyY3R4
Lm9jdGV0IDsKKyAgICAg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5jCg==
--------------CF13B4556E5C6122759E6339--




Acknowledgement sent to "Osipov, Michael" <michael.osipov@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#35650; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.