Hello All, In order to build Matshark, I followed the instructions on http://cpansearch.perl.org/src/NANIS/Net-Sharktools-0.009/README.sharktools-0.1.5.txt I am using a 32 bit, ubuntu 10.04 machine with gcc-4.3.4 I configured as follows: ./configure --disable-pyshark --with-mex=/[path/to/mex] --with-wireshark-src=[/path/to/wireshark] The process completes successfully and makefile is generated. When I issue the "make" command, I get: sharktools_cfile.c: In function 'cap_file_init': sharktools_cfile.c:47: error:'capture_file' has no member named 'plist_start' sharktools_cfile.c:51: error:'capture_file' has no member named 'plist_end' sharktools_cfile.c:57: error:'capture_file' has no member named 'user_saved' make[1]:*** [all-recursive] Error 1 Can someone help with this? Regards, Ramya asked 11 Jun '12, 14:17 ramya edited 11 Jun '12, 16:27 |
One Answer:
The There's probably a bug, or at least an invalid assumption, somewhere in Matshark, that's causing it not to work with whatever version of Wireshark you're using. You probably want to ask the Matshark people about this. answered 11 Jun '12, 20:26 Guy Harris ♦♦ |
Indeed. From README.sharktools-0.1.5.txt:
In your case that would be something like:
Ubuntu 10.04.1 LTS + Python 2.6.5 + Wireshark 1.2.7
Hello Guy, Thank you for your answer! So I went ahead and downgraded the wireshark version to 1.2.7. The errors above go away. But now when I try to make the file, I get another set of errors. All these errors are coming from sharktools_core.c :
These functions are defined in Wireshark's epan.h and frame_data.h. I made sure that sharktools_core.c includes these headers from Wireshark's epan directory. Yet I get the erros above.
I have been struggling with this for the past week now. Any pointers on how to proceed further will be very helpful!
Best regards, Ramya
1.Hello Guy, Thank you for your answer! PLease see my answer below where I decribe a new set of errors I get once i downgrade teh wireshark version. Thank you, Ramya
Edit (@grahamb): I converted your "answer" to a comment as that is how this site works.
It appears that Sharktools does not support Wireshark 1.6.0 or later at all; the announcement sent to the Wireshark mailing lists only says it works with "Most - if not all - versions of Wireshark from 0.99.5 to 1.4.0".
There does appear to be an attempt in the configuration file to detect whether Wireshark is 1.0.x, 1.2.x, or 1.4.x, but that might not be working. Try doing
make distclean
and re-running the configure script in the Sharktools source directory.