Re: [Dovecot] Plugins for Dovecot at FreeBSD 6.0
Boris Ivanov wrote:
Hi Dominic
dovecot itself linked to libc, but what do u mean "removing references to nss_..."? May u clear ur answer abit plz?
Google shows quite a bit of information about this and it seems related to not clearing errors before using the dl* methods. Shows an (old) patch for Samba3 to add it. http://www.freebsd.org/cgi/cvsweb.cgi/ports/net/samba3/files/Attic/patch-lib_module.c?rev=1.1&content-type=text/x-cvsweb-markup Seems like this patch is required for auth/auth-module.c --- auth-module.c Thu Sep 7 14:13:26 2006 +++ auth-module.c.new Thu Sep 7 14:13:08 2006 @@ -59,6 +59,7 @@ return NULL; } + (void)dlerror(); handle = dlopen(path, RTLD_GLOBAL | RTLD_NOW); if (handle == NULL) i_error("dlopen(%s) failed: %s", path, dlerror()); @@ -89,6 +90,7 @@ } } + (void)dlerror(); if (dlclose(module->handle) != 0) i_error("dlclose() failed: %s", dlerror()); i_free(module->name); This is against RC7. Cheers, Dominic
Thank you
Boris
On 07/09/06, *Dominic Marks*
mailto:dom@goodforbusiness.co.uk> wrote: Boris Ivanov wrote: > Hi > > I met problem developing plug-in under FreeBSD 6.1. > > First I tried to use internal plugins like quota and acl but I got: > > IMAP(xxx): module /usr/local/lib/dovecot/imap/lib01_acl_plugin.so: > dlsym(acl_plugin_init) failed: Shared object "nss_dns.so.1" not found, > required by "imap" > > This library doesn't exist on FreeBSD 6.1 Same story when u mention any > plugin in dovecot.conf… > > Any ideas how to fix it?
The nss functions are in libc. So I'd guess removing all reference to any nss_*.so libs would be sufficient.
> -- > Yours > Boris
Dominic
-- Yours Boris
participants (1)
-
Dominic Marks