Wireshark-dev: Re: [Wireshark-dev] implicite declaration when adding plugin !!
From: Anders Broman <anders.broman@xxxxxxxxxxxx>
Date: Mon, 5 May 2014 15:05:42 +0000

 

 

From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of khemis haythem
Sent: den 5 maj 2014 16:49
To: wireshark-dev@xxxxxxxxxxxxx
Subject: [Wireshark-dev] implicite declaration when adding plugin !!

 

 

 

Khemis Haythem         

Adresse : Boite Postale 101  4118, Mednine

GSM : +216 55 69 19 90

Statut : Élève ingénieur 

Spécialité : Génie des Communications et des Réseaux 

Ecole : Ecole National d'Ingénieurs de Gabes

 hello, 

when i trying to add a plugin, i get this error message: 

packet-xxxx.c : In function 'dissect_xxxxx' : 

packet-xxxx.c : 1164:13: error: implicite declaration of function 'tvb_get_gunit16' [ -Werror=implicit-function-declaration]

                                                                                                                    ^

                                                                                                     tvb_get_ntohs or tvb_get_letohs

 

packet-xxxx.c : 1177:1: error: implicite declaration of function  'tvb_get_gunit8' [ -Werror=implicit-function-declaration]

                                                                                                                    ^

                                                                                                     tvb_get_guint8

packet-xxxx.c :1204:12: error: invalid storage class for function 'dissect_xxxxreas' 

also i get another error that i can't solve it : 

packet-xxxx.c: 1204:41 error: declaration of 'tvb' shadows a parameter [ - Werror=shadow]

 

If you declared tvbuff_t *tvb and have a function declaration with .. tvb in it you should change your declaration to say new_tvb or something like that

 

packet-xxxx.c: 1135:42: error: shadowed declaration is here [ -Werror=shadow]

packet-xxxx.c: 1204:41 error: declaration of 'pinfo' shadows a parameter [ - Werror=shadow]

packet-xxxx.c: 1135:42: error: shadowed declaration is here [ -Werror=shadow]

packet-xxxx.c: 1204:41 error: declaration of 'tree' shadows a parameter [ - Werror=shadow]

packet-xxxx.c: 1135:42: error: shadowed declaration is here [ -Werror=shadow]

packet-xxxx.c: 1204:41 error: declaration of 'data' shadows a parameter [ - Werror=shadow]

packet-xxxx.c: 1135:42: error: shadowed declaration is here [ -Werror=shadow]

 

what can i do to solve these errors ? who can help me ? 

haythem.