www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/04/17/13:09:01

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53HH91lT2725423
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 53HH91lT2725423
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=vaNcPQeu
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0171C385735B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1744909740;
bh=hiZSVmF0VpPhXjeHc1Bsaq8TAEdoCsaEiwz7rQztCqE=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=vaNcPQeuGwTxyhfYiJsHtn8BIXQxquSqXG4LyhhoEIGZOsBYJRJXxeYIGfZzeFzhH
s3jmfM/2tC05XgNfu9AWvr0pGcNVeVMxsQiYBwT2TTxS76RtvCcV32/txrrknV/LBM
V8J62/P9bL2efiewWG50VPcvvsPgKucDhrZSqX7A=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E43EA385770D
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E43EA385770D
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744909671; cv=none;
b=R2g3NFqsY492CzBV0q6hK67GpBLNYZQAHoczzjNOBE86svr7H4W2JRwyOQTArJQqATVWys0hOX0ZrkMKrN8UdJF5vMuRIi5p4gGf4e2i1az+FjZZc4rmM95pW9VY03iMXvnuMouqWm/X6w1GSugR43J1sy9OXyP3+fbD2heLoXQ=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1744909671; c=relaxed/simple;
bh=bb0NGgUPe2vEgzPP3qD55/dMMSyyBCSLrHWinS9yxos=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=xgepQm7NrdrCjmneBsC3IGBqmYfNipl9ZTNgT8kNMBbekFeV9sE1CQkcus3iH9NysB9WAITpIO0a4w5MNKNcM7Jc0PrapkcaFQoeUZBtKfcZWYR080Jf2QFCK3XBNu4+WHPPPoJA6hD15mZHhUgAAuf644O77CTvc6CbfA/NL0M=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E43EA385770D
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1744909669; x=1745514469;
h=to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=zDrNCWjq2Qxsh27cIsxvrDQGMUCDMj4k1Rk2X5uIcm0=;
b=bee0aJ8UxR1Yo9btmh+7hvuwncVY1q2sGULF9/kY8axpcIOPQnhOkAlsIuK2wZmx7r
jA9A1DZn68B1Xoi1uxwmsR0L9bWgeAfx2TW7YFMes0Ti8NPbCTtt7/O6gismI/v3RM0T
QOeBFCwcO5637BYgFl4/jestd2cskz3z40AxTtqysqBZSWPif7NEgMaJ4960oK1n6jp1
bMQT41UW5F7AjxU+Ah6PZI0hHiaUvakJTNn1Bjo7dX+d46iyv5X4jZZ/uzl1qaN2X5TE
hsj90fMX3/PHL6TKUQkRuNujN6hkasajS5jnxE1g6H7xvxlbe2tvq9IPKJ61egO5FNUA
KkcA==
X-Gm-Message-State: AOJu0YwZDzLCpFbgDjt1IaF94KXHjEi8FeXoPrzz9RDj8RM8hy6fbuhK
iKlzwqlctOeK83v1JMDQdn6Ng2guosvihIg/5JataWeaaJlt78SNJxwpDgUIodDLwC3XR2//SWl
k4Hrd2MZl9KZYF4HxBsIV5IUymut0YK0u
X-Gm-Gg: ASbGncuixxD6rEohNzHERANN0dBEV/+2aNg20GT3NYaR/r+OB6ZuOuApw2nEKHHJCxA
ZCbDYEgr2/ZEQ3go/Qig4t98+ed4lbvMOTmF7VUbP4C110ck+QyQonyoZ3IdMtttKguo7k5UjM8
2IVsgcSz+4QVQeyJvcfwA=
X-Google-Smtp-Source: AGHT+IGrADUsJYG+VFWv47eD+pR7zJzhXMlpXw5IfpEWMJJb+g3cGPT3FAHtvv/EZP3jF1oHK2YAQi3aD/ALtEl30y8=
X-Received: by 2002:a05:651c:513:b0:30b:b78e:c449 with SMTP id
38308e7fff4ca-3108ffba2b3mr340501fa.11.1744909668458; Thu, 17 Apr 2025
10:07:48 -0700 (PDT)
MIME-Version: 1.0
Date: Thu, 17 Apr 2025 13:07:36 -0400
X-Gm-Features: ATxdqUGl985fgO54z5ADLXVJt0hWXRW4CwEZiNK2jkstIsCg4mUw1tEKS8bZ5Bw
Message-ID: <CAGB_HuQ6Zu3trH5nvq7LB7JaAsPpHg=gFnQNGKCzMb70Fw=pRw@mail.gmail.com>
Subject: Missing .pod file for 'diagnostics' pragma in CygwinPerl package?
To: cygwin AT cygwin DOT com
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Soren via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Soren <somian08 AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Hello Cygwinstas,

I've got a question about the cygwin perl package installed with cygwin
setup. I'm having a failure in some perl code not written by me but rather
in a CPAN module I am seeking to install. This failure does not occur on
Gnu/Linux. The first 10 lines of that module are:

package Array::Contains;


use 5.010_001;
use strict;
use warnings;
use diagnostics;
use mro 'c3';
use English;
our $VERSION = 2.8;
use Carp;

Line 6 contains the directive to use the diagnostics pragma as you see. But
when the perl compiler hits that line, it dies with the following long and
slightly confusing messages:

Simplest test case is a one-liner:

$ perl '-Mdiagnostics' -le 'print $diagnostics::VERSION'
couldn't find diagnostic data in /usr/share/perl5/5.40/pods/perldiag.pod
/usr/share/perl5 /usr/local/lib/perl5/site_perl/5.40/x86_64-cygwin-threads
/usr/local/share/perl5/site_perl/5.40
/usr/lib/perl5/vendor_perl/5.40/x86_64-cygwin-threads
/usr/share/perl5/vendor_perl/5.40 /usr/lib/perl5/5.40/x86_64-cygwin-threads
/usr/share/perl5/5.40 -e at /usr/share/perl5/5.40/diagnostics.pm line 259,
<POD_DIAG> line 718.
Compilation failed in require.
BEGIN failed--compilation aborted.

Apparently what happens when it's working right is that code opens a pod
file and reads in needed data from a filehandle on that file. Why it's done
that way is beyond my pay grade. The file is supposed to be at
/usr/share/perl5/5.40/pods/perldiag.pod and that file doesn't exist in my
cygwin installation. I suggest that to respond to my appeal for advice, a
reader using CygwinPerl could check for that file and let us know if it is
present.

  With thanks,
     Soren Andersen

package Array::Contains;

use 5.010_001;
use strict;
use warnings;
use diagnostics;
use mro 'c3';
use English;
our $VERSION = 2.8;
use Carp;


package Array::Contains;

use 5.010_001;
use strict;
use warnings;
use diagnostics;
use mro 'c3';
use English;
our $VERSION = 2.8;
use Carp;

package Array::Containpackage Array::Contains;

use 5.010_001;
use strict;
use warnings;
use diagnostics;
use mro 'c3';
use English;
our $VERSION = 2.8;

use Carp;s;

use 5.010_001;
use strict;
use warnings;
use diagnostics;
use mro 'c3';
use English;
our $VERSION = 2.8;
use Carp;

package Array::Contains;

use 5.010_001;
use strict;
use warnings;
use diagnostics;
use mro 'c3';
use English;
our $VERSION = 2.8;

use Carp;package Array::Contains;

use 5.010_001;
use strict;
use warnings;
use diagnostics;
use mro 'c3';
use English;
our $VERSION = 2.8;
use Carp;

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019