[exim-dev] [Bug 139] Dynamically loadable lookup modules

Pàgina inicial
Delete this message
Reply to this message
Autor: bug139
Data:  
A: exim-dev
Assumpte: [exim-dev] [Bug 139] Dynamically loadable lookup modules
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

http://www.exim.org/bugzilla/show_bug.cgi?id=139





------- Comment #6 from johannes@??? 2007-02-04 00:12 -------
Created an attachment (id=56)
--> (http://www.exim.org/bugzilla/attachment.cgi?id=56&action=view)
patch to make dynamically loadable modules possible

This patch makes dynamically loadable lookup modules possible.

Based on Tim's patch, heavily modified, and I had to add lots of
makefile foo...

The one thing I haven't quite sorted out yet is how to install
the modules. I started it, but LOOKUP_MODULE_DIR doesn't seem
right, it should have some prefix like LIBDIR or BINDIR or
something... Someone else can probably figure that out much
much faster than me.

So. Known bugs:
* module install not done
* module name list that is built during loading
is never freed (see addlookupmodule)
* the library ending is hard-coded to .so

Pros:
* well, loadable module support :)
* no more src/lookups/*.h files (except lf_functions.h)
* all lookup functions added dynamically, so can all be static now

Cons:
* lf_quote.c and lf_check_file.c are always linked in

Caveats:
* LOOKUP_XXX=2 was previously a valid setting for compiling it in
* the "Lookups:" printout line changed to
"Lookups (built-in):"

--
Configure bugmail: http://www.exim.org/bugzilla/userprefs.cgi?tab=email