g_module_symbol(NULL, ...) fails with loaded modules
Submitted by jacob berkman
i am seeing this bug in evolution.
what happens is, a bonobo shlib component uses libglade, and uses the symbol lookup parts of g_module. this fails, because the symbols aren't defined in the "self" module, but in a loaded module.
eg, gfrob loads libfoo_comp.so using gmodule. libfoo_comp.so calls g_module_symbol (NULL, "foo_function"). this fails on OS X, but apparently works on linux.
a simple workaround is to try looking up the symbol in the previoiusly loaded modules (see attached patch).