Skip Menu |

This queue is for tickets about the ExtUtils-Constant CPAN distribution.

Report information
The Basics
Id: 118845
Status: patched
Priority: 0/
Queue: ExtUtils-Constant

Owner: Nobody in particular
Requestors: khw [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)


Subject: Remove impediement to compiling under C++11
See attached patch
Subject: 0011-ExtUtils-Constant-Remove-impediment-to-compiling-und.patch
From 8c0e51fa98bc4a8f582c173fb4cdcce40dde7e04 Mon Sep 17 00:00:00 2001 From: Karl Williamson <> Date: Sat, 19 Nov 2016 07:14:29 -0700 Subject: [PATCH 11/11] ExtUtils::Constant: Remove impediment to compiling under C++11 C++11 changed from earlier versions to require space between the end of a string literal and a macro, so that a feature can unambiguously be added to the language. Starting in g++ 6.2, the compiler emits a deprecation warning when there isn't a space (presumably so that future versions can support C++11). This commit fixes ExtUtils::Constant This patch also changes any affected lines that exceed 79 columns, as specified by perlhack. Code and modules included with the Perl core need to be compilable using C++. This is so that perl can be embedded in C++ programs. (Actually, only the hdr files need to be so compilable, but it would be hard to test that just the hdrs are compilable.) So we need to accommodate changes to the C++ language. --- cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ b/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ index 545d322..c8f8c0f 100644 --- a/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ +++ b/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ @@ -9,7 +9,7 @@ require ExtUtils::Constant::XS; use ExtUtils::Constant::Utils qw(C_stringify); use ExtUtils::Constant::XS qw(%XS_TypeSet); -$VERSION = '0.08'; +$VERSION = '0.09'; @ISA = 'ExtUtils::Constant::XS'; %type_to_struct = @@ -634,8 +634,10 @@ EOA } else #endif { - sv = newSVpvf("%"SVf" is not a valid $package_sprintf_safe macro at %" - COP_FILE_F " line %d\\n", sv, COP_FILE(cop), CopLINE(cop)); + sv = newSVpvf("%" SVf + " is not a valid $package_sprintf_safe macro at %" + COP_FILE_F " line %d\\n", + sv, COP_FILE(cop), CopLINE(cop)); } croak_sv(sv_2mortal(sv)); EOC @@ -671,7 +673,7 @@ $xs_subname(sv) } else #endif { - sv = newSVpvf("%"SVf" is not a valid $package_sprintf_safe macro", + sv = newSVpvf("%" SVf " is not a valid $package_sprintf_safe macro", sv); } PUSHs(sv_2mortal(sv)); -- 2.7.4
Download (untitled) / with headers
text/plain 260b
I'm sorry but this version here (perl5 core) is effectively unmainted. The development continued at where this bug is fixed with RURBAN/ExtUtils-Constant-0.23_04.tar.gz or with the version in cperl -- Reini Urban
Download (untitled) / with headers
text/plain 226b
On Sat Nov 19 13:39:01 2016, khw wrote: Show quoted text
> See attached patch
Applied (with a bit of caressing because it partly conflicted with the patch for CPAN #63832), and now uploaded as part of the dev release 0.23_50. Nicholas Clark

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to