Wireshark-bugs: [Wireshark-bugs] [Bug 11156] New: wireshark_gen.py dies on typedef array

Date: Tue, 28 Apr 2015 14:15:23 +0000
Bug ID 11156
Summary wireshark_gen.py dies on typedef array
Product Wireshark
Version 1.12.4
Hardware x86
OS Windows 7
Status UNCONFIRMED
Severity Normal
Priority Low
Component Build process
Assignee [email protected]
Reporter [email protected]

Created attachment 13577 [details]
Small IDL file that does not work with idl2wrs

Build Information:
Version 1.12.4-Linkabit-2.0 (v1.12.4-0-gb4861da from master-1.12)

Copyright 1998-2015 Gerald Combs <[email protected]> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (32-bit) with GTK+ 2.24.23, with Cairo 1.10.2, with Pango 1.34.0, with
GLib 2.38.0, with WinPcap (4_1_3), with libz 1.2.5, with SMI 0.4.8, with c-ares
1.9.1, with Lua 5.2, without Python, with GnuTLS 3.2.15, with Gcrypt 1.6.2,
with
MIT Kerberos, with GeoIP, with PortAudio V19-devel (built Apr 27 2015), with
AirPcap.

Running on 64-bit Windows 7 Service Pack 1, build 7601, with WinPcap version
4.1.3 (packet.dll version 4.1.0.2980), based on libpcap version 1.0 branch
1_0_rel0b (20091008), GnuTLS 3.2.15, Gcrypt 1.6.2, without AirPcap.
        Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz, with 8094MB of physical
memory.


Built using Microsoft Visual C++ 10.0 build 40219

Wireshark is Open Source Software released under the GNU General Public
License.

Check the man page and http://www.wireshark.org for more information.
--
If a structure in IDL uses a previous typedef'ed array, the function
get_CDR_alias_hf in wireshark_gen.py gives the following error:

  File "../wireshark_gen.py", line 1465, in get_CDR_alias_hf
    self.getCDR_hf(type.decl().alias().aliasType(),  pn )
TypeError: getCDR_hf() takes at least 4 arguments (3 given)

I've attached a sample IDL which produces this error.

I cannot get the idl2wrs to run in the Windows Command window (since it is a
bash script) and python gives me errors in Cygwin, so I run the this command on
the file below: "omniidl -p ../ -b wireshark_be test.idl" (The file is located
in and idl directory I created under tools)


You are receiving this mail because:
  • You are watching all bug changes.