Compilation error with Wireshark SVN repo
Closed this issue · 7 comments
Hi,
there are some errors if we compile this code using Wireshark dev repository.
To solve them, add as first parameter to the tvb_memdup function (line 62 and 78 of packet-whatsapp.c) NULL.
Ciao.
Gianluca
Could you explain the fix? I'm using wireshark version shipping with fedora 19 and works great.
Hi,
If you see latest Wireshark source code using the Subversion version control system (http://anonsvn.wireshark.org/wireshark/trunk/epan/tvbuff.h) the function tvb_memdup has now 4 parameters. With this source code your module, during the compilation, goes in error.
I see... but we would break compilation with older (or not so old) versions. Any idea for an universal fix??
You can use VERSION or {VERSION_MAJOR,VERSION_MICRO, VERSION_MINOR } to identify the Wireshark version and so use the correct tvb_memdup parameters.
VERSION VERSION_MAJOR,VERSION_MICRO and VERSION_MINOR are in Wireshark config.h file.
Ok, do you know which version changed the API? Is this a major wireshark
update?
No, I don't know.
This is fixed now! I just could reproduce the error due to my wireshark being updated.