Dsnoi / protobuf-wireshark

Automatically exported from code.google.com/p/protobuf-wireshark
Apache License 2.0
0 stars 0 forks source link

fails to build on debian testing and wireshark-1.10.5 #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. patch http://code.google.com/p/protobuf-wireshark/issues/detail?id=9
2. compile against wireshark-1.10.5

  CC       packet-protobuf.lo
packet-protobuf.c: In function 'proto_register_protobuf':
packet-protobuf.c:70:9: error: too many arguments to function 
'get_persconffile_path'
         dirname = get_persconffile_path("protobuf", FALSE, FALSE);
         ^
In file included from packet-protobuf.c:9:0:
../../epan/filesystem.h:197:21: note: declared here
 WS_DLL_PUBLIC char *get_persconffile_path(const char *filename, gboolean from_profile);
                     ^
packet-protobuf.c:60:12: warning: variable 'protobuf_module' set but not used 
[-Wunused-but-set-variable]
  module_t *protobuf_module;
            ^
packet-protobuf.c: In function 'wireshark_pb_process_protobuf_register_subtree':
packet-protobuf.c:152:31: warning: request for implicit conversion from 'void 
*' to 'struct hf_register_info *' not permitted in C++ [-Wc++-compat]
   hf_register_info *hf_info = malloc(sizeof( hf_register_info ) );
                               ^
packet-protobuf.c: In function 'wireshark_pb_process_protobuf_register_field':
packet-protobuf.c:173:27: warning: enum conversion in initialization is invalid 
in C++ [-Wc++-compat]
                           type,
                           ^
packet-protobuf.c:173:27: warning: (near initialization for 
'message_info.hfinfo.type') [-Wc++-compat]
packet-protobuf.c:181:31: warning: request for implicit conversion from 'void 
*' to 'struct hf_register_info *' not permitted in C++ [-Wc++-compat]
   hf_register_info *hf_info = malloc(sizeof( hf_register_info ) );
                               ^
make: *** [packet-protobuf.lo] Error 1
Unable to compile wireshark plugin in /tmp/wireshark-1.10.5//plugins/protobuf
f

Original issue reported on code.google.com by swissu...@gmail.com on 3 Mar 2014 at 1:37