Re: crash on macOS with dlsym RTLD_LOCAL

2021-09-26 Thread Aleix Conchillo Flaqué
Alright. Problem found and fixed. The issue was the way libgcrypt was linked in macOS 11.x. See: https://dev.gnupg.org/T5610 A libgcrypt's libtool.m4 patch has been applied upstream. The patch already existed in Homebrew's libtool, so I just provided it and they have applied it to libgcrypt (and

Re: crash on macOS with dlsym RTLD_LOCAL

2021-09-14 Thread Aleix Conchillo Flaqué
I have posted a message to Apple's forums to see if there's any luck: https://developer.apple.com/forums/thread/689991 Aleix On Sat, Sep 11, 2021 at 10:14 PM Aleix Conchillo Flaqué wrote: > > I did a little bit more research. The combination that actually fails > is RTLD_LAZY | RTLD_GLOBAL (wha

Re: crash on macOS with dlsym RTLD_LOCAL

2021-09-11 Thread Aleix Conchillo Flaqué
I did a little bit more research. The combination that actually fails is RTLD_LAZY | RTLD_GLOBAL (what guile uses). So, you can actually use: - RTLD_LAZY | RTLD_GLOBAL - RTLD_NOW | RTLD_GLOBAL - RTLD_NOW | RTLD_LOCAL I found the source code of dyld https://opensource.apple.com/source/dyld/dyl

crash on macOS with dlsym RTLD_LOCAL

2021-09-04 Thread Aleix Conchillo Flaqué
Hi, I'm trying to load guile-grcypt with guile 3.0.7 and after my previous fix (https://git.savannah.gnu.org/cgit/guile.git/commit/?id=1f100a4f20c3a6e57922fb26fce212997e2a03cb) guile-gcrypt still does not load properly. TLDR; Using RTLD_LOCAL instead of RTLD_GLOBAL (default) causes issues on mac