Wireshark-dev: Re: [Wireshark-dev] Wireshark PIDL generated dissectors

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Tue, 22 Oct 2013 01:27:58 +0200
On Mon, Oct 21, 2013 at 03:48:35PM -0400, mmann78@xxxxxxxxxxxx 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 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=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 one.

I just tried to replace tools/pidl/ with the current samba rsync version.
The result doesn't look too good:

jmayer@egg:~/work/wireshark/svn/trunk/epan/dissectors/pidl> ../../../tools/pidl/pidl --ws-parser -- atsvc.idl
defined(@array) is deprecated at /home/jmayer/work/wireshark/svn/trunk/tools/pidl/lib/Parse/Pidl/ODL.pm line 73.
        (Maybe you should just omit the defined()?)
defined(@array) is deprecated at ../../../tools/pidl/pidl line 608.
        (Maybe you should just omit the defined()?)
Compiling atsvc.idl
/usr/include/stdc-predef.h:0: error: Syntax error near '3'
Failed to parse atsvc.idl at ../../../tools/pidl/pidl line 608.
jmayer@egg:~/work/wireshark/svn/trunk/epan/dissectors/pidl> perl -version

This is perl 5, version 16, subversion 2 (v5.16.2) built for i586-linux-thread-multi
[...]

Any idea about what's going wrong here?

And when I try to do a "make install" for pidl and then run it:
jmayer@egg:~/work/wireshark/svn/trunk/epan/dissectors/pidl> pidl --ws-parser -- atsvc.idl Can't locate Parse/Pidl.pm in @INC (@INC contains: /usr/bin/../share/perl5 /usr/bin/lib /usr/lib/perl5/site_perl/5.16.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.16.2 /usr/lib/perl5/vendor_perl/5.16.2/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.16.2 /usr/lib/perl5/5.16.2/i586-linux-thread-multi /usr/lib/perl5/5.16.2 /usr/lib/perl5/site_perl .) at /usr/bin/pidl line 410.
BEGIN failed--compilation aborted at /usr/bin/pidl line 410.

Which looks like the make install target doesn't work on opensuse 12.3.

Ciao
    Jörg


-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.