Re: plugin plans

Felix Salfelder <[email protected]>
Newsgroups gmane.comp.gnu.gnucap.devel
Message-ID <[email protected]>
On Tue, Feb 10, 2015 at 01:59:46AM -0500, al davis wrote:
> On Tuesday 10 February 2015, al davis wrote:
> > The gnucap-uf code also checks for version matching, which
> > is  really needed, but doesn't work as it should.
> 
> Some other ideas on this, ...
> 
> One is to scan the file before calling dlopen.  I think I can do 
> it with two lines of code.

do you know which file dlopen("plugin.so") will load? i dont. but there
might be a way...

> Another idea is for the main lib to have a symbol named to 
> identify the version, and the plugin references it.  If there is 
> a mismatch, there will be an unresolved symbol on loading, which 
> is a fault condition that dlopen can handle.
> 
> I am leaning toward the first, because it is so simple.

this one will not allow to load forcefully. otherwise i really like it,
it should be added as a safety net between major versions/revisions.

cheers
felix
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.