I am just experimenting with a plugin loader and I found
that there are problems with external symbols which are
loaded at runtime.

The solution is to add RTLD_GLOBAL to the dlopen mode,
but I am not sure if this would cause other problems.

Is this patch OK to go in?


diff --git a/src/plugin.c b/src/plugin.c
index 4c7c45c..e871032 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -50,7 +50,7 @@ dlloaderLoadPlugin (CompPlugin *p,
     else
 	sprintf (file, "lib%s.so", name);
 
-    dlhand = dlopen (file, RTLD_LAZY);
+    dlhand = dlopen (file, RTLD_LAZY | RTLD_GLOBAL);
     if (dlhand)
     {
 	PluginGetInfoProc getInfo;
_______________________________________________
compiz mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/compiz

Reply via email to