Skip Menu |

This queue is for tickets about the Scope-Upper CPAN distribution.

Report information
The Basics
Id: 112246
Status: resolved
Priority: 0/
Queue: Scope-Upper

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

Bug Information
Severity: Important
Broken in: 0.28
Fixed in: 0.29



Subject: Compilation failure with perl 5.23.8 (argarray, CXt_LOOP_FOR)
Similar issues: * https://rt.cpan.org/Ticket/Display.html?id=112226 (CXt_LOOP_FOR) * https://rt.cpan.org/Ticket/Display.html?id=112227 (argarray) ... cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -DVERSION=\"0.28\" -DXS_VERSION=\"0.28\" -DPI C -fPIC "-I/usr/perl5.23.8p/lib/5.23.8/amd64-freebsd/CORE" -DSU_RELEASE=1 Upper.c Upper.xs:1331:11: error: use of undeclared identifier 'CXt_LOOP_FOR' case CXt_LOOP_FOR: ^ ... Upper.xs:1543:31: error: no member named 'argarray' in 'struct block_sub' argarray = cx->blk_sub.argarray; ~~~~~~~~~~~ ^ ...
This has already been reported to p5p : http://www.nntp.perl.org/group/perl.perl5.porters/2016/01/msg233631.html The compilation failures are not the actual issue there, as they are easy to fix. The real catch is that the extensive changes to the context stack system have deeply broken the implementation of Scope::Upper. Dave had a quick look at how to fix it, but I'm not really bought on his solution - at least, not enough that it would be reasonable for me to spend time on investigating this thoroughly while I have already my hands full with other topics. As such, this module will likely stay broken until someone steps in to fix it.
Just attaching Dave_M's patch from P5P discussion to this ticket for visibility.
Subject: scope_upper.diff

Message body is not shown because it is too large.

From: ppisar [...] redhat.com
Dne Ne 21.Ășno.2016 17:37:04, SREZIC napsal(a): Show quoted text
> Similar issues: > * https://rt.cpan.org/Ticket/Display.html?id=112226 (CXt_LOOP_FOR) > * https://rt.cpan.org/Ticket/Display.html?id=112227 (argarray) > > ... > cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing > -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 > -pipe -DVERSION=\"0.28\" -DXS_VERSION=\"0.28\" -DPI > C -fPIC "-I/usr/perl5.23.8p/lib/5.23.8/amd64-freebsd/CORE" > -DSU_RELEASE=1 Upper.c > Upper.xs:1331:11: error: use of undeclared identifier 'CXt_LOOP_FOR' > case CXt_LOOP_FOR: > ^ > ... > Upper.xs:1543:31: error: no member named 'argarray' in 'struct > block_sub' > argarray = cx->blk_sub.argarray; > ~~~~~~~~~~~ ^ > ...
David Mitchell provided set of 8 patches built on top of current git tree that fixes the code and the tests. See <http://permalink.gmane.org/gmane.comp.lang.perl.perl5.porters/159083>.

I didn't realise I only posted this link earlier to the P5P thread of the same nature.

 

Here is a locally patched Scope-Upper patched to 0.28_01 by applying davem's patches for those who are in desperate need  or just want to test.

 

http://kentfredric.github.io/cpan-fixes/perl-5.24.0/Scope-Upper/Scope-Upper-0.28_01.tar.gz

 

I hope something like this can end up shipped, and so far, its passing tests, as are things that depend on it.

 

http://fast-matrix.cpantesters.org/?dist=Scope-Upper%200.28_01

http://fast-matrix.cpantesters.org/?dist=TryCatch;os=linux;perl=5.25.1;reports=1

Version 0.29 was released a few days ago with Dave's fixes.