Ethereal-dev: SV: [Ethereal-dev] newbie plugin compile problems on Linux

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

From: "Anders Broman" <a.broman@xxxxxxxxx>
Date: Wed, 5 Apr 2006 17:50:31 +0200
Hi,
Yes but can you compile the source files before you do any changes?
Brg
Anders

-----Ursprungligt meddelande-----
Från: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx] För adroit est
Skickat: den 5 april 2006 17:32
Till: Ethereal development
Ämne: Re: [Ethereal-dev] newbie plugin compile problems on Linux

Jaap,
  I already have the ethereal sources installed. I am just not sure how to
compile the example as no command line examples are in the document. Thanks
On 05/04/06, Jaap Keuter <jaap.keuter@xxxxxxxxx> wrote:
Hi,

Maybe you should work through chapter 4 first. This will get your Ethereal
development environment up and running after which you can branch out into
dissector development.

Thanx,
Jaap

On Wed, 5 Apr 2006, adroit est wrote: 

> Jaap,
>    No I am only using what the tutorial says (which seems to neglect
details
> on this). Do I use the ethereal autogen.sh and configure, and just add an
> entry for my test plugin? If so, this is not mentioned in the developer 
> documentation. Thanks
>
> On 05/04/06, Jaap Keuter <jaap.keuter@xxxxxxxxx> wrote:
> >
> > Hi,
> >
> > You didn't mention autogen.sh and configure. Did you do those?
> >
> > Thanx,
> > Jaap
> >
> > On Wed, 5 Apr 2006, adroit est wrote:
> >
> > > Jaap,
> > >   Thanks for that, I tried recompiling after a make clean, but the
same 
> > > problem. It is more likely my fault though, as I am just moving from a
> > > couple of years of Java, so my C is very rusty. I tried the
Makefile.amfrom
> > > the documentation but it just says: there is nothing to make for
foo.c.
> > >
> > > I suppose my question should be: what else should I be doing? apart
from
> > > having the foo.c and the Makefile.am from the documentation in a 
> > separate
> > > directory. Should I be located in a specific place etc? I know that
> > > foo.cshould be compiled as a shared library with -fPIC but my problem
> > > is more 
> > > preliminary than that at the moment :) Any help would be brillant.
> > Thanks
> > >
> > >
> > > On 04/04/06, Jaap Keuter < jaap.keuter@xxxxxxxxx> wrote:
> > > >
> > > > Hi,
> > > >
> > > > It looks like your makefile is out of whack. Maybe you shoudl try a
> > make
> > > > clean or make distclean and start all over (autogen.sh, configure,
> > make).
> > > >
> > > > Thanx,
> > > > Jaap
> > > >
> > > > On Mon, 3 Apr 2006, adroit est wrote: 
> > > >
> > > > > Hello,
> > > > >    Just working with the developers' guide from
> > > > > http://www.ethereal.com/docs/ and I am having some compile
problems
> > on
> > > > Linux
> > > > > with the sample dissector included. When I try to compile foo.c
with
> > > > gcc, I
> > > > > get the following: 
> > > > >
> > > > > "error: gmodule.h: No such file or directory
> > > > >  error: epan/packet.h: No such file or directory
> > > > >  ..." 
> > > > >
> > > > > I then found that the libgmodule library was not in an accessible
> > > > location
> > > > > so I linked to it with:
> > > > > 
> > > > > gcc foo.c -L/opt/gnome/libgmodule...0
> > > > >
> > > > > However, the same errors occur and why should epan/packet.h et al.
> > also
> > > > be 
> > > > > missing? I also tried setting LD_PRELOAD to the ethereal directory
> > and
> > > > > compiling from there. Any help would be great, thank-you in
advance.
> > > > > 
> > > > > A.
> > > > >
> > > >
> > > > _______________________________________________
> > > > Ethereal-dev mailing list
> > > > Ethereal-dev@xxxxxxxxxxxx
> > > > http://www.ethereal.com/mailman/listinfo/ethereal-dev
> > > >
> > >
> >
> > _______________________________________________
> > Ethereal-dev mailing list
> > Ethereal-dev@xxxxxxxxxxxx 
> > http://www.ethereal.com/mailman/listinfo/ethereal-dev
> >
>

_______________________________________________
Ethereal-dev mailing list 
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev