Post

Replies

Boosts

Views

Activity

Reply to Why dlopen failed on some macOS
I have a similar problem. OSX Version 13.5.2 (22G91) For some reason this version is not able to open framework libs using the standard path, see this code: #include <stdio.h> #include <dlfcn.h> int main(int argc, char *argv[]) { printf("hallo\n"); void *handle1 = dlopen("CoreFoundation.framework/CoreFoundation", RTLD_NOW); printf("REL CoreFoundation.framework %lx\n", (long) handle1); printf("##### dlerror=%s\n",dlerror()); void *handle2 = dlopen("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", RTLD_NOW); printf("ABS CoreAudio.framework %lx\n", (long) handle2); printf("##### dlerror=%s\n",dlerror()); } hallo REL CoreFoundation.framework 0 dlerror=dlopen(CoreFoundation.framework/CoreFoundation, 0x0002): tried: 'CoreFoundation.framework/CoreFoundation' (no such file), '/System/Volumes/Preboot/Cryptexes/OSCoreFoundation.framework/CoreFoundation' (no such file), '/usr/lib/CoreFoundation.framework/CoreFoundation' (no such file, not in dyld cache), 'CoreFoundation.framework/CoreFoundation' (no such file) ABS CoreAudio.framework 49f8aebe8 dlerror=(null) Why is this?
Oct ’23