Re: [PATCH] foreign-library: fix RTLD_LAZY | RTLD_LOCAL crash on macOS

2021-09-26 Thread Aleix Conchillo Flaqué
Ignore. The issue was the way libgcrypt was linked in macOS. See: https://dev.gnupg.org/T5610 A libgcrypt's libtool.m4 patch has been applied upstream. On Sat, Sep 11, 2021 at 10:10 PM Aleix Conchillo Flaqué wrote: > > * module/system/foreign-library.scm (load-foreign-library): On macOS >

[PATCH] foreign-library: fix RTLD_LAZY | RTLD_LOCAL crash on macOS

2021-09-11 Thread Aleix Conchillo Flaqué
* module/system/foreign-library.scm (load-foreign-library): On macOS calling `dlopen` with RTLD_LAZY | RTLD_LOCAL causes a crash when calling `dlsym`. There are a three working combinations: - Using RTLD_NOW | RTLD_LOCAL - Using RTLD_NOW | RTLD_GLOBAL - Using RTLD_LAZY | RTLD_GLOBAL For