Skip Menu |

This queue is for tickets about the Debug-Flags CPAN distribution.

Report information
The Basics
Id: 122307
Status: new
Priority: 0/
Queue: Debug-Flags

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: perl 5.27.1: DEBUG_H_FLAG undeclared
In perl 5.27.1 the -DH flag was removed. This causes a compilation failure: ... cc -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"0.26\" -DXS_VERSION=\"0.26\" -fPIC "-I/opt/perl-5.27.1/lib/5.27.1/x86_64-linux/CORE" Flags.c In file included from Flags.xs:3:0: defsubs.h: In function ‘boot_Debug__Flags’: defsubs.h:28:43: error: ‘DEBUG_H_FLAG’ undeclared (first use in this function) newCONSTSUB(stash,"DEBUG_H_FLAG",newSViv(DEBUG_H_FLAG)); ^ ... Corresponding perldelta entry: https://perl5.git.perl.org/perl.git/blob/HEAD:/pod/perl5271delta.pod#l112
On 2017-07-02 04:14:54, SREZIC wrote: Show quoted text
> In perl 5.27.1 the -DH flag was removed. This causes a compilation > failure: > > ... > cc -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"0.26\" -DXS_VERSION=\"0.26\" > -fPIC "-I/opt/perl-5.27.1/lib/5.27.1/x86_64-linux/CORE" Flags.c > In file included from Flags.xs:3:0: > defsubs.h: In function ‘boot_Debug__Flags’: > defsubs.h:28:43: error: ‘DEBUG_H_FLAG’ undeclared (first use in > this function) > newCONSTSUB(stash,"DEBUG_H_FLAG",newSViv(DEBUG_H_FLAG)); > ^ > ... > > Corresponding perldelta entry: > https://perl5.git.perl.org/perl.git/blob/HEAD:/pod/perl5271delta.pod#l112
Possible patch: http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Debug-Flags-0.26-RT122307.patch CPAN.pm users may use the distroprefs file https://github.com/eserte/srezic-cpan-distroprefs/blob/master/Debug-Flags.yml for automatic patching. I would also volunteer to make a new release for this module --- I just need co-maint bits...
On 2018-08-14 04:41:11, SREZIC wrote: Show quoted text
> On 2017-07-02 04:14:54, SREZIC wrote:
> > In perl 5.27.1 the -DH flag was removed. This causes a compilation > > failure: > > > > ... > > cc -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong > > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > > -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"0.26\" -DXS_VERSION=\"0.26\" > > -fPIC "-I/opt/perl-5.27.1/lib/5.27.1/x86_64-linux/CORE" Flags.c > > In file included from Flags.xs:3:0: > > defsubs.h: In function ‘boot_Debug__Flags’: > > defsubs.h:28:43: error: ‘DEBUG_H_FLAG’ undeclared (first use in > > this function) > > newCONSTSUB(stash,"DEBUG_H_FLAG",newSViv(DEBUG_H_FLAG)); > > ^ > > ... > > > > Corresponding perldelta entry: > > https://perl5.git.perl.org/perl.git/blob/HEAD:/pod/perl5271delta.pod#l112
> > Possible patch: > http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Debug- > Flags-0.26-RT122307.patch
As a bonus, this patch makes the module working for older perls, i.e. 5.12 .. 5.16.