X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A2BB386EC79
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1591121690;
	bh=QGSCc4SHsSxqPwTx6+3W3S3JqTUL118226Ai0vAtCPw=;
	h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=HFvD6PncFZKWj9VFcy3Ut2y/mnu7Oc7M/z+vvdNhKa4Zrp14/dlidYpLmgQVDQY1b
	 BRkowVy18Qr9ra9Wms4k+7rEegagAuFil6ckdUu7Pqb1KolkChDIDhXAIX+Wo3H1Hf
	 ZuqXb1u5FcGox3ibTivsCasELKO+fi2w06W+hNzg=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 90C94385DC00
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=TiEYnFxfcc+b8hiRkihn4HRuG5ixHmR6MLD10Bgrlu1LHe37uMsoTfJCMqFRKfan76OuhjLIUVj8mqxysv6DFJ4ozz53KKs1iJR0kI4SZzJ9Dy3jmsmRUQsyr6UwFeVMKFO7VKRv8s6QtnORdqmteRRMNvYUYogexSLvwTsscj9ZawSbdbvLzN/tK4OrX4hOJzJ6eAxEa8KDDJ3qlCrMvKXCuXsbmgxg2AbAg6vOh18dPp9io7ChujyEwuCr4hgeiPKyTrogDeEpP9MYpxfawOJp4oI5CH2GkArxM3oyBFYq6g2oDG0e8HFPXx9BQEUUVZaCN+qRMgPgcLROq1s8Zw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=YiwA7IbFkFFYFFuVrgEkVs+UqAR71KmGUVHhez9jaQA=;
 b=RA0HEsyp7K0epWgM8xjOmIQM/ZN98uf5B0tCZkLH7xGCOaO7n/zDM/LVfPPuMDgi5TmwFukr32Yf72/Xn/7UhlY7tcyllEIwCjq/x3ScMZ7BeVVKLOvJTdmQje7NGwVWaPiaJlIzlOID+OzqY0hojRVcEeCJtobd8liLLQcV61dcoYj4YxG9D2RQnp8eta6DS7cpbr32DS+3M94Yod/DlW4siMePLD28lqoVS10kqZLGUqmSAgmOpazgnLXbbr1P/rAN3J7mcCz7not7vn0D1BAITtUB1TOtPjOoGg6AyuJvUVj0f5//cVHgyj89lgiEjyWo59/S/lHYj8QD26bFIQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu;
 dkim=pass header.d=cornell.edu; arc=none
Subject: Re: ghostscript issues
To: cygwin@cygwin.com
References: <1604953430.859583.1591025163209@mail.yahoo.com>
 <54b353b1-3d7f-a3fb-532f-06e761ddaa0b@cornell.edu>
 <20200602205814.76F7.50F79699@gmail.com>
 <e6e3062e-8604-a3e1-1a7a-9b5f7c1b789c@cornell.edu>
Message-ID: <cd6766eb-23c3-e2ee-4b43-1ac44cbb2004@cornell.edu>
Date: Tue, 2 Jun 2020 14:14:42 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
 Thunderbird/68.8.1
In-Reply-To: <e6e3062e-8604-a3e1-1a7a-9b5f7c1b789c@cornell.edu>
Content-Language: en-US
X-ClientProxiedBy: BL1PR13CA0023.namprd13.prod.outlook.com
 (2603:10b6:208:256::28) To MN2PR04MB6176.namprd04.prod.outlook.com
 (2603:10b6:208:e3::13)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from [192.168.0.17] (68.175.129.7) by
 BL1PR13CA0023.namprd13.prod.outlook.com (2603:10b6:208:256::28) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.7 via Frontend
 Transport; Tue, 2 Jun 2020 18:14:45 +0000
