Wireshark-dev: [Wireshark-dev] wireshark compilation errors in Cygwin.

Date: Wed, 21 Jul 2010 12:00:52 +0530

Hello,

 

I have been using Wireshark in Linux & Solaris environment. I have added new plug-ins to wireshark and all of them are working fine in Linux & Solaris environment,

Now I am trying to compile the same code in windows environment by using Cygwin & VC++. Prior to compiling my own code, I compiled wireshark base code (Wireshark-1.2.5) and it is successful and I got .exe executable which is working fine.

 

Now when I am trying to compile my own wireshark code (which includes some additional plug-ins) I am getting some errors.

 

When I execute the command “nmake -f Makefile.nmake all”

 

After some successful executions I am getting the following error.

packet-tsrp.c

packet-tsrp-template.c(134) : error C2275: 'proto_item' : illegal use of this ty

pe as an _expression_

        ../..\epan\proto.h(269) : see declaration of 'proto_item'

packet-tsrp-template.c(134) : error C2065: 'item' : undeclared identifier

packet-tsrp-template.c(134) : error C2065: 'tsrp_header' : undeclared identifier

 

packet-tsrp-template.c(134) : error C2100: illegal indirection

packet-tsrp-template.c(135) : error C2275: 'proto_tree' : illegal use of this ty

pe as an _expression_

        ../..\epan\proto.h(267) : see declaration of 'proto_tree'

packet-tsrp-template.c(135) : error C2065: 'tsrp_tree' : undeclared identifier

packet-tsrp-template.c(137) : error C2275: 'gint' : illegal use of this type as

an _expression_

        C:\wireshark-win32-libs-1.2\glib\include\glib-2.0\glib\gtypes.h(49) : se

e declaration of 'gint'

packet-tsrp-template.c(137) : error C2146: syntax error : missing ';' before ide

ntifier 'op_idx'

packet-tsrp-template.c(137) : error C2144: syntax error : '<Unknown>' should be

preceded by '<Unknown>'

packet-tsrp-template.c(137) : error C2144: syntax error : '<Unknown>' should be

preceded by '<Unknown>'

packet-tsrp-template.c(137) : error C2143: syntax error : missing ';' before 'id

entifier'

packet-tsrp-template.c(137) : error C2065: 'op_idx' : undeclared identifier

packet-tsrp-template.c(138) : error C2275: 'asn1_ctx_t' : illegal use of this ty

pe as an _expression_

        ../..\epan\asn1.h(138) : see declaration of 'asn1_ctx_t'

packet-tsrp-template.c(138) : error C2146: syntax error : missing ';' before ide

ntifier 'asn1_ctx'

packet-tsrp-template.c(138) : error C2144: syntax error : '<Unknown>' should be

preceded by '<Unknown>'

packet-tsrp-template.c(138) : error C2144: syntax error : '<Unknown>' should be

preceded by '<Unknown>'

packet-tsrp-template.c(138) : error C2143: syntax error : missing ';' before 'id

entifier'

packet-tsrp-template.c(138) : error C2065: 'asn1_ctx' : undeclared identifier

packet-tsrp-template.c(140) : warning C4133: 'function' : incompatible types - f

rom 'int *' to 'asn1_ctx_t *'

packet-tsrp-template.c(151) : warning C4047: '=' : 'int' differs in levels of in

direction from 'proto_item *'

packet-tsrp-template.c(152) : warning C4047: 'function' : 'proto_item *' differs

 in levels of indirection from 'int'  

packet-tsrp-template.c(152) : warning C4047: '=' : 'int' differs in levels of in

direction from 'proto_tree *'

packet-tsrp-template.c(153) : warning C4047: 'function' : 'proto_tree *' differs

 in levels of indirection from 'int'

packet-tsrp-template.c(153) : warning C4047: '=' : 'int' differs in levels of in

direction from 'proto_item *'

packet-tsrp-template.c(156) : warning C4133: 'function' : incompatible types - f

rom 'int *' to 'asn1_ctx_t *'

packet-tsrp-template.c(156) : warning C4047: 'function' : 'proto_tree *' differs

 in levels of indirection from 'int'

packet-tsrp-template.c(161) : warning C4098: 'dissect_tsrp' : 'void' function re

turning a value

NMAKE : fatal error U1077: 'cl' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio .NET 2003\

VC7\BIN\nmake.exe"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio .NET 2003\

VC7\BIN\nmake.exe"' : return code '0x2'

Stop.

 

If any one has any idea on above error, can you please help me?

 

Best regards,

Upendra

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com