Ethereal-dev: Re: [Ethereal-dev] Compiling a plugin

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

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Mon, 21 Nov 2005 18:43:30 +0100 (CET)
On Mon, 21 Nov 2005, fabio matturro wrote:

> >>Hello,
> >>I have installed ethereal by Synaptic. I've read how to add a plugin in
> >>the
> >>Readme.DEVELOPER guide. The problem is that there's the only plugin
> >>directory installed on my system does not contain subdirectories
> >>containing
> >>dissector files such as packet-xxx.c , COPYING, Makefile.am etc etc.
> >>The directory (/usr/lib/ethereal/plugins/0.10.12) contains xxx.la and
> >>xxx.so
> >>dissector files.
> >>How can i add a plugin?
> >>
>
> Hi,
>
> >From what I read is that you installed a Ethereal RPM. You can add your
> >_compiled_ plugins to that. If you have to compile your plugin code you
> >need to install the Ethereal development RPM. That will give you the
> >source tree in which to add your plugin code and compile it there.
>
> >Good luck,
> >Jaap
>
> Thank you :)
> I have installed all three ethereal .deb packages (i am working on ubuntu).
> As far as .deb ethereal-common packet is concerned, here follows the list of
> the files installed:

[file list ethereal-common.deb]

[file list ethereal-dev.deb]

> As you can see, there apparently seems to be no source files or
> plugin-source-file-containing directory >:
> I've read something about idl2eth but i'd like to add my plugins in the
> usual way. How can I do?
> Should I necessarily compile and build Ethereal from source?
>
> Thanx

You made sure you got the development tools you need. Now go to (a mirror
of) www.ethereal.com and get a source tarball from there to somewhere
into your home directory, like ~/src/ethereal/.
Then 'go through the motions':
./autogen.sh
./configure
make

You can read all about this in the developer-guide, which you can also
download from www.ethereal.com

Good luck,
Jaap