EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Perl 5.14 change (https://www.eqemulator.org/forums/showthread.php?t=34714)

Harcourt 01-12-2012 07:10 PM

Perl 5.14 change
 
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:


Code:

      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


All times are GMT -4. The time now is 10:50 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.