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