[IRCServices Coding] FW: Channel Time Setting issue

Andrew Church achurch at achurch.org
Tue Jan 15 11:04:53 PST 2002


>protocol/bahamut: sjoin: unable to resolve symbol `get_channelinfo'
>in database module, channel time setting

     What OS are you using (sorry, I frogot)?  Have you tried using static
modules (./configure -use-static-modules)?  Does the patch below fix the
problem?

Index: modules.c
===================================================================
RCS file: /var/cvs-private/ircservices/modules.c,v
retrieving revision 2.41
diff -u -r2.41 modules.c
--- modules.c	13 Jan 2002 17:57:34 -0000	2.41
+++ modules.c	15 Jan 2002 02:04:04 -0000
@@ -186,7 +186,22 @@
 {
 #if !defined(STATIC_MODULES)
 
+#if 0
     return dlsym(handle ? handle : program_handle, symname);
+#else
+    if (handle) {
+	return dlsym(handle, symname);
+    } else {
+	Module *mod;
+	void *ptr;
+	LIST_FOREACH (mod, modulelist) {
+	    ptr = dlsym(mod->dllhandle?mod->dllhandle:program_handle, symname);
+	    if (ptr)
+		return ptr;
+	}
+	return NULL;
+    }
+#endif
 
 #else  /* STATIC_MODULES */
 

  --Andrew Church
    achurch at achurch.org
    http://achurch.org/