无法解析共享库中的符号 [英] Unable to resolve the symbols in shared library

查看:91
本文介绍了无法解析共享库中的符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




在不同的

框中部署共享库时遇到一个问题。

我开了一个共享用于TAM套件的库(这是一个IBM产品

用于不同的身份验证机制)来定制该产品,用于

a不同的场景。

我们部署了所有机器都部署了不同boxex中的TAM和相同的库文件



它在三个盒子中工作完全没问题,但是在一个盒子里它不是

工作。

当我们诊断共享图书馆以解决问题时,我们来了

以了解该库中缺少一个符号。


----------------------------------------- ----

符号未找到:main(./libxauthn.so)

/platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1

符号未找到:

checkPropagateCustomCdasErrors(./libxauthn.so)

/ usr / lib / cpu / sparcv8plus / libCstd_is a.so.1

------------------------------------

但是我的代码中的任何地方都没有使用此符号。我们不知道

从装载机选择此符号的位置。

此问题仅存在于一个服务器中,其余三个是

执行完美。

请让我知道如何进一步发展。


问候

Sunil。

Hi ,

Am facing one problem while deploying the shared library in different
boxes.
I devoloped one shared library for TAM suite ( This is a IBM product
for different authentication mechanisms) to customise that product for
a different scenario.
We deployed the TAM in different boxex and the same library file is
deployed in all the machines.
It is working in three boxes perfectly fine but in one box it is not
working.
When we diagnose the shared librarty to zero out the problem , we came
to know one symbol is missing in that library.

---------------------------------------------
symbol not found: main (./libxauthn.so)
/platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1
symbol not found:
checkPropagateCustomCdasErrors (./libxauthn.so)
/usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
------------------------------------
But anywhere in my code I am not using this symbol. We are not aware
from where the loader is picking this symbol.
This problem is existing in only one server and the rest three are
executing perfectly fine.
Please let me know how to progress further.

Regards
Sunil.

推荐答案

6月16日,1:20 * pm,sunil< sunil .... @ gmail.comwrote:
On Jun 16, 1:20*pm, sunil <sunil....@gmail.comwrote:

---------------------------------------------

*未找到符号:main * * * * *(。/ libxauthn.so)

* * * * / platform / SUNW,Sun-Fire-T200 / lib / libc_psr.so.1

* * * *未找到符号:

checkPropagateCustomCdasErrors * * * * * * * *(。/ libxauthn..so)

* * * * /usr/lib/cpu/sparcv8plus/libCstd_isa.so.1

-------------------- ----------------
---------------------------------------------
* symbol not found: main * * * * *(./libxauthn.so)
* * * * /platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1
* * * * symbol not found:
checkPropagateCustomCdasErrors * * * * * * * *(./libxauthn..so)
* * * * /usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
------------------------------------



也许第三方库正在调用该函数?或者也许它是由应用程序启动调用的b $ b。代码?


Maybe a 3rd party library is calling that function? Or maybe it''s
called by the application''s "start up" code?


6月16日下午5:28 * pm,Tomásóhéilidhe< t ... @ lavabit.comwrote:
On Jun 16, 5:28*pm, Tomás ó héilidhe <t...@lavabit.comwrote:

6月16日,1:20 * pm,sunil< sunil .... @ gmail.comwrote:
On Jun 16, 1:20*pm, sunil <sunil....@gmail.comwrote:

---- -----------------------------------------

*找不到符号:main * * * * *(。/ libxauthn.so)

* * * * /platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1

* * * *未找到符号:

checkPropagateCustomCdasErrors * * * * * * * *(。/ libxauthn.so)

* * * * / usr / lib / cpu / sparcv8plus / libCstd_isa.so.1

----------------------------- -------
---------------------------------------------
* symbol not found: main * * * * *(./libxauthn.so)
* * * * /platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1
* * * * symbol not found:
checkPropagateCustomCdasErrors * * * * * * * *(./libxauthn.so)
* * * * /usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
------------------------------------



也许第三方库正在调用该函数?或者也许它是由应用程序启动调用的b $ b。码?


Maybe a 3rd party library is calling that function? Or maybe it''s
called by the application''s "start up" code?



如何诊断问题第三方功能是否正在呼叫或

不是?

我不知道在哪里和如何深入研究这个问题。


问候

Sunil

How to diagnose the problem whether third party function is calling or
not?
Am unaware where and how to dig into the problem.

Regards
Sunil


sunil写道:
sunil wrote:




在不同的

框中部署共享库时遇到一个问题。 />
我为TAM套件开发了一个共享库(这是一个IBM产品

用于不同的身份验证机制),以便为不同的场景定制该产品。

我们在不同的boxex中部署了TAM,并且在所有机器中部署了相同的库文件



它在三个盒子中完美地工作但是在一个盒子里它不是工作的b $ b。

当我们诊断共享的图书馆以解决问题时,我们来了

来知道一个该库中缺少符号。


---------------------------------------------
$找不到b $ b符号:main(./libxauthn.so)

/platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1

符号找不到:

checkPropagateCustomCdasErrors(./libxauthn.so)

/usr/lib/cpu/sparcv8plus/libCstd_isa.so.1

- -----------------------------------

但我的代码中的任何地方都是不使用此符号。我们不知道

从装载机选择此符号的位置。

此问题仅存在于一个服务器中,其余三个是

执行完美。

请告诉我如何进一步发展。
Hi ,

Am facing one problem while deploying the shared library in different
boxes.
I devoloped one shared library for TAM suite ( This is a IBM product
for different authentication mechanisms) to customise that product for
a different scenario.
We deployed the TAM in different boxex and the same library file is
deployed in all the machines.
It is working in three boxes perfectly fine but in one box it is not
working.
When we diagnose the shared librarty to zero out the problem , we came
to know one symbol is missing in that library.

---------------------------------------------
symbol not found: main (./libxauthn.so)
/platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1
symbol not found:
checkPropagateCustomCdasErrors (./libxauthn.so)
/usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
------------------------------------
But anywhere in my code I am not using this symbol. We are not aware
from where the loader is picking this symbol.
This problem is existing in only one server and the rest three are
executing perfectly fine.
Please let me know how to progress further.



按此符号你的意思是`checkPropagateCustomCdasErrors''

或者你的意思是'主''?


(换句话说,我怀疑链接步骤已经搞乱了<以某种方式提供
。此步骤的详细信息 - 命令选项,搜索

路径等等 - 高度依赖于使用的工具集

并不是真正的C语言问题。如果调查为什么

这个程序中没有main()函数?问题没有

导致解决方案,在IBM或Sun论坛上尝试您的问题。)


-

Eric Sosman
es ***** @ ieee-dot-org.inva lid

By "this symbol" do you mean `checkPropagateCustomCdasErrors''
or do you mean `main''?

(In other words, I suspect the linking step has been messed
up somehow. The details of this step -- command options, search
paths, and so on -- are highly dependent on the tool set in use
and are not really C language issues. If investigating the "Why
is there no main() function in this program?" question doesn''t
lead to the solution, try your question on an IBM or Sun forum.)

--
Eric Sosman
es*****@ieee-dot-org.invalid


这篇关于无法解析共享库中的符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