I did some work porting HPX to DragonFly BSD last winter, but ended up not merging it back because of hwloc on DFBSD reporting topologies we did not expect in HPX.
For reference, my work can be found at: https://github.com/zao/hpx/commit/9786ac6c58754912f84af243a467a5ab2572d456 Particularly the init_globally example and the counters are a bit non-trivial. For RTLD_DI_ORIGIN, I reimplemented it now by something like the following: void* end_sym = dlsym(dll_handle, "_end"); Dl_info dli; dlinfo(end_sym, &dli); // dli.dli_fname contains the full path to the library, apply // dirname-alike to strip the file component off, as dirname(3) may be // mutating or not be reentrant Note that dlinfo(RTLD_DI_LINKMAP)'s claims to return paths in its Dl_info* is a lie and cannot be used here, it seems to actually be the literal contents of the library file. On Mon, Aug 13, 2018 at 05:40:39PM +0200, Thomas Heller wrote: > Patrick Welche <[email protected]> schrieb am Mo., 13. Aug. 2018 16:16: > > > On Mon, Aug 13, 2018 at 08:06:25AM -0500, Hartmut Kaiser wrote: > > > FWIW, I have merged #3402 just now. > > > > Thanks! > > > > I have got as far as linking libhpx now - somehow there is a -ldl in > > link.txt (and in the generated pkg-config .pc files). I have been hunting > > through the cmake files where it comes from, but haven't found it. Any > > ideas? (dlopen and friends are in many OS's system library as opposed to > > libdl.) > > > > If I'm not mistaken, this might even come out of the inner cmake core > itself. > > > > Cheers, > > > > Patrick > > _______________________________________________ > > hpx-users mailing list > > [email protected] > > https://mail.cct.lsu.edu/mailman/listinfo/hpx-users > > > _______________________________________________ > hpx-users mailing list > [email protected] > https://mail.cct.lsu.edu/mailman/listinfo/hpx-users -- Lars Viklund | [email protected] _______________________________________________ hpx-users mailing list [email protected] https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
