[Dovecot] DRAC support?

Timo Sirainen tss at iki.fi
Wed May 21 12:35:49 EEST 2003


On Wed, 2003-05-21 at 12:26, Charlie Allom wrote:
> > Oh! I got it :) The linker optimizes that function away since it's not
> > used elsewhere. Well, I'll include that function into the drac.c.
> > Updated http://dovecot.procontrol.fi/patches/drac.c

> dlopen(/usr/pkg/lib/dovecot/imap/drac.so) failed:
> /usr/pkg/lib/dovecot/imap/drac.so: Undefined PLT symbol "i_error"
> (symnum = 22)

Well, I think the module stuff is somehow broken with your system then.
And I think I'll revert the net_addr2ip() change too since it's probably
the same reason :)

When linking imap binary, does it include -Wl,--export-dynamic option
somewhere in the gcc line?

Or you could just built it in by modifying src/imap/main.c:

diff -u -r1.33 main.c
--- main.c      14 May 2003 18:23:04 -0000      1.33
+++ main.c      21 May 2003 09:35:06 -0000
@@ -10,6 +10,7 @@
 #include "module-dir.h"
 #include "mail-storage.h"
 #include "commands.h"
+#include "drac.c"
 
 #include <stdlib.h>
 #include <unistd.h>
@@ -92,6 +93,7 @@
        mail_storage_register_all();
        clients_init();
        commands_init();
+       drac_init();
 
        modules = getenv("MODULE_DIR") == NULL ? NULL :
                module_dir_load(getenv("MODULE_DIR"));



More information about the dovecot mailing list