[Darshan-users] Error when using LD_PRELOAD (already solved)

Phil Carns carns at mcs.anl.gov
Thu Jan 9 08:35:38 CST 2014


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
> Darshan-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/darshan-users



More information about the Darshan-users mailing list