Re: [Darshan-users] Error when using LD_PRELOAD (already solved)
Thanks for the tip Florin! -Phil On 12/18/2013 10:41 AM, Isaila, Florin D. wrote:
Hi,
I am sharing this as somebody else can bump into the same problem.
I tried to use darshan shared library. After exporting LD_PRELOAD for /homes/fisaila/software/darshan/lib/libdarshan.so I had the following error in the shell:
make: symbol lookup error: /homes/fisaila/software/darshan/lib/libdarshan.so: undefined symbol: dlsym
The problem turned to be the default behavior of ld. In the darshan-runtime/Makefile I added -Wl,--no-as-needed to CFLAGS_SHARED (after -shared), recompiled and reinstalled the library and everything worked fine.
I am on Ubuntu 12.04 with gcc version 4.6.3.
Regards Florin _______________________________________________ Darshan-users mailing list [email protected] https://lists.mcs.anl.gov/mailman/listinfo/darshan-users
participants (1)
-
Phil Carns