Skip Menu |

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

Report information
The Basics
Id: 73041
Status: open
Priority: 0/
Queue: ExtUtils-Constant

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

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



Subject: Builds unusable code for perl 5.10.0 - newSVpvn_flags() missing
Generated code works fine on 5.10.1 and above, or on 5.8.9. Breaks for 5.10.0 because of a lack of newSVpvn_flags(). E.g. http://www.cpantesters.org/cpan/report/970173a2-1f95-11e1-9d6f-f6dbfa7543f5 On Perl versions older than this, output like sv = newSVpvn_flags(str, len, SVs_TEMP); should instead be written sv = sv_2mortal(newSVpvn(str, len)); I'm willing to supply a patch if required... -- Paul Evans
On Tue Dec 06 07:53:17 2011, PEVANS wrote: Show quoted text
> Generated code works fine on 5.10.1 and above, or on 5.8.9. Breaks for > 5.10.0 because of a lack of newSVpvn_flags().
Actually, I suspect this may have been some odd logic I found in the Makefile.PL invoking EU::Constant. Have released a new version hopefully that fixes it. If so I'll close this one. -- Paul Evans
On Wed Dec 07 11:31:02 2011, PEVANS wrote: Show quoted text
> Actually, I suspect this may have been some odd logic I found in the > Makefile.PL invoking EU::Constant. Have released a new version
hopefully Show quoted text
> that fixes it. If so I'll close this one.
On further inspection actually there is still one occurence in generated code (in const-xs.inc): void AUTOLOAD() PROTOTYPE: DISABLE PREINIT: SV *sv = newSVpvn_flags(SvPVX(cv), SvCUR(cv), SVs_TEMP | SvUTF8(cv)); const COP *cop = PL_curcop; PPCODE: #ifndef SYMBIAN -- Paul Evans