LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ERROR: ld.so: object '/usr/toolworks/totalview.8.3.0-1/linux-x86/lib/libtvheap.so' fr (https://www.linuxquestions.org/questions/linux-software-2/error-ld-so-object-usr-toolworks-totalview-8-3-0-1-linux-x86-lib-libtvheap-so-fr-928479/)

harshd 02-09-2012 08:20 AM

ERROR: ld.so: object '/usr/toolworks/totalview.8.3.0-1/linux-x86/lib/libtvheap.so' fr
 
Hello,

I am working on linux quite a time now but still know a little.

The issue is, I am getting "ERROR: ld.so: object '/usr/toolworks/totalview.8.3.0-1/linux-x86/lib/libtvheap.so' from LD_PRELOAD cannot be preloaded: ignored."

and what i am trying to do is:

for some particular task,(for capturing memory dump)I am following the steps bellow:

1. Install HIA (Heap Interposition Agent) in SFE Machine

a. Create the following directory: /usr/toolworks/totalview.8.3.0-1/linux-x86/lib/

b. Copy libtvheap.so from J2lang: /usr/toolworks/totalview.8.3.0-1/linux-x86/lib/libtvheap.so into SFE machine at the following directory: /usr/toolworks/totalview.8.3.0-1/linux-x86/lib/



3. Set a preload environment variable before launching the program,

Edit file /home/smsc/scricpts/smsc add the following line at the beginning of
“set_enviorment” function

LD_PRELOAD=/usr/toolworks/totalview.8.3.0-1/linux-x86/lib/libtvheap.so



Add the following line at the beginning of “export_environment ()” function:

export LD_PRELOAD

4. Confirm that SFE process will run with new environment parameter by performing the following:

a. type: “smsc -exec sh”

b. type: “env | grep LD_PRELOAD”

The displayed result should be:

LD_PRELOAD=/usr/toolworks/totalview.8.3.0-1linux-x86/lib/libtvheap.so

all the above i am doing as a root user, when I am trying to login as a smsc user, I am getting the above mentioned error.
can you please suggest something..

business_kid 02-10-2012 02:16 AM

run file on things to make sure your everything is 32 or 64 bit. Another useful tool is readelf, and I think it's
readelf -a /usr/toolworks/totalview.8.3.0-1linux-x86/lib/libtvheap.so


All times are GMT -5. The time now is 03:48 AM.