Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-11-2013, 11:08 AM   #1
Registered: Aug 2009
Posts: 167

Rep: Reputation: 0
Preloading a *.so file

I am trying to load an *.so library to run a program. I am trying to preload that library: I know its path and location.

Here is a printout from the screeen:

[james@james Desktop]$ 
[james@james Desktop]$ 
[james@james Desktop]$ 
[james@james Desktop]$ export LD_PRELOAD=/home/james/Desktop/
[james@james Desktop]$ ldd p_hello
ERROR: object '/home/james/Desktop/' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: object '/home/james/Desktop/' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: object '/home/james/Desktop/' from LD_PRELOAD cannot be preloaded: ignored. =>  (0x00007fffbefff000) => /home/james/Desktop/ (0x00007f67c2810000) => /lib64/ (0x0000003375a00000) => /lib64/ (0x0000003375e00000) => /lib64/ (0x0000003375600000) => /usr/lib64/ (0x0000003380600000) => /lib64/ (0x0000003376200000) => /lib64/ (0x000000337d200000)
	/lib64/ (0x0000003375200000)

When I issue the preload command it goes through with no complaints. However, when I issue
the ldd command I get the output:

ERROR: object '/home/james/Desktop/' from LD_PRELOAD cannot be preloaded: ignored.

I also get it when I issue the env command. I cannot run programs that require the *.so file to be preloaded. Why is this happening since I told it exactly where to find the library?

I gave the path and everything else, the synatx is correct for the command. What is going on?

Any help appreciated. Thnks in advance.


Old 10-12-2013, 01:05 PM   #2
Valery Reznic
ELF Statifier author
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
I think you are trying to preload 32-bit o into 64-bit process

What command
file /home/james/Desktop/


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preloading a library on a global basis... manchester Linux - General 1 02-11-2009 02:16 PM
Preloading firefox at boot time marcusmercado Slackware 2 02-05-2009 02:45 PM
preloading apps on fedora (as on SUSE?) 144419855310001 Fedora 2 07-03-2006 08:31 AM
Suse 10.1: Preload or Prelink? Preloading looks like not working Ronald45 SUSE / openSUSE 3 05-29-2006 03:17 PM
Preloading swf Flash files in broswer andrewt Programming 1 08-26-2003 09:16 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration