hideo55/node-perl — Issue #1: Undefined symbol: PL_no_modify
Author: yungchunglin
Created: 2011-12-16 17:00:20+00:00
State: open

I cloned the master. It has some glitches so I changed the variable names etc. to make it run.

However I got this error.

Can't load '/usr/lib/perl/5.10/auto/PerlIO/scalar/scalar.so' for module PerlIO::scalar: /usr/lib/perl/5.10/auto/PerlIO/scalar/scalar.so: undefined symbol: PL_no_modify at /usr/lib/perl/5.10/XSLoader.pm line 70.

I think it is caused by override_stdhandle and restore_stdhandle. Somehow, the .so file doesn't load.
As long as I comment out

this->override_stdhandle(my_perl, outsv, "STDOUT");
this->override_stdhandle(my_perl, errsv, "STDERR");

and

this->restore_stdhandle(my_perl, "STDOUT");
this->restore_stdhandle(my_perl, "STDERR");

The binding can run.

Is there any way to solve this or any workaround?

Thanks.