[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ltdl vs. dlfcn & so
- To: openldap-devel@OpenLDAP.org
- Subject: ltdl vs. dlfcn & so
- From: Pierangelo Masarati <ando@sys-net.it>
- Date: Sat, 09 Nov 2002 16:33:14 +0100
- Organization: SysNet
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020618
While playing with SLAPI, I noticed it directly uses
dlfcn stuff, e.g. #include <dlfcn.h>, dlopen() and so,
while slapd/module.c uses ltdl stuff. I understand
the latter is far more portable (virtually platform
independent) and much more versatile, but it requires
another library to be available; to make things uniform
we might wrap calls in a SLAP_DL*(), or rather
LDAP_PVT_DL*() fashion and let configure check for libltdl
and, in case of failure, for libdl with dl*() api
(and for any other platform specific replacement).
I'd prefer to have a uniform loadable stuff approach
throughout the package (e.g. to put everything in libldap
with a ldap_pvt_*() interface both for SLAPI and modules.
Comments, before I start coding?
Pierangelo.
--
Dr. Pierangelo Masarati mailto:pierangelo.masarati@sys-net.it
LDAP Architect, SysNet s.n.c. http://www.sys-net.it
-----------------------------------------------------------------------------
The receiver of this message is required to check if he/she has received it
erroneously. If so, the receiver is requested to immediately inform the
sender and - in consideration of the responsibilities arising from undue use
and/or disclosure of the message and/or the information contained therein -
destroy the original message and any copy or printout thereof.
-----------------------------------------------------------------------------