X-Originating-IP: [68.175.129.7]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: d8b96bb8-61f1-4a59-ccbf-08d80720d422
X-MS-TrafficTypeDiagnostic: MN2PR04MB5808:
X-Microsoft-Antispam-PRVS: <MN2PR04MB5808635FE3A9F8BE99E6B7ABD88B0@MN2PR04MB5808.namprd04.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:632;
X-Forefront-PRVS: 0422860ED4
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: bRAMUfGhwR0q6khxff+DNzGoRip6mn8Ergc0GE3IwSvWsS3bTgBRLtpVNlLqe2x5w8gSP7qpYluLfB7ck9rHlGiI4zBbKvm6YQOoohQSAtYUfJFmVMNmrAg9nKDOcbUGu9iAr4Fo15HADsgvxbgp6u2E/ZyEcV1pUuHtqyUPxd/btiMPpQ+hJE/9eorRzQ7jQ6CZV1kwTL1zzkQHWYt1DBWX5QkMpA6WTh7no4SRzDUiqW/lXDEKZ5A8GKofXIKVkjoQ9F+vGBLrCFMWP2Xu22rP3OfF3cXhGTRIpV3jOGAeBI0RKT3fdg/zktYqAj71RxD5wUfBEpEsMb5TzDyW65ZqLFWoyqjB4ai9pvNQoXrlatP9qrt39Tw+WZe2u0jSPL+5LGwhIDPXOkevB0arAtULHs0rJIOHcajlD19frIWuL0Jo8sagi7y5RFZRIiyKjiTnM/ZfBFp0OCvqGQJfkw==
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:MN2PR04MB6176.namprd04.prod.outlook.com; PTR:; CAT:NONE;
 SFTY:;
 SFS:(4636009)(136003)(39860400002)(366004)(346002)(376002)(396003)(316002)(3480700007)(66556008)(6666004)(786003)(2906002)(83380400001)(66946007)(186003)(6916009)(16526019)(966005)(53546011)(2616005)(66476007)(16576012)(26005)(478600001)(52116002)(7116003)(75432002)(5660300002)(6486002)(86362001)(31686004)(8936002)(8676002)(31696002)(956004)(36756003)(43740500002);
 DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData: dymEQfj3nFle2Ipcv3Kqdqa6jn9a1gWAVZ9kejWy+U4WSjOkTjt3sCofB/ShgZbW3V/NAYBDZRv9oNEeuugWP6CJphea8F6yFRtHYBTv/WK9V92wG434ILNQtu9TkvNiD4F0pttZqkqK6OKx2hL9smUryg2ZuTFJOkOjXsgi8t8ukefBbYKkKa24s+JGdm8WjMhCXxOBTpuQBvtieKbGle4o+iKwR9cnRMJ2zRjJshWBl3FbJ+Qiv3j576wQr18IZDGC37MVb0gACQkgwZkxx+Qs494B8DYIsqll3bPYIrRx77QWfZ6VqrkZh/cZk/LJt3Z4reozOslE5Qsf5CcquifyXRLU02ilXdQq3f/BadKfo36UqivqFDE93zObLDMjKb003eu/B9jZIhZwU2K1nsvEIQ8u3byMNHMhUZVAQvdqS0RzY5n53XEAU0vOqyJtScWMHekKND7/8yARrJtGZsToLSJ4WCV20mga6pF8CPE=
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: d8b96bb8-61f1-4a59-ccbf-08d80720d422
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2020 18:14:45.5571 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: D78uVSC2/Dqzab9YtlzW+SrQ04zv5RrYbb5PkhFigsNtwpnc9fz3oHWx5i2G5dor23IK24qmMEUWmmn+dtayGQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5808
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, BODY_8BITS,
 DKIM_INVALID, DKIM_SIGNED, KAM_DMARC_STATUS, MSGID_FROM_MTA_HEADER,
 RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS,
 TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Ken Brown via Cygwin <cygwin@cygwin.com>
Reply-To: Ken Brown <kbrown@cornell.edu>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 052IFFMA010482

On 6/2/2020 8:12 AM, Ken Brown via Cygwin wrote:
> On 6/2/2020 7:58 AM, Lemures Lemniscati via Cygwin wrote:
>> Date: Mon, 1 Jun 2020 12:43:44 -0400
>> From: Ken Brown via Cygwin
>>
>>> On 6/1/2020 11:26 AM, Thomas Bodine via Cygwin wrote:
>>>> My favorite use of ghost script is to combine PDF's. I upgraded Cygwin this 
>>>> weekend, and ghost script fails to perform this task
>>>>
>>>> I am running this:
>>>> Cygwin Setup version 2.904 (64 bit)
>>>> base-cygwin 3.8-1
>>>> ghostscript 9.52-1
>>>> ghostscript-fonts-other 6.0-1
>>>> Windows 10 Pro version 1909 build 18363.836
>>>>
>>>> When I run the script:
>>>>    $ gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite  -sOutputFile=combine.pdf  
>>>> able.pdf baker.pdf charly.pdf
>>>>>
>>>> GPL Ghostscript 9.52 (2020-03-19)
>>>> Copyright (C) 2020 Artifex Software, Inc.  All rights reserved.
>>>> This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
>>>> see the file COPYING for details.
>>>> Processing pages 1 through 1.
>>>> Page 1
>>>> Error: /rangecheck in --restore--
>>>> Operand stack:
>>>>      --dict:8/16(L)--   --dict:38/38(ro)(L)--
>>>> Execution stack:
>>>>      %interp_exit   .runexec2   --nostringval--   restore   --nostringval--   2
>>>> %stopped_push   --nostringval--   restore   restore   false   1   %stopped_push
>>>>     1990   1   3   %oparray_pop   1989   1   3   %oparray_pop   1977   1   
>>>> 3   %op
>>>> array_pop   1978   1   3   %oparray_pop   restore   restore   2   1   1   
>>>> restor
>>>> e   %for_pos_int_continue   1981   1   7   %oparray_pop   restore   
>>>> restore   18
>>>> 94   2   9   %oparray_pop
>>>> Dictionary stack:
>>>>      --dict:737/1123(ro)(G)--   --dict:1/20(G)--   --dict:80/200(L)--   
>>>> --dict:80/
>>>> 200(L)--   --dict:135/256(ro)(G)--   --dict:318/325(ro)(G)--   
>>>> --dict:33/64(L)--
>>>>      --dict:6/9(L)--   --dict:6/20(L)--
>>>> Current allocation mode is local
>>>> GPL Ghostscript 9.52: Unrecoverable error, exit code 1
>>>
>>> I can confirm this.  As a workaround, downgrade ghostscript and libgs9 to the 
>>> previous version, 9.50-1, while I investigate.
>>>
>>> Thanks for the report.
>>>
>>> Ken
>>
>> Hi!
>>
>> The first bad commit causing the issue seems to be 327dc89:
>>
>> http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=327dc8943c0aac1c7be7a1fb6e93346b61cd0900 
>>
> 
> Thanks!  I think the problem is here:
> 
> @@ -234,18 +242,14 @@ CONTRIBINCLUDE="include $srcdir/contrib/contrib.mak"
>   INSTALL_CONTRIB="install-contrib-extras"
> 
>   if test x"$enable_contrib" = x; then
> -  if test x"$cross_compiling" = x"yes"; then
> -    enable_contrib=
> -  else
> -    case `uname` in
> -      MINGW*|MSYS*)
> +    case $host in
> +      *-mingw*|*-msys*|*-cygwin*)
>           AC_MSG_WARN([disabling contrib devices])
>           enable_contrib=no
>         ;;
>         *)
>         ;;
>       esac
> -  fi
>   fi
> 
>   if test x"$enable_contrib" != x"no"; then
> 
> Do you want to send the obvious fix upstream or should I do it?

Let's hold off on this.  Just making this one change doesn't solve the problem. 
I've found several other commits that have mistakenly lumped cygwin with mingw 
and msys.  I'm still working on it.

Ken
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

