Recently I built an executable on Solaris & Linux, linking into it a
thirdparty *.so. I copied the shared lib to the path where the
executable is stored & added the path to PATH & LD_LIBRARY_PATH.
When I run the executable from this directory, the executable loads
properly. When I see the shared lib dependancies using ldd, I am able
to spot the shared lib in question.
Now I go one directory level up & try loading the exe, it loads again.
An 'ldd exe' show the dependencies all right & a 'which exe' & 'which
sharedlib' shows that the correct exe & sharedlib are found.
One more level up & the problem begins. The same exe gives undefined
symbol error while loading. The trace of the third party lib vanishes
from 'ldd exe', though a 'which exe' & 'which sharedlib' still locates
the same exe I built & the sharedlib.
I tried logging in a various users & I can load the exe alright after
setting the paths.
Any idea as to what could be going wrong here only in the case of a
Thanks in Advance,