Unix Programming - Re: dlopen: fatal: relocation error

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2007 > Re: dlopen: fatal: relocation error





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: dlopen: fatal: relocation error
shahan.am@gmail.com

2007-06-28, 1:25 pm

On Jun 28, 6:35 am, "guent...@gmail.com" <guent...@gmail.com> wrote:
> On Jun 27, 4:36 am, shahan...@gmail.com wrote:
> ...
>
>
>
> Hmm, I don't see a -rdynamic option in the info pages for ld version
> 2.15.92.0.2. How do the info pages on your system describe that
> option?
>
>
>
> Ugh, you're using GNU ld. Unless you have a particular reason to use
> the GNU linker, I would suggest using Sun's linker (/usr/ccs/bin/ld)
> under Solaris.
>
>
> _Z11GetLastErrorv: referenced symbol not found
>
>
>
>
> In no particular order:
> 1) are you dang sure it's opening the copy of the shared object that
> you think it is?
> 2) what is the *exact* call to dlopen() that you're making?
> 3) are there other shared objects being loaded? Do any them in
> turn load libmsat.d.so, perhaps with different flags?
>
> Philip Guenther


thanks Philip
1) yes im sure its the correct shared object..
2) im using dlopen as

void* handle = dlopen (zLibName, RTLD_NOW));

where zLibName has the full path of shared object.

3) yes there are couple of shared objects being loaded but none of the
loads libmsat.d.so


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com