Ethereal-dev: Re: [ethereal-dev] Trouble with plugins

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

From: Olivier Abad <abad@xxxxxxxxxxxxx>
Date: Sun, 12 Dec 1999 10:53:57 +0100
On dim, déc 12, 1999 at 12:00:04 -0600, Gilbert Ramirez wrote:
> Olivier: I'm trying your plugin code for the first time. I'm using the
> sample gryphon plugin that your provided. I compile the loadable
> module, install it in ~/.ethereal/plugins, but then ethereal doesn't
> recognize the plugin when I open the plugins dialogue.
> 
> I put the in a debug line (see the attached diff) to get the dlerror()
> error message.
> 
> My system is Debian, Linux 2.3.31, i586, glibc 2.1.2. The number of
> libdl libraries on my system is interesting:

I have the same system, except for the kernel version (2.2.13).

> First you'll see that the code doesn't try to avoid loading "." and
> ".." files; we should probably avoid that.

Yes.

> $ make
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I../..  -I/usr/debug/include  -Wall -g -O2 -I/usr/debug/lib/glib/include -I/usr/debug/include -c packet-gryphon.c
> ld -shared -o gryphon packet-gryphon.o
                ^^^^^^^
> 
> $ file packet-gryphon.o
> packet-gryphon.o: ELF 32-bit LSB relocatable, Intel 80386, version 1, not stripped
> 
> $ cp packet-gryphon.o ~/.ethereal/plugins/

This is the wrong file. You should use "gryphon" :
$ file gryphon
gryphon: ELF 32-bit LSB shared object, Intel 80386, version 1, not stripped

Olivier
-- 
What did you bring that book I didn't want to be read to out of about
Down Under up for?