为什么 perl2exe 会抱怨“未解析的符号:Perl_Gthr_key_ptr"? [英] Why does perl2exe complain about "Unresolved symbol: Perl_Gthr_key_ptr"?
问题描述
在 Perl 中,这个错误是什么意思?
In Perl, what does this error mean?
Unresolved symbol: Perl_Gthr_key_ptr
我在 HP-UX PA-RISC 机器上使用 perl2exe 将 Perl 文件转换为二进制文件时遇到此错误.
I am getting this error while converting a Perl file to binary using perl2exe on a HP-UX PA-RISC machine.
/usr/lib/dld.sl: Unresolved symbol: Perl_Gthr_key_ptr (code) from /tmp/p2xtmp-9979/Cwd.sl IOT trap (core dumped)
推荐答案
在我的脑海里,它看起来像是一个非线程 perl 试图加载为线程 perl 编译的模块.
Off the top of my head it looks like a non-threaded perl trying to load modules compiled for a threaded perl.
澄清一下,您可以在支持线程(线程 perl)或不支持线程(非线程 perl)的情况下编译 Perl.如果模块是为与线程一起使用而构建的,并且在不支持线程的情况下由 perl 加载,则通常会产生上述错误.
to clarify, you can compile Perl with support for threads (threaded perl) or without support for threads (non-threaded perl). If the module was built to be used with threads and is loaded by a perl without support for threads it usually produces the above error.
要检查 perl 中的线程支持,只需在 perl -V
的输出中搜索thread"字符串:
To check for thread support in perl, just search for the "thread" string in the output of perl -V
:
perl -V | grep thread
这篇关于为什么 perl2exe 会抱怨“未解析的符号:Perl_Gthr_key_ptr"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!