-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The new ext/Errno/Errno_pm.PL in 5.13.4 tarball generates a bad Errno.pm #10574
Comments
From @csjewellAttached is what I get, (but applicable portion is below,) and it spews Bareword "ExpoOffload" not allowed while "strict subs" in use at After that, it bails in the compilation step, of course, so lots of Would like to discuss possible solutions (maybe filter anything out that This is with the compiler and headers in the 32-bit "gcc4" compiler that If there is anything you need to see, let me know. --------- Portion of generated Errno.pm, full output file attached. our $VERSION = "1.12"; my %err; BEGIN { --Curtis Jewell "Your random numbers are not that random" -- perl-5.10.1.tar.gz/util.c Strawberry Perl for Windows betas: http://strawberryperl.com/beta/ |
From @csjewellThe attached patch implements a sanity check that should work. |
From @csjewell0001-Sanity-check-on-Errno-values.patchFrom 43777df23836a8627607501e7dc7b9d05d313d23 Mon Sep 17 00:00:00 2001
From: Curtis Jewell <perl@csjewell.fastmail.us>
Date: Tue, 24 Aug 2010 14:07:51 -0600
Subject: [PATCH] Sanity check on Errno values.
On a few machines (Win32/gcc using mingw64 headers) Errno.pm
will find a value that is not numeric for a proposed error
key. This change adds a sanity check to discard such keys.
---
ext/Errno/Errno_pm.PL | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL
index 0899dde..fdaa48c 100644
--- a/ext/Errno/Errno_pm.PL
+++ b/ext/Errno/Errno_pm.PL
@@ -358,7 +358,7 @@ BEGIN {
%err = (
EDQ
- my @err = sort { $err{$a} <=> $err{$b} } keys %err;
+ my @err = grep { $err{$_} =~ /-?\d+/ } sort { $err{$a} <=> $err{$b} } keys %err;
foreach $err (@err) {
print "\t$err => $err{$err},\n";
--
1.6.5.1.1367.gcd48
|
@csjewell - Status changed from 'new' to 'open' |
From @csjewellA patch for this issue is attached to the bug, (and also attached here, Thanks! --Curtis Jewell On Tue, 24 Aug 2010 10:49 -0700, perlbug-followup@perl.org wrote:
"Your random numbers are not that random" -- perl-5.10.1.tar.gz/util.c Strawberry Perl for Windows betas: http://strawberryperl.com/beta/ |
From @csjewell0001-Sanity-check-on-Errno-values.patchFrom 43777df23836a8627607501e7dc7b9d05d313d23 Mon Sep 17 00:00:00 2001
From: Curtis Jewell <perl@csjewell.fastmail.us>
Date: Tue, 24 Aug 2010 14:07:51 -0600
Subject: [PATCH] Sanity check on Errno values.
On a few machines (Win32/gcc using mingw64 headers) Errno.pm
will find a value that is not numeric for a proposed error
key. This change adds a sanity check to discard such keys.
---
ext/Errno/Errno_pm.PL | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL
index 0899dde..fdaa48c 100644
--- a/ext/Errno/Errno_pm.PL
+++ b/ext/Errno/Errno_pm.PL
@@ -358,7 +358,7 @@ BEGIN {
%err = (
EDQ
- my @err = sort { $err{$a} <=> $err{$b} } keys %err;
+ my @err = grep { $err{$_} =~ /-?\d+/ } sort { $err{$a} <=> $err{$b} } keys %err;
foreach $err (@err) {
print "\t$err => $err{$err},\n";
--
1.6.5.1.1367.gcd48
|
From [Unknown Contact. See original ticket]Applied, after slight amending, as be54382. Thank you! |
@rafl - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#77416 (status was 'resolved')
Searchable as RT77416$
The text was updated successfully, but these errors were encountered: