dlopen returns error "undefined symbol" but symbol is defined

Solution Verified - Updated -


Our tool our_tool dynamically loads the library liblib_our_tool.so. It complains concerning the symbol _OURTOOL_XYZv defined in the tool itself.

# 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


  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content