[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnucap-devel] plugin plans

From: al davis
Subject: Re: [Gnucap-devel] plugin plans
Date: Tue, 10 Feb 2015 01:59:46 -0500
User-agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

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.

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]