Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] First plugin namespace issue report
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2013-06-04 12:55:45


Le 04/06/2013 14:34, Jeff Squyres (jsquyres) a écrit :
> On Jun 4, 2013, at 5:11 AM, Brice Goglin <Brice.Goglin_at_[hidden]> wrote:
>
>> 2) custom test with ltdl: The program just silently fails to load hwloc
>> symbols. Equivalent to passing the topology flag above.
>
> One option might be to try to lt_dlsym one of the hwloc symbols that you know you'll need in the plugin (or any public hwloc symbol, for that matter). If ltdl_sym gets NULL back for the hwloc global symbol, then the plugin should disqualify itself and have itself unloaded (perhaps with some way of reporting what/why it did that).
>

lt_dlsym doesn't seem to accept special handles such as RTLD_DEFAULT
like dlsym does, and we don't have a handle on hwloc. I don't see how to
do that with lt_dlsym?

Brice