Operating System - HP-UX
1834215 Members
2218 Online
110066 Solutions
New Discussion

dlsym returning NULL when function looks valid

 
Steve Carlin
Occasional Contributor

dlsym returning NULL when function looks valid

Hi,

I'm having a problem with the dlsym function. I use dlopen to open a shared library (which I created). dlsym is returning NULL on what looks like a valid function. I used "nm" on my shared library to verify that the function exists.

More info:
OS is 11
dlerror() is not printing out everything.
I tried creating my shared library with and without the -E option for ld. Didn't seem to matter.
The only other linker flag I have is +s
I tried applying patch PHSS_24303, but I had no luck with this either

Help is much appreciated!

Thanks,

SC