LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-11-2013, 10:08 AM   #1
jyunker
Member
 
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: libsheriff.so. I know its path and location.

Here is a printout from the screeen:

Code:
echo $LD_PRELOAD
/home/james/Desktop/libsheriff.so
[james@james Desktop]$ 
[james@james Desktop]$ 
[james@james Desktop]$ 
[james@james Desktop]$ export LD_PRELOAD=/home/james/Desktop/libsheriff.so
[james@james Desktop]$ ldd p_hello
ERROR: ld.so: object '/home/james/Desktop/libsheriff.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/home/james/Desktop/libsheriff.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/home/james/Desktop/libsheriff.so' from LD_PRELOAD cannot be preloaded: ignored.
	linux-vdso.so.1 =>  (0x00007fffbefff000)
	libsheriff_detect64.so => /home/james/Desktop/libsheriff_detect64.so (0x00007f67c2810000)
	libdl.so.2 => /lib64/libdl.so.2 (0x0000003375a00000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003375e00000)
	libc.so.6 => /lib64/libc.so.6 (0x0000003375600000)
	libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003380600000)
	libm.so.6 => /lib64/libm.so.6 (0x0000003376200000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x000000337d200000)
	/lib64/ld-linux-x86-64.so.2 (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: ld.so: object '/home/james/Desktop/libsheriff.so' 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.


Respectfully,

Newport_j
 
Old 10-12-2013, 12: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
Code:
file /home/james/Desktop/libsheriff.so
shows?
 
  


Reply


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 01:16 PM
Preloading firefox at boot time marcusmercado Slackware 2 02-05-2009 01:45 PM
preloading apps on fedora (as on SUSE?) 144419855310001 Fedora 2 07-03-2006 07:31 AM
Suse 10.1: Preload or Prelink? Preloading looks like not working Ronald45 SUSE / openSUSE 3 05-29-2006 02:17 PM
Preloading swf Flash files in broswer andrewt Programming 1 08-26-2003 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:22 PM.

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