Skip to content

Undefined symbol: PL_no_modify #1

Description

@yungchunglin

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions