Open aqua3090 opened 7 years ago
Hi demirten,
i am getting similar errors please can you help resolve them.
sysadmin@sysadmin-HP-ProBook-4430s:~/twamp/twamp-dissector-master$ make [ 33%] Generating plugin.c Scanning dependencies of target twamp [ 66%] Building C object CMakeFiles/twamp.dir/plugin.c.o [100%] Building C object CMakeFiles/twamp.dir/packet-twamp.c.o /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c: In function ‘dissect_twamp_control’: /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c:219:43: error: expected expression before ‘twamp_control_transaction_t’ /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c:226:3: warning: passing argument 1 of ‘p_get_proto_data’ makes pointer from integer without a cast [enabled by default] /usr/include/wireshark/epan/frame_data.h:89:14: note: expected ‘struct frame_data ’ but argument is of type ‘int’ /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c:226:3: warning: passing argument 2 of ‘p_get_proto_data’ makes integer from pointer without a cast [enabled by default] /usr/include/wireshark/epan/frame_data.h:89:14: note: expected ‘int’ but argument is of type ‘struct packet_info ’ /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c:226:3: error: too many arguments to function ‘p_get_proto_data’ /usr/include/wireshark/epan/frame_data.h:89:14: note: declared here /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c:227:38: error: expected expression before ‘twamp_control_packet_t’ /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c:228:4: warning: passing argument 1 of ‘p_add_proto_data’ makes pointer from integer without a cast [enabled by default] /usr/include/wireshark/epan/frame_data.h:88:13: note: expected ‘struct frame_data ’ but argument is of type ‘int’ /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c:228:4: warning: passing argument 2 of ‘p_add_proto_data’ makes integer from pointer without a cast [enabled by default] /usr/include/wireshark/epan/frame_data.h:88:13: note: expected ‘int’ but argument is of type ‘struct packet_info ’ /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c:228:4: warning: passing argument 3 of ‘p_add_proto_data’ makes pointer from integer without a cast [enabled by default] /usr/include/wireshark/epan/frame_data.h:88:13: note: expected ‘void ’ but argument is of type ‘int’ /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c:228:4: error: too many arguments to function ‘p_add_proto_data’ /usr/include/wireshark/epan/frame_data.h:88:13: note: declared here /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c:310:3: warning: passing argument 1 of ‘p_get_proto_data’ makes pointer from integer without a cast [enabled by default] /usr/include/wireshark/epan/frame_data.h:89:14: note: expected ‘struct frame_data ’ but argument is of type ‘int’ /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c:310:3: warning: passing argument 2 of ‘p_get_proto_data’ makes integer from pointer without a cast [enabled by default] /usr/include/wireshark/epan/frame_data.h:89:14: note: expected ‘int’ but argument is of type ‘struct packet_info *’ /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c:310:3: error: too many arguments to function ‘p_get_proto_data’ /usr/include/wireshark/epan/frame_data.h:89:14: note: declared here /home/sysadmin/twamp/twamp-dissector-master/packet-twamp.c:409:6: warning: format ‘%li’ expects argument of type ‘long int’, but argument 8 has type ‘int’ [-Wformat] make[2]: [CMakeFiles/twamp.dir/packet-twamp.c.o] Error 1 make[1]: [CMakeFiles/twamp.dir/all] Error 2 make: *** [all] Error 2 sysadmin@sysadmin-HP-ProBook-4430s:~/twamp/twamp-dissector-master$
I have a task of adding twamp dissector to current wireshark version . Once I did this and did a build, I got following issues :/home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/wmem/wmem.h:29:24: error: wmem_array.h: No such file or directory /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/wmem/wmem.h:30:23: error: wmem_core.h: No such file or directory /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/wmem/wmem.h:31:23: error: wmem_list.h: No such file or directory /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/wmem/wmem.h:32:26: error: wmem_miscutl.h: No such file or directory /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/wmem/wmem.h:33:24: error: wmem_queue.h: No such file or directory /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/wmem/wmem.h:34:25: error: wmem_scopes.h: No such file or directory /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/wmem/wmem.h:35:24: error: wmem_stack.h: No such file or directory /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/wmem/wmem.h:36:25: error: wmem_strbuf.h: No such file or directory /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/wmem/wmem.h:37:25: error: wmem_strutl.h: No such file or directory /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/wmem/wmem.h:38:23: error: wmem_tree.h: No such file or directory /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/wmem/wmem.h:39:26: error: wmem_user_cb.h: No such file or directory
I then created a wmem directory in epan and added all the wmem header files in it. After this I got ws_symbol_export.h not found error.
I added this in Wireshark directory.
Then I got p_add_proto_data , p_get_proto_data error from packet_twamp.c , I did my research and understood that it is taking the prototype from frame_data.h so I commented that code and added proto_data.h and proto_data.c file in my workspace.
**Now I am getting following error : [ 5%] Building C object epan/CMakeFiles/epan.dir/proto_data.c.o /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/proto_data.c: In function ‘p_add_proto_data’: /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/proto_data.c:77: error: ‘struct _packet_info’ has no member named ‘pool’ /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/proto_data.c:79: error: ‘struct _packet_info’ has no member named ‘proto_data’ /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/proto_data.c: In function ‘p_get_proto_data’: /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/proto_data.c:107: error: ‘struct _packet_info’ has no member named ‘pool’ /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/proto_data.c:108: error: ‘struct _packet_info’ has no member named ‘proto_data’ /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/proto_data.c: In function ‘p_remove_proto_data’: /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/proto_data.c:134: error: ‘struct _packet_info’ has no member named ‘pool’ /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/proto_data.c:136: error: ‘struct _packet_info’ has no member named ‘proto_data’ /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/proto_data.c: In function ‘p_get_proto_name_and_key’: /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/proto_data.c:153: error: ‘struct _packet_info’ has no member named ‘pool’ /home/Development/Wireshark/WIRESHARK_IPV6_187.00/epan/proto_data.c:154: error: ‘struct _packet_info’ has no member named ‘proto_data’ make[2]: ** [epan/CMakeFiles/epan.dir/proto_data.c.o] Error 1 make[1]: [epan/CMakeFiles/epan.dir/all] Error 2****
pls help :(