[ofiwg] dlopen

Mccormick, Patrick M patrick.m.mccormick at intel.com
Thu Aug 27 11:30:35 PDT 2015

Libfabric core should be pulling in libdl directly (if configured to do so), but these sound like good things to do regardless.

-----Original Message-----
From: ofiwg-bounces at lists.openfabrics.org [mailto:ofiwg-bounces at lists.openfabrics.org] On Behalf Of Jason Gunthorpe
Sent: Thursday, August 27, 2015 11:24 AM
To: Jeff Squyres (jsquyres) <jsquyres at cisco.com>
Cc: OFIWG Mailing list <ofiwg at lists.openfabrics.org>
Subject: Re: [ofiwg] dlopen

On Thu, Aug 27, 2015 at 06:18:29PM +0000, Jeff Squyres (jsquyres) wrote:
> Ah, I see -- the verbs provider pulls in libibverbs, which pulls in 
> libel.  So if you disable verbs, you see this error.

It is worth compiling shared libaries with -Wl,--no-undefined to catch these sort of erroneous transitive dependencies.

Also use gold as your linker (-fuse-ld=gold), as it has a saner setup to catch mistakes like this.

ofiwg mailing list
ofiwg at lists.openfabrics.org

More information about the ofiwg mailing list