develooper Front page | perl.perl5.porters | Postings from April 2011

Fwd: [HACKERS] Fix for Perl 5.14

Thread Next
Reini Urban
April 23, 2011 13:00
Fwd: [HACKERS] Fix for Perl 5.14
Message ID:
Sorry, no chance for a patch on my little new macbook air.

---------- Forwarded message ----------
From: Reini Urban <>
Date: 2011/4/23
Subject: Re: [HACKERS] Fix for Perl 5.14
To: Andrew Dunstan <>
Cc: Alex Hunsaker <>, PostgreSQL-development

2011/4/23 Andrew Dunstan <>:
> On 04/23/2011 03:02 AM, Alex Hunsaker wrote:
>> Perl 5.14.0-RC1 came out a few days ago...
>> There is a minor compile time error due to the API changing a bit:
>> plperl.c:929:3: error: lvalue required as left operand of assignment
>> This is due to GvCV() no longer returning an lvalue, instead they want
>> us to use the new GvCV_set macro. (see
>> Unfortunately  that macro is not available on older perls so the
>> attached provides our own macro when GvCV_set is not defined.
>> Tested with 5.14.0-rc1 and 5.12.3.
>> The -head patch applies with fuzz to 9.0. The 8.4 patch applies clean
>> to 8.4 and with fuzz to 8.3 and 8.2.
> How nice of them not to fix it in ppport.h. I thought this is exactly the
> sort of thing it's for.

It's not so easy to convert
 foo = GvCV(bah);
to a
 GvCV_set(foo, bar);
with a ppport.h macro automatically.

But yes, the backport GvCV_set => lvalue GvCV should be in ppport.h.
It is not yet
Reini Urban

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About