nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

run-time: Constant subroutine HUGE_VAL redefined #367

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
currently with 5.16.3, 5.16.3-nt
t/testc.sh -q -O3 95

caused by POSIX::HUGE_VAL stored at init as newCONSTSUB( "HUGE_VAL" )
and then re-initialized later when booting POSIX.

reportedly also with other versions.

fixed by leaving out:
    //cv430 = newCONSTSUB( hv22, "HUGE_VAL", (SV*)&sv_list[8103] );
    //GvCV_set(gv_list[1133], (CV*)(cv430));
    //sv_magic((SV*)gv_list[1133], (SV*)cv430, '<', 0, 0);
    //CvCVGV_RC_off(cv430);

Original issue reported on code.google.com by reini.urban on 23 Jul 2014 at 3:18

GoogleCodeExporter commented 9 years ago
Currently the best workaround is to change all 
  use POSIX; 
lines with 
  use POSIX ();
and import the needed values directly.

Original comment by reini.urban on 23 Jul 2014 at 3:28