dlopen returns error "undefined symbol" but symbol is defined
Issue
Our tool our_tool dynamically loads the library liblib_our_tool.so. It complains concerning the symbol _OURTOOL_XYZv defined in the tool itself.
# echo $LD_LIBRARY_PATH
.:/our_tool/local/shlib
# cd /our_tool/local/bin
# ./loadsim include_so=liblib_process_loadsim_smfServer.so
so=liblib_our_tool.so,dlopen error=/our_tool/local/shlib/liblib_our_tool.so: undefined symbol: _OURTOOL_XYZv
Environment
- Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
