| Frank Cusack 2007-06-27, 7:19 pm |
| On Wed, 27 Jun 2007 10:59:54 -0700 shahan.am@gmail.com wrote:
> On Jun 27, 9:53 pm, Frank Cusack <fcus...@fcusack.com> wrote:
>
> Thanks for the reply..
>
> but it linker in sparc doesn't complain when linking the executable.
> Only when its executing dlpoen it gives error. and its clearly says
> that it can;t find the reference to the global function in the
> executable. Then i check the symbols in the executable with nm and i
> can found the missing global function there. im confused with this..
It's not complaining about not finding your global symbol, it's
complaining about the .so not being dlopen()able at all.
....
> in the executable im loading the so by using dlopen(...,RTLD_NOW)
> in sparc this function fails. dllerror reports could not find
> reference to GetLastError
That is not what you reported earlier. You are either confused
about where this error is being generated, or you are not accurately
reporting the errors.
It would probably help to PASTE the output from your compilation and
then running of the program. BTW, did you compile the shared lib with
-fpic? I don't think that's it because you said it works on x86.
-fran
|