Ethereal-dev: Re: [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: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Wed, 5 Apr 2006 20:43:27 +0200 (CEST)
Hi, In order to get the picture straight let me recap. You've got the ethereal sources in a source tree like so: ~/ethereal/ aclocal-fallback/ asn1/ ..... dtds/ epan/ dfilter/ dissectors/ dcerpc/ ftypes/ ..... plugins/ acn/ agentx/ ... Then you've configured and build the ethereal package like so: ./autogen.sh configure make Then you've added your plugin to the tree like so: ~/ethereal/ plugins/ acn/ agentx/ ... foo/ <<< you work here ... and added this directory to the plugin directory makefile template (~/ethereal/plugins/Makefile.am) like so: SUBDIRS= ..... enttec \ foo \ giop \ ..... Then you've configured and build the ethereal package like so: ./autogen.sh configure make Now you can work on your plugin/foo code and run make in there. This is the way it is supposed to work. As you can see we don't mingle with the makefile itself, we leave that to the autotools and configure scripts to do that for us. Hope it helps. Thanx, Jaap On Wed, 5 Apr 2006, adroit est wrote: > Anders, > Yes I can compile the ethereal source files. The sample foo.c plugin > source file is what I am having trouble compiling. Maybe it would be easier > if there was a set of clear steps available to follow, for people like me > who are rusty/new to C make files ;) > > I have the ethereal sources, inside this source directory I am trying to > compile the foo.c with the Makefile provided by the developer documentation. > That is all I have at the moment. Thanks > > On 05/04/06, Anders Broman <a.broman@xxxxxxxxx> wrote: > > > > 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 > > > > > > > > _______________________________________________ > > Ethereal-dev mailing list > > Ethereal-dev@xxxxxxxxxxxx > > http://www.ethereal.com/mailman/listinfo/ethereal-dev > > >
- Follow-Ups:
- Re: [Ethereal-dev] newbie plugin compile problems on Linux
- From: adroit est
- Re: [Ethereal-dev] newbie plugin compile problems on Linux
- References:
- Re: [Ethereal-dev] newbie plugin compile problems on Linux
- From: adroit est
- Re: [Ethereal-dev] newbie plugin compile problems on Linux
- Prev by Date: Re: [Ethereal-dev] MySQL dissector
- Next by Date: Re: [Ethereal-dev] increasing number of bytes printed from "proto_tree_add_bytes" function
- Previous by thread: Re: [Ethereal-dev] newbie plugin compile problems on Linux
- Next by thread: Re: [Ethereal-dev] newbie plugin compile problems on Linux
- Index(es):