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: "adroit est" <adroitest@xxxxxxxxx>
Date: Wed, 5 Apr 2006 00:31:10 +0100
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.am from 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.c should 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