Log in

View Full Version : Perl 5.14 change


Harcourt
01-12-2012, 07:10 PM
GvCV is no longer an l-value, which will break embperl.cpp.

The fix is easy, but as I have significant local modifications I'll post the details and let someone else create the patch.

Around line 150:



if(gv_stashpv("CORE::GLOBAL", FALSE)) {
GV *exitgp = gv_fetchpv("CORE::GLOBAL::exit", TRUE, SVt_PVCV);
GvCV_set(exitgp, perl_get_cv("my_exit", TRUE)); //dies on error
GvIMPORTED_CV_on(exitgp);
GV *sleepgp = gv_fetchpv("CORE::GLOBAL::sleep", TRUE, SVt_PVCV);
GvCV_set(sleepgp, perl_get_cv("my_sleep", TRUE)); //dies on error
GvIMPORTED_CV_on(sleepgp);
}

kalua
01-20-2012, 04:50 PM
There is at least one other cpp file that has issues compiling against perl 5.13+ due to the GvCV changes.

There's a thread on the Windows forum regarding this.

Edit: EQWParser.cpp