[Wireshark-dev] Wireshark PIDL generated dissectors

mmann78 at netscape.net mmann78 at netscape.net
Sun Oct 27 10:16:35 MDT 2013

I may have slightly misspoke about the patch in bug 9301 causing the compile errors, but the patch in bug 9301 had the same compile errors on Windows as the generated dissectors.  I originally committed the patch in r52734 before realizing the compiler errors which I corrected in r52735 (with a simple cast). 
I don't have access to a Linux box, but I suspect if you used Linux to generate the patch in bug 9301, you won't see this issue either with the generated dissectors. It appears the generated dissectors need extra casting to compile on Windows and I didn't just want to make the fix in the Wireshark source.

-----Original Message-----
From: Matthieu Patou <mat at samba.org>
To: mmann78 <mmann78 at netscape.net>; wireshark-dev <wireshark-dev at wireshark.org>
Cc: abartlet <abartlet at samba.org>; samba-technical <samba-technical at samba.org>
Sent: Sat, Oct 26, 2013 7:26 pm
Subject: Re: [Wireshark-dev] Wireshark PIDL generated dissectors

On 10/21/2013 12:48 PM, mmann78 at netscape.net wrote:
> Checked most of the patches into r52744 (http://anonsvn.wireshark.org/viewvc?view=revision&revision=52744)
> Didn't integrate
> 0010-frsrpc-Regenerate-frsrpc-due-to-changes-in-the-pidl-.patch
> 0016-Regenerate-the-dnserver.patch
> due to compile errors on Windows from applying the patch in bug 9301 
> See r52735 (http://anonsvn.wireshark.org/viewvc?view=revision&revision=52735) 
for how it was fixed.  Not sure if the PIDL compiler has to be changed for this 
Can you tell me what were the compile errors on linux, it's seems just 
fine with just this patch on top of the recent svn trunk.

I just have warnings for dnsserver:
In function ‘dnsserver_dissect_element_DNS_RPC_RECORD_Type’:
warning: passing argument 7 of ‘dnsserver_dissect_enum_DNS_RECORD_TYPE’ 
from incompatible pointer type [enabled by default]
note: expected ‘guint32 *’ but argument is of type ‘guint16 *’
At top level:
warning: ‘dnsserver_dissect_element_DNS_RPC_NAME_NameLength’ defined but 
not used [-Wunused-function]
warning: ‘dnsserver_dissect_element_DNS_RPC_NAME_Name’ defined but not 
used [-Wunused-function]
warning: ‘dnsserver_dissect_element_DNS_RPC_NAME_Name_’ defined but not 
used [-Wunused-function]



More information about the samba-technical mailing list