Ethereal-dev: Re: [ethereal-dev] plugins do not work anymore

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Gilbert Ramirez <gram@xxxxxxxxxx>
Date: Wed, 9 Feb 2000 11:03:49 -0600
On Wed, Feb 09, 2000 at 12:40:54AM -0600, Olivier Abad wrote:
> 
> 
> Hi,
> 
> Does anybody know why we try to open ".la" files with g_module_open()
> and not ".so" files ?

Nope. That change, to use ".la", was put in plugins.c in revision 1.3
of that file.  ".la" files are just text files for use by libtool;
we should change LT_LIB_EXT to ".so".
 
> Apparently, since gilbert corrected the test to skip files with wrong
> extensions(*), plugins don't work anymore (g_module_open() fails with a
> "Bad ELF header" error). However, if I change LT_LIB_EXT definition to
> ".so", everything works again.

That's the way it needs to be.

> BTW, if we only need the ".so" file, why do we install the ".la" and
> ".a" in PLUGIN_DIR ?

It's an artifact from "libtool --mode=install", where libtool thinks.
Perhaps some tweaking of the gryphon Makefile.am will fix that.

--gilbert