I created an app (api_tests) that uses a library (libstorage.so) that linked to oracle occi library (libocci.so.12.1) and compiled it. When I run this app, I get an error:<
nm libocci.so.12.1
There are two problems with above command:
libocci.so.12.1 is actually getting loaded into your process. To answer the "which libocci is getting loaded", run with LD_DEBUG=libs.libocci.so.12.1 doesn't mean that it's available for dynamic linking. It must be available in the dynamic symbol table, which you can examine with nm -D libocci.so.12.1