Unix Technical Forum

dlopen: fatal: relocation error

This is a discussion on dlopen: fatal: relocation error within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Hi all.. Im facing a trouble in using dlopen. The scenario is as this. i have a executable with ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 05:54 AM
shahan.am@gmail.com
 
Posts: n/a
Default dlopen: fatal: relocation error

Hi all..
Im facing a trouble in using dlopen. The scenario is as this.

i have a executable with a global function. when executing this its
dynamically linking with some .so s. (by using dlopen) . In those .so
s im using that global function by giving extern.

* I gave -rdynamic to ld when linking the executable in linux and it
works fine

* in solaris x86 (5.10) it works ok without any additional flags

* but in solaris SPARC (5.9) even though i linked with --export-
dynamic flag, dlopen function in the executable fails. i check the
error with dlerror it says

fatal: relocation error: : referenced symbol not found

what went wrong with SPARC ? how do i get this work ?

Your help in this highly appreciated...

Thanks..
~sh

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 05:54 AM
Frank Cusack
 
Posts: n/a
Default Re: dlopen: fatal: relocation error

On Wed, 27 Jun 2007 08:00:35 -0700 shahan.am@gmail.com wrote:
> Hi all..
> Im facing a trouble in using dlopen. The scenario is as this.


asked and answered in comp.unix.programmer.

please don't multipost.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:04 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com