GNOME Bugzilla – Bug 610489
gmodule should not check dependencies for initialization functions
Last modified: 2010-02-24 12:35:20 UTC
Created attachment 154238 [details] [review] Check for initialization functions in module only. gmodule should not check dependencies for initialization functions, incase of conflict. We can do this by passing a handle of RTLD_NEXT to g_module_symbol when checking for the functions g_module_check_init and g_module_unload. A nice side effect of this patch is that it supplies a fantastic speed boost to evolution when it loads plugins as the plugins all have a lot of linked dependencies AND none of the above two functions.
I understand what you are trying to do here, but I am not sure how this patch is supposed to achieve it. If you are setting ->handle to RTLD_NEXT, there is no way that g_module_symbol can return anything that has a relation to the the file_name that is passed to g_module_open...
Yes, you are correct. A few apps outside of the GNOME ones I use have exhibited a few problems, so I'll pull this change request.