I am trying to run a program with LD_PRELOAD installled and used. I habe the *.so libary and its path. I want to replace some libarauies with the dthrads libaraies.when I ran the ... [by newport_j]
on 08/16/2012 – Made popular on 08/16/2012
I need to load a C++ library into a tcl program, in order to do this I need to define the environment variable LD_PRELOAD. The program is called from within a tcsh script that sets all the needed variables and environment for the program.
I'm trying to use LD_PRELOAD to wrap some functions in a system, I first exported the environment variable LD_PRELOAD to point to my .so file, then I run the system, I always get ERROR: ld.so: object '/full/path/to/wrap.so' from LD_PRELOAD cannot be preloaded: ignored.