Wireshark-dev: Re: [Wireshark-dev] Installing a new dissector
From: "Breno Jacinto" <breno@xxxxxxxxxxxxxxx>
Date: Sun, 19 Oct 2008 19:54:32 -0200
Hello,

    I believe they were developed for Linux, I'm not sure if they are
able to run on Windows. But I'll check if these errors are also
present under Linux. Thanks for the reply!

     I thought there was no error in the source since the .lo files
were generated after the compile phase.

best regards,

-- 
-- 
:: Breno Jacinto ::
:: breno - at - gprt.ufpe.br ::
:: FingerPrint ::
   2F15 8A61 F566 E442 8581
   E3C0 EFF4 E202 74B7 7484
:: Persistir no difícil é a única maneira de torná-lo fácil algum dia.  ::





2008/10/19 Maynard, Chris <Christopher.Maynard@xxxxxxxxx>:
> I tried to compile your dissectors on Windows but got the following warnings.  Warnings are treated as errors so you will need to fix the warnings.
> - Chris
>
> packet-adh.c
> packet-adh.c(84) : error C2220: warning treated as error - no 'object' file gene
> rated
> packet-adh.c(84) : warning C4101: 'upper_tvb' : unreferenced local variable
> packet-adhctl.c
> packet-adhctl.c(90) : error C2220: warning treated as error - no 'object' file g
> enerated
> packet-adhctl.c(90) : warning C4101: 'upper_tvb' : unreferenced local variable
> packet-adhctl.c(85) : warning C4101: 'prot_id' : unreferenced local variable
> packet-adhctl.c(87) : warning C4101: 'flags' : unreferenced local variable
> packet-adhctl.c(88) : warning C4101: 'wrap' : unreferenced local variable
> packet-adhctl.c(86) : warning C4101: 'seq' : unreferenced local variable
> packet-adhctl.c(81) : warning C4101: 'src_text' : unreferenced local variable
> packet-adhctl.c(83) : warning C4101: 'offset_proto' : unreferenced local variabl
> e
> packet-adhctl.c(79) : warning C4101: 'src_address' : unreferenced local variable
>
> packet-adhctl.c(84) : warning C4101: 'hopcount' : unreferenced local variable
> packet-adholsr.c
> packet-adholsr.c(165) : error C2220: warning treated as error - no 'object' file
>  generated
> packet-adholsr.c(165) : warning C4018: '<' : signed/unsigned mismatch
> packet-adholsr.c(265) : error C2143: syntax error : missing ';' before 'type'
> packet-adholsr.c(266) : error C2143: syntax error : missing ';' before 'type'
> packet-adholsr.c(267) : error C2143: syntax error : missing ';' before 'type'
> packet-adholsr.c(268) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(268) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(268) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(268) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(286) : error C2065: 'before_tc' : undeclared identifier
> packet-adholsr.c(286) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(286) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(288) : error C2065: 'before_tc' : undeclared identifier
> packet-adholsr.c(288) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(288) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(288) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(290) : error C2065: 'before_tc' : undeclared identifier
> packet-adholsr.c(290) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(290) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(291) : error C2065: 'before_tc' : undeclared identifier
> packet-adholsr.c(291) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(291) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(291) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(295) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(369) : error C2143: syntax error : missing ';' before 'type'
> packet-adholsr.c(372) : error C2143: syntax error : missing ';' before 'type'
> packet-adholsr.c(373) : error C2143: syntax error : missing ';' before 'type'
> packet-adholsr.c(374) : error C2143: syntax error : missing ';' before 'type'
> packet-adholsr.c(375) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(375) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(375) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(375) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(393) : error C2065: 'before_tc' : undeclared identifier
> packet-adholsr.c(393) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(393) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(394) : error C2065: 'before_tc' : undeclared identifier
> packet-adholsr.c(394) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(394) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(394) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(396) : error C2065: 'before_tc' : undeclared identifier
> packet-adholsr.c(396) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(396) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(397) : error C2065: 'before_tc' : undeclared identifier
> packet-adholsr.c(397) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(397) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(397) : error C2065: 'loop' : undeclared identifier
> packet-adholsr.c(401) : error C2065: 'nb_neighbors' : undeclared identifier
> packet-adholsr.c(402) : error C2065: 'nb_neighbors' : undeclared identifier
>
>> -----Original Message-----
>> From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-
>> bounces@xxxxxxxxxxxxx] On Behalf Of Breno Jacinto
>> Sent: Thursday, October 16, 2008 11:43 PM
>> To: wireshark-dev@xxxxxxxxxxxxx
>> Subject: [Wireshark-dev] Installing a new dissector
>>
>> Hello,
>>
>>   I'm trying to install a dissector in wireshark. I'm following the
>> steps suggested in the install file, which says to update the
>> Makefile.common in epan/dissectors, run autogen.sh, configure and
>> recompile wireshark. But it is
>> not showing in the Protocol list and traffic is not decoded yet
>> (although .lo are present in epan/dissectors)
>>
>>   Can anyone give me a hand on this? I'm unsure if it is a problem with
>> the dissector code, since it was written for Ethereal (~2006), and now
>> I'm trying it on wireshark. Was there any change in the template for
>> dissectors?
>>
>>    The dissector source is attached.
>>
>> thanks in advance,
>> --
>> --
>> :: Breno Jacinto ::
>> :: breno - at - gprt.ufpe.br ::
>> :: FingerPrint ::
>>   2F15 8A61 F566 E442 8581
>>   E3C0 EFF4 E202 74B7 7484
>> :: Persistir no difícil é a única maneira de torná-lo fácil algum dia.  ::
> CONFIDENTIALITY NOTICE: The contents of this email are confidential
> and for the exclusive use of the intended recipient. If you receive this
> email in error, please delete it from your system immediately and
> notify us either by email, telephone or fax. You should not copy,
> forward, or otherwise disclose the content of the email.
>
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> https://wireshark.org/mailman/listinfo/wireshark-dev
>