Other than we are HP-UX 11.23 64-bit PA-RISC, I’m not sure what I can tell you, but even with the wrapper the wrong version of the libsagsmp2.sl was found. Neither ADI nor WCP add themselves to either LD_LIBRARY_PATH or SHLIB_PATH, but only to PATH.
If there is a way to configure how shared libraries are searched for I don’t know how. Given the error messages I would receive like this one below, I can see that the ADABAS 5 library is being searched.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol ‘SMP_V213’ in load module ‘/sag/ada/v51103/lib/libadacom.sl’.
However, if the ‘/sag/ada/v51103/lib/libsagsmp2.sl’ had been loaded, then the ‘SMP_V213’ code symbol would have been resolved. By the error messages, it obviously was not.
I checked both the ‘/sag/ada/v51103/lib/libadasmp2.sl’ and the ‘/sag/common/lib/libsagsmp2.sl’ and both were the correct version which includes the ‘SMP_V213’ code symbol.
There were only two other copies of the ‘libsagsmp2.sl’ installed on the server. They were both older versions that did not include the code symbol ‘SMP_V213’ and were located in ‘/sag/adi/libsagsmp2.sl’ and ‘/sag/wcp/v722/libsagsmp2.sl’. Neither defined to LD_LIBRARY_PATH nor SHLIB_PATH. Both defined to PATH. And both products are currently active.
My initial thoughts were that because these products were currently active and their version of the ‘libsagsmp2.sl’ already loaded that the ADABAS 5 version wasn’t reloaded when called, but development rejected this idea. If I shutdown both ADI and WCP the errors continued with ADABAS. If I removed both ADI and WCP from the path, the errors went away. If I put either ADI or WCP back into the PATH the errors returned. Clearly this is an environmental issue and PATH is being searched before LD_LIBRARY_PATH and SHLIB_PATH. I don’t know how to change the search order for shared libraries and developments only advice was to replace the ‘libsagsmp2.sl’ in ADI and WCP with the ADABAS 5 version.
One I did this, all the errors went away. End of story.
If this is an HP-UX configuration issue (to search the PATH for shared libraries or not) please let me know and I’ll pass it along to development. However, the fact that ADI and WCP as with other SAG products have their own shared libraries that are not placed in the LD_LIBRARY_PATH and SHLIB_PATH I don’t see that I have a choice but to continue searching the PATH for shared libraries. Maybe the search order can be changed?