1833772 Members
2267 Online
110063 Solutions
New Discussion

Re: Unresolved symbol

 
Lynn_2
New Member

Unresolved symbol

I am getting the following error, and I am not sure why. The code compiles but then
when I go to run it I get the following error:

/usr/lib/dld.sl: Unresolved symbol: pthread_mutexattr_default (data) from /prod
uct1/app/oracle/product/7.3.4/lib/libclntsh.sl
/usr/lib/dld.sl: Unresolved symbol: pthread_attr_default (data) from /product1/
app/oracle/product/7.3.4/lib/libclntsh.sl
/usr/lib/dld.sl: Unresolved module for symbol: sqlcxt (code) from my_file
IOT trap (core dumped)

Any help would be greatly appreciated!!!

Thank you
2 REPLIES 2
Anthony Goonetilleke
Esteemed Contributor

Re: Unresolved symbol

There is an Oracle variable called SHLIB_PATH make sure you have added this to your profile as well as the required addtions from the Oracle installation guide
Minimum effort maximum output!
Mikko Nahkola
New Member

Re: Unresolved symbol

Ick. The "Unresolved symbol:" errors are just a pain...
It usually helps to set SHLIB_PATH to point in the right direction. This doesn't help every time (but it is not Oracle-specific, it might not even be HP-UX specific...) Try and look at the offending binary with chatr(1) (on HP-UX), it is also possible to modify the library search behaviour with this.

That said, sometimes this just doesn't help. We had to install a patch (PHSS_19739) once to resolve a symbol, and the patch does (is documented to) require Oracle 7.3.3 and above to be relinked. Didn't test, as we only had 7.3.2.3...
This was on HP-UX 10.20.