How can you determine what Perl module is causing "undefined symbol: Perl_Tstack_sp_ptr?"

Connor picture Connor · Jun 6, 2011 · Viewed 32.5k times · Source

I'm trying to run a Perl script, but it is returning:

/usr/bin/perl: symbol lookup error: /usr/local/groundwork/perl/lib/5.8.8/x86_64-linux-thread-multi/auto/IO/IO.so: undefined symbol: Perl_Tstack_sp_ptr

Is there any way to determine what Perl module is causing this?

Answer

ikegami picture ikegami · Jun 6, 2011

IO.so is the binary component of IO. The modules of this distribution are also part of the perl distribution (i.e. they are dual-lived).

This type of error usually occurs when using a binary compiled using one version of Perl is used by a different version of Perl.