Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

dlopen and unresolved symbols

807578Nov 22 2001 — edited Nov 23 2001
Hi forum,
I have some .so files, some of them made by me(i.e., I have source files and Makefiles), some of them third party(i.e., I only have the .so file).

I'm trying to create an executable that is able to distinguish which ones are mine and which ones are not. In all my .so libraries I put a function called '_version'.

The problem comes here. When I try to load any of those third party .so, I get this error:
'ld.so.1: home/uf766857/projects/buscaversions/principal/output/versions:
fatal: relocation error: file <file_name.so>: symbol <symbol_name>: referenced symbol not found'

I'm using RTLD_LAZY mode. Is this not enough in order to avoid undefined symbol errors? I only want to check the presence of the '_version' function.

Could anyone help me? (I really need it)

TIA

David.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2001
Added on Nov 22 2001
2 comments
557 views