[ekg2-commit] ekg2: plugins.c (HEAD) [darkjames]

CVS commit cvs w toxygen.net
Czw, 3 Maj 2007, 18:34:27 CEST


Module name:	ekg2
Changes by:	darkjames	2007-05-03 18:34:25

Modified files:
	plugins.c

Log message:
fix loading perl/python modules. They won't fail with undefined symbols.

Index: plugins.c
===================================================================
RCS file: /home/cvs/ekg2/ekg/plugins.c,v
diff -d -u -r1.98 -r1.99
--- plugins.c	3 May 2007 14:17:52 -0000	1.98
+++ plugins.c	3 May 2007 16:34:25 -0000	1.99
@@ -127,7 +127,11 @@
 	 *	But we cannot do it. Because if we load irc before sim plugin. Than we'll have unresolved symbols
 	 *	even if we load sim plugin later.
 	 */
-	void *tmp = dlopen(name, RTLD_NOW);
+	/*
+	 * RTLD_GLOBAL is required by perl and python plugins...
+	 * 	need investigation. [XXX]
+	 */
+	void *tmp = dlopen(name, RTLD_NOW | RTLD_GLOBAL);
 #endif
 	if (!tmp) {
 		debug_error("[plugin] could not be loaded: %s %s\n", name, dlerror());


Więcej informacji o liście dyskusyjnej ekg2-commit