Skip Menu |

This queue is for tickets about the Embperl CPAN distribution.

Report information
The Basics
Id: 110023
Status: open
Priority: 0/
Queue: Embperl

People
Owner: Nobody in particular
Requestors: dom [...] cpan.org
Cc: abe+cpan [...] deuxchevaux.org
gregoa [...] cpan.org
AdminCc:

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



Subject: FTBFS with perl 5.22: 'PL_sv_objcount' undeclared
This package FTBFS with perl 5.22 epnames.h:329:21: error: 'PL_sv_objcount' undeclared (first use in this function) #define sv_objcount PL_sv_objcount ^ Note: getting this far requires having mod_perl installed from trunk (including r1717474) and the patch I've just posted to #95335.
Subject: [rt.cpan.org #110023] Patch for Embperl to build against Perl 5.22
Date: Fri, 15 Jan 2016 09:07:59 +0100
To: bug-embperl [...] rt.cpan.org
From: Axel Beckert <abe [...] deuxchevaux.org>
Hi Gerald, I've managed to build Embperl against Perl 5.22. The main issue was the PL_sv_objcount removal in Perl 5.22 which was unexpectedly easy to fix. What took me hours instead was to get the test suite passing with Perl 5.22 afterwards. There are four types of fixes in the test suite: * Bumping "ok" identation from 30 to 50 because the test suite bails out if "' 'x (30-length($some_string)" tries to use a negative amount. * Shebang lines with quotes no more seem to not work with current Apache versions, so I had to fix #!"/usr/bin/perl" to #!/usr/bin/perl. Not sure if this was always like this and Apache suddenly bails out here or if Perl 5.22 suddenly adds quotes. * The error message "Error in Perl code: Global symbol "$d"; requires explicit package name" gained some additional comment in parentheses. * But in most cases of failing tests I had to enforce numeric context inside [+ +], e.g. [+ 0+$udat{something} +] or [+ 0+keys %a +]. I've quickly skimmed through perl5220delta and found no change which could explain that. So these cases may actually show another 5.22-related bug in Embperl which I haven't fixed (but rather hidden) with this patch. Use with care. I'd be very happy if you could have a look especially the latter type of change and check if those context enforcements are indeed now needed with Perl 5.22 or if this is some other bug in Embperl. (A patch is of course welcome in the latter case, but if your time is scarce, already a comment with your gut feeling would be appreciated.) The current patch is at https://anonscm.debian.org/cgit/pkg-perl/packages/libembperl-perl.git/tree/debian/patches/perl5.22-compat-PL_sv_objcount-removal.patch but I've also attached it to this mail for archive purposes. Kind regards, Axel -- /~\ Plain Text Ribbon Campaign | Axel Beckert \ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail) X See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber) / \ I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)

Message body is not shown because sender requested not to inline it.