[Darshan-users] Error when using LD_PRELOAD (already solved)
Phil Carns
carns at mcs.anl.gov
Tue Jan 14 19:36:47 CST 2014
I just reproduced this on an Ubuntu 13.10 box as well. It looks like
the root problem is really the link order in the Makfile rule for
lib/libdarshan.so. If I move the -ldl to the end of the command there
and rebuild/reinstall then it works fine.
I'm not going to commit that change in trunk until I have a chance to
test on some other platforms (in case there was some reason that -ldl
was listed so early in the first place), but I'll make sure it is
resolved in the next release.
-Phil
On 01/09/2014 08:35 AM, Carns, Philip H. wrote:
> 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
> _______________________________________________
> 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