undefined symbol: dlsym error when using LD_PRELOAD
This error can be reproduced on at least Ubuntu 12.04 and 13.10, and probably some other platforms as well.
The solution is to move the -dl argument of the build rule for lib/libdarshan.so to the end of the command line.
We need to research and make sure there wasn't a reason for -ldl to be listed so early in the command line there before making this change permanent.