Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] error with packet.h

Date: Fri, 7 Dec 2007 17:13:34 +0530
--- Begin Message ---
Date: Fri, 7 Dec 2007 17:13:34 +0530
Hi Jaap,
 
I'm using wireshark 0.99.5 version.
 
The error log traces to initial lines of my source code of packet-test.c which goes as :
    #ifdef HAVE_CONFIG_H
    #include "config.h"
    #endif
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <glib.h>
    #include <epan/packet.h>  [Error log points to this line- /home/eth/plugin_dev_xxx/wireshark_32 bit_test/wireshark/epan/packet.h:37, from packet-test.c:14:]
    #include <epan/prefs.h>
 
static int proto_test = -1;
static gint ett_test = -1;
static dissector_handle_t data_handle ;
............................
............................
 
 
Regards ,
atdev

________________________________

From: wireshark-dev-bounces@xxxxxxxxxxxxx on behalf of Jaap Keuter
Sent: Fri 12/7/2007 5:05 PM
To: wireshark-dev@xxxxxxxxxxxxx
Subject: Re: [Wireshark-dev] error with packet.h



Hi,

You will have to tell us what version of the sourcecode you are using
before we can find what this output references.

Thanx,
Jaap

>
> Hello ,
>
> I tried including a file packet-test.c in the wireshark/plugin/test
> directory to understand the inclusion of dissection for a test protocol.
> But the compilation fails with the following error :
>
> Error :
> In file included from
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/proto.h:52,
>                  from
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/packet.h:37,
>                  from packet-test.c:14:
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/ftypes/ftypes.h:248:
> error: syntax error before "union"
> In file included from
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/packet.h:37,
>                  from packet-test.c:14:
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/proto.h:55:
> error: syntax error before "int"
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/proto.h:1511:
> error: syntax error before "gboolean"
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/proto.h:1515:
> error: syntax error before "int"
> In file included from
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/epan.h:33,
>                  from
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/proto.h:1531,
>                  from
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/packet.h:37,
>                  from packet-test.c:14:
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/dfilter/dfilter.h:72:
> error: syntax error before "gchar"
> ..........................................
> ..........................................
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/tfs.h:56:
> error: syntax error before "const"
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/tfs.h:57:
> error: syntax error before "const"
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/tfs.h:63:
> error: syntax error before "const"
> In file included from packet-test.c:15:
> /home/eth/plugin_dev_xxx/wireshark_32bit_test/wireshark/epan/prefs.h:156:
> error: syntax error before "e_prefs"
> make[3]: *** [packet-test.o] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
>
>
> Since these errors are pointing towards standard files( packet.h , prefs.h
> , etc ) , could anyone please suggest what may be going wrong.
>
> Thanks in advance.
>
> Regards ,
> atdev
>
>
>
> 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_______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>


_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev


<<winmail.dat>>


--- End Message ---
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