Ethereal-dev: RE: [Ethereal-dev] adding a plugin to ethereal

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

From: "Enrico Budianto" <ebudian@xxxxxxxxxxx>
Date: Tue, 27 Jul 2004 01:44:10 -0500
Hi,

When compiling my plugin using nmake -f Makefile.nmake command, I keep getting this error message: ..\plugin_api.c(37) : error C2449: found '{' at file scope (missing function hea
der?)
..\plugin_api.c(40) : error C2059: syntax error : '}'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

I think this is because in the plugin_api.h, there is
#ifdef PLUGINS_NEED_ADDRESS_TABLE
/* The parent executable will send us the pointer to a filled in
  plugin_address_table_t struct, and we copy the pointers from
  that table so that we can use functions from the parent executable. */
void plugin_address_table_init(plugin_address_table_t*);
#else
#define plugin_address_table_init(x)    ;
#endif

The program always goes to #else part, and the plugin_api.c file always cannot compile with the error code above.

Am I missing something in the step to create a plugin?

Thanks..

From: "Enrico Budianto" <ebudian@xxxxxxxxxxx>
Reply-To: Ethereal development <ethereal-dev@xxxxxxxxxxxx>
To: ethereal-dev@xxxxxxxxxxxx
Subject: RE: [Ethereal-dev] adding a plugin to ethereal
Date: Fri, 23 Jul 2004 05:18:34 -0500

I just tried your suggestion and I'm getting a different error message, which is now is like below:

plugin_api.c
..\plugin_api.c(35) : warning C4091: ' ' : ignored on left of 'void ' when no va
riable is declared
..\plugin_api.c(36) : error C2449: found '{' at file scope (missing function hea
der?)
..\plugin_api.c(39) : error C2059: syntax error : '}'
NMAKE : fatal error U1077: 'cl' : return code '0x2'

Did you see something similar before?

That's be great if I can see it for my reference.
I've been looking at some of the Makefiles in the other directories inside the plugins directory, and I
didn't see anything that I might have missed.

Thanks..

From: matthew.bradley@xxxxxxxxxxxxx
Reply-To: Ethereal development <ethereal-dev@xxxxxxxxxxxx>
To: ethereal-dev@xxxxxxxxxxxx
Subject: RE: [Ethereal-dev] adding a plugin to ethereal
Date: Fri, 23 Jul 2004 10:52:26 +0100

I have written a number of plugins that I build using MSVC++ and on Linux. I
don't use the "Build" command in the GUI; I run nmake -f Makefile.nmake in
my plugin directory where Makefile.nmake is a modified copy from another
plugin.

It works fine. I can mail you an example makefile if required.

> -----Original Message-----
> From: Enrico Budianto [mailto:ebudian@xxxxxxxxxxx]
> Sent: 23 July 2004 10:31
> To: ethereal-dev@xxxxxxxxxxxx
> Subject: Re: [Ethereal-dev] adding a plugin to ethereal
>
>
> Hi,
> Thanks for the quick reply..
>
> I included those 2 files but I still get the linking error unresolved
> external symbols.
> I'm compiling using the "Build" command inside the MSVC++ GUI.
> Is there some other lib that I need to include?
>
> Thanks again.
>
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>


Community Network Services Ltd..
204-207 Western Docks, Southampton, Hants. SO15 1DA
Switchboard : +44 (0)845 6589920 Fax : +44 (0)2380 799602
Help Desk : +44 (0)845 6589930
http://www.cnsonline.net/
Reg. no. 2084279 England
*************************************************************
All views or opinions expressed herein are solely
those of the author and do not necessarily represent those
of Community Network Services Ltd who do not accept
liability for any action taken in reliance on the contents
of this message (other than where the company has a legal
or regulatory obligation to do so) or for the consequences
of any computer viruses which may have been transmitted
by this E-Mail
The E-Mail and any files transmitted  with it, are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this message
in error please notify the sender and delete the message
immediately or alternatively email postmaster@xxxxxxxxxxxxx
***************************************************************

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

_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/

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

_________________________________________________________________
Planning a family vacation? Check out the MSN Family Travel guide! http://dollar.msn.com