dlsym cannot find symbol g_dwILResult when debugging an audio plugin

I am trying to debug the AAX version of my plugin (MIDI effect) on Pro Tools, but I am getting the following error (Mac console) when attempting to load it:

dlsym cannot find symbol g_dwILResult in CFBundle etc..

I used Xcode 16.4 to build the plugin. Has anybody come across the same or a similar message?

Best, Achillefs Axart Labs

Answered by DTS Engineer in 857071022

It looks like you started a thread in the JUCE forums about this:

https://forum.juce.com/t/dlsym-cannot-find-symbol-g-dwilresult-when-debugging-aax-plugin/67061

That’s probably a good choice because g_dwILResult doesn’t seem like an Apple thing.

In that thread you mentioned error -14018. AFAICT that’s not an Apple error. The message dlsym cannot find symbol g_dwILResult in CFBundle suggests that your plug-in host is attempting to find the symbol g_dwILResult in your plug-in and the plug-in isn’t exporting that symbols.

You can test whether your plug-in is exporting a specific symbols using nm. You can force a plug-in to export a symbol by passing a .exp file to the linker using the -exported_symbols_list linker option. See An Apple Library Primer for lots of references to docs about this stuff.

However, I can’t promise that’ll fix this issue because, while I can help you get the symbol exported, I have no insight into what its semantics should be.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

It looks like you started a thread in the JUCE forums about this:

https://forum.juce.com/t/dlsym-cannot-find-symbol-g-dwilresult-when-debugging-aax-plugin/67061

That’s probably a good choice because g_dwILResult doesn’t seem like an Apple thing.

In that thread you mentioned error -14018. AFAICT that’s not an Apple error. The message dlsym cannot find symbol g_dwILResult in CFBundle suggests that your plug-in host is attempting to find the symbol g_dwILResult in your plug-in and the plug-in isn’t exporting that symbols.

You can test whether your plug-in is exporting a specific symbols using nm. You can force a plug-in to export a symbol by passing a .exp file to the linker using the -exported_symbols_list linker option. See An Apple Library Primer for lots of references to docs about this stuff.

However, I can’t promise that’ll fix this issue because, while I can help you get the symbol exported, I have no insight into what its semantics should be.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thank for the reply- the issue is now resolved, it was due to a plugin configuration mismatch indeed.

dlsym cannot find symbol g_dwILResult when debugging an audio plugin
 
 
Q