Re: Runtime detection of EA support

David Fries <[email protected]> Wed, 4 Jul 2007 15:10:42 -0500
Newsgroups gmane.comp.sysutils.backup.dar.general
Message-ID <[email protected]>
On Wed, Jul 04, 2007 at 06:48:15PM +0200, Denis Corbin wrote:
> My second concern is that even under Linux, I don't known how to make
> such an on-fly dynamic linking with a third party library. I guess this
> is not possible, as a process cannot modify its own code segment (?).

Easy actually, just see man dlopen(3).  Give it the filename which is
the shared object, then use dlsym to lookup the address of a function,
and call it.  It helps if the function is not a mangled C++ name.  Not
all operating systems or platforms even support dynamically loading
libraries.

I'm working on two patches myself for performance improvements.  I'm
currently working on release 2.3.2, so I figure I'll have to port them
to the development tree before submitting patches.  At least I expect
those kinds of patches to go against the development version.

-- 
David Fries <[email protected]>
http://fries.net/~david/ (PGP encryption key available)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/