Dan Weber wrote:
It supported as a fallback under libtools predlopen stuff. Really, everybody has near identical calls, I could implement it to use dlcompat() for Mac OSX using #define statements, but I couldn't test it. That should be left up to Ilja.Aaron Stone wrote:dlopen() is native on Linux and Solaris. If it's just Mac OS X that you'reworried about, there's also dlcompat(). http://www.opendarwin.org/projects/dlcompat/To support Windows, HP-UX, and others, you are correct that libtool or glib will be appropriate. Here's a good HOWTO on the subject (mostly for dlopen,though) http://www.dwheeler.com/program-library/Program-Library-HOWTO/index.html AFAICT, nobody supports Mac OS X natively; dlcompat() seems widely used.Ltdl claims it supports Mac OS X.
Dan Weber
I'm still skeptical about becoming dependant upon glib, so I'd prefer to see libtool's ltdl used. They appear to be equivalently featureful. Additionally, because libtool makes generating shared libraries a breeze, it is likely thatLTDL is seperate from libtool in most cases anyway, but it is very small and could even be patched into the source tree (two files, header and cfile). Do you want to keep it external or have it in the source?you'll need it for your libdbmail.so project anyways.Understood. Most of the LTDL work is going to be like a list of all the functions and their type casts and a for statement to grab them all from the backend. Btw, I am designating the following way to change sql databases for dbmail in the conf file.BACKEND="/usr/lib/dbmail/lib*sql.so.0" Dan WeberAaron Dan Weber <[EMAIL PROTECTED]> said:I am trying to decide which to use for dynamic library loading. The choices are glib's interface, or libtool's interface (ltdl). The standard dlopen() is not very portable (e.g. it doesn't exist on macosx). Both provide nice interfaces, someone give me some feedback.Dan Weber------------------------------------------------------------------------ _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev
signature.asc
Description: OpenPGP digital signature