Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could Not add this repo to wireshark #20

Open
saarshah opened this issue Sep 28, 2019 · 4 comments
Open

Could Not add this repo to wireshark #20

saarshah opened this issue Sep 28, 2019 · 4 comments

Comments

@saarshah
Copy link

I am running Ubuntu 16.04 LTS ;
I have proceed as follow;
mkdir Development
cd Development
git clone https://github.com/wireshark/wireshark.git
mkdir build
cmake ../wireshark
then received following msg
We are not tagged.
version.h has been updated.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/amir/Development/build
then i do following
/Development/build$ cd ..
/Development$ mkdir ethWS
/Development$ cd ethWS/
/Development/ethWS$ git clone https://github.com/ConsenSys/ethereum-dissectors.git
Cloning into 'ethereum-dissectors'...
remote: Enumerating objects: 397, done.
remote: Total 397 (delta 0), reused 0 (delta 0), pack-reused 397
Receiving objects: 100% (397/397), 9.28 MiB | 3.37 MiB/s, done.
Resolving deltas: 100% (198/198), done.
Checking connectivity... done.
after that following done with error
amir@amir-7G-Series:
/Development/ethWS$ ln -s /home/amir/Development/ethWS/ /home/amir/Development/wireshark//plugins/epan/ethereumamir@amir-7G-Series:
/Development/ethWS$ cd ..
amir@amir-7G-Series:
/Development$ cd build/
amir@amir-7G-Series:
/Development/build$ cmake ../wireshark
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Generating build using CMake 3.5.1
-- CMake build type: RelWithDebInfo
-- V: 3.1.1, MaV: 3, MiV: 1, PL: 1, EV: .
-- Performing Test C_fexcess_precision_fast_VALID
-- Performing Test C_fexcess_precision_fast_VALID - Success
-- Performing Test C_Wall_VALID
-- Performing Test C_Wall_VALID - Success
-- Performing Test C_Wextra_VALID
-- Performing Test C_Wextra_VALID - Success
-- Performing Test C_Wendif_labels_VALID
-- Performing Test C_Wendif_labels_VALID - Success
-- Performing Test C_Wpointer_arith_VALID
-- Performing Test C_Wpointer_arith_VALID - Success
-- Performing Test C_Wformat_security_VALID
-- Performing Test C_Wformat_security_VALID - Success
-- Performing Test C_fwrapv_VALID
-- Performing Test C_fwrapv_VALID - Success
-- Performing Test C_fno_strict_overflow_VALID
-- Performing Test C_fno_strict_overflow_VALID - Success
-- Performing Test C_Wvla_VALID
-- Performing Test C_Wvla_VALID - Success
-- Performing Test C_Waddress_VALID
-- Performing Test C_Waddress_VALID - Success
-- Performing Test C_Wattributes_VALID
-- Performing Test C_Wattributes_VALID - Success
-- Performing Test C_Wdiv_by_zero_VALID
-- Performing Test C_Wdiv_by_zero_VALID - Success
-- Performing Test C_Wignored_qualifiers_VALID
-- Performing Test C_Wignored_qualifiers_VALID - Success
-- Performing Test C_Wpragmas_VALID
-- Performing Test C_Wpragmas_VALID - Success
-- Performing Test C_Wno_overlength_strings_VALID
-- Performing Test C_Wno_overlength_strings_VALID - Success
-- Performing Test C_Wno_long_long_VALID
-- Performing Test C_Wno_long_long_VALID - Success
-- Performing Test C_Wheader_guard_VALID
-- Performing Test C_Wheader_guard_VALID - Failed
-- Performing Test C_Wcomma_VALID
-- Performing Test C_Wcomma_VALID - Failed
-- Performing Test C_Wshorten_64_to_32_VALID
-- Performing Test C_Wshorten_64_to_32_VALID - Failed
-- Performing Test C_Wframe_larger_than_32768_VALID
-- Performing Test C_Wframe_larger_than_32768_VALID - Success
-- Performing Test C_Wc___compat_VALID
-- Performing Test C_Wc___compat_VALID - Success
-- Performing Test C_Wunused_const_variable_VALID
-- Performing Test C_Wunused_const_variable_VALID - Failed
-- Performing Test C_Wshadow_VALID
-- Performing Test C_Wshadow_VALID - Success
-- Performing Test C_Wold_style_definition_VALID
-- Performing Test C_Wold_style_definition_VALID - Success
-- Performing Test C_Wstrict_prototypes_VALID
-- Performing Test C_Wstrict_prototypes_VALID - Success
-- Performing Test C_Wlogical_op_VALID
-- Performing Test C_Wlogical_op_VALID - Success
-- Performing Test C_Wjump_misses_init_VALID
-- Performing Test C_Wjump_misses_init_VALID - Success
-- Performing Test C_Werror_implicit_VALID
-- Performing Test C_Werror_implicit_VALID - Success
-- Performing Test C_Wno_pointer_sign_VALID
-- Performing Test C_Wno_pointer_sign_VALID - Success
-- Performing Test CXX_fexcess_precision_fast_VALID
-- Performing Test CXX_fexcess_precision_fast_VALID - Success
-- Performing Test CXX_Wall_VALID
-- Performing Test CXX_Wall_VALID - Success
-- Performing Test CXX_Wextra_VALID
-- Performing Test CXX_Wextra_VALID - Success
-- Performing Test CXX_Wendif_labels_VALID
-- Performing Test CXX_Wendif_labels_VALID - Success
-- Performing Test CXX_Wpointer_arith_VALID
-- Performing Test CXX_Wpointer_arith_VALID - Success
-- Performing Test CXX_Wformat_security_VALID
-- Performing Test CXX_Wformat_security_VALID - Success
-- Performing Test CXX_fwrapv_VALID
-- Performing Test CXX_fwrapv_VALID - Success
-- Performing Test CXX_fno_strict_overflow_VALID
-- Performing Test CXX_fno_strict_overflow_VALID - Success
-- Performing Test CXX_Wvla_VALID
-- Performing Test CXX_Wvla_VALID - Success
-- Performing Test CXX_Waddress_VALID
-- Performing Test CXX_Waddress_VALID - Success
-- Performing Test CXX_Wattributes_VALID
-- Performing Test CXX_Wattributes_VALID - Success
-- Performing Test CXX_Wdiv_by_zero_VALID
-- Performing Test CXX_Wdiv_by_zero_VALID - Success
-- Performing Test CXX_Wignored_qualifiers_VALID
-- Performing Test CXX_Wignored_qualifiers_VALID - Success
-- Performing Test CXX_Wpragmas_VALID
-- Performing Test CXX_Wpragmas_VALID - Success
-- Performing Test CXX_Wno_overlength_strings_VALID
-- Performing Test CXX_Wno_overlength_strings_VALID - Success
-- Performing Test CXX_Wno_long_long_VALID
-- Performing Test CXX_Wno_long_long_VALID - Success
-- Performing Test CXX_Wheader_guard_VALID
-- Performing Test CXX_Wheader_guard_VALID - Failed
-- Performing Test CXX_Wcomma_VALID
-- Performing Test CXX_Wcomma_VALID - Failed
-- Performing Test CXX_Wshorten_64_to_32_VALID
-- Performing Test CXX_Wshorten_64_to_32_VALID - Failed
-- Performing Test CXX_Wframe_larger_than_32768_VALID
-- Performing Test CXX_Wframe_larger_than_32768_VALID - Success
-- Performing Test CXX_Wextra_semi_VALID
-- Performing Test CXX_Wextra_semi_VALID - Failed
-- Performing Test C_fmacro_prefix_map_old_new_VALID
-- Performing Test C_fmacro_prefix_map_old_new_VALID - Failed
-- Performing Test CXX_fmacro_prefix_map_old_new_VALID
-- Performing Test CXX_fmacro_prefix_map_old_new_VALID - Failed
-- Performing Test WERROR
-- Performing Test WERROR - Success
-- Performing Test FVHIDDEN
-- Performing Test FVHIDDEN - Success
-- Performing Test LINK_pie_VALID
-- Performing Test LINK_pie_VALID - Success
-- Performing Test LINK_Wl___as_needed_VALID
-- Performing Test LINK_Wl___as_needed_VALID - Success
-- Linker flags: -Wl,--as-needed
-- Found Git: /usr/bin/git (found version "2.7.4")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for one of the modules 'glib-2.0'
-- Found GLIB2: /usr/lib/x86_64-linux-gnu/libglib-2.0.so (found suitable version "2.48.2", minimum required is "2.32.0")
-- Checking for module 'gmodule-2.0'
-- Found gmodule-2.0, version 2.48.2
-- Found GMODULE2: /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so
-- Checking for module 'gthread-2.0'
-- Found gthread-2.0, version 2.48.2
-- Found GTHREAD2: /usr/lib/x86_64-linux-gnu/libgthread-2.0.so
-- Found GCRYPT: /usr/lib/x86_64-linux-gnu/libgcrypt.so (found suitable version "1.6.5", minimum required is "1.4.2")
-- Found LEX: /usr/bin/flex
-- Found YACC: /usr/bin/bison
-- Found Perl: /usr/bin/perl (found version "5.22.1")
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.2", minimum required is "3.4")
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.7")
-- Found M: m
-- Could NOT find LIBSSH (missing: LIBSSH_LIBRARIES LIBSSH_INCLUDE_DIRS LIBSSH_VERSION) (Required is at least version "0.6")
-- Checking for one of the modules 'libpcap'
-- Found PCAP: /usr/lib/x86_64-linux-gnu/libpcap.so
-- Looking for pcap_open_dead
-- Looking for pcap_open_dead - found
-- Looking for pcap_freecode
-- Looking for pcap_freecode - found
-- Looking for pcap_breakloop
-- Looking for pcap_breakloop - found
-- Looking for pcap_create
-- Looking for pcap_create - found
-- Looking for pcap_datalink_name_to_val
-- Looking for pcap_datalink_name_to_val - found
-- Looking for pcap_datalink_val_to_description
-- Looking for pcap_datalink_val_to_description - found
-- Looking for pcap_datalink_val_to_name
-- Looking for pcap_datalink_val_to_name - found
-- Looking for pcap_findalldevs
-- Looking for pcap_findalldevs - found
-- Looking for pcap_free_datalinks
-- Looking for pcap_free_datalinks - found
-- Looking for pcap_get_selectable_fd
-- Looking for pcap_get_selectable_fd - found
-- Looking for pcap_lib_version
-- Looking for pcap_lib_version - found
-- Looking for pcap_list_datalinks
-- Looking for pcap_list_datalinks - found
-- Looking for pcap_set_datalink
-- Looking for pcap_set_datalink - found
-- Looking for bpf_image
-- Looking for bpf_image - found
-- Looking for pcap_set_tstamp_precision
-- Looking for pcap_set_tstamp_precision - found
-- Looking for pcap_set_tstamp_type
-- Looking for pcap_set_tstamp_type - found
-- Looking for pcap_open
-- Looking for pcap_open - not found
-- Could NOT find SYSTEMD (missing: SYSTEMD_LIBRARY SYSTEMD_INCLUDE_DIR)
-- Could NOT find MaxMindDB (missing: MAXMINDDB_LIBRARY MAXMINDDB_INCLUDE_DIR)
-- Could NOT find SMI (missing: SMI_LIBRARY SMI_INCLUDE_DIR)
-- Checking for one of the modules 'gnutls'
-- Found GNUTLS: /usr/lib/x86_64-linux-gnu/libgnutls.so (found suitable version "3.4.10", minimum required is "3.2.0")
-- Checking for one of the modules 'krb5;mit-krb5;heimdal-krb5'
-- Could NOT find KERBEROS (missing: KERBEROS_LIBRARY KERBEROS_INCLUDE_DIR)
-- Could NOT find CARES (missing: CARES_LIBRARY CARES_INCLUDE_DIR) (Required is at least version "1.5.0")
-- Checking for one of the modules 'zlib'
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so
-- Looking for inflate
-- Looking for inflate - found
-- Looking for inflatePrime
-- Looking for inflatePrime - found
-- Could NOT find MINIZIP (missing: MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR)
-- Could NOT find BROTLI (missing: BROTLIDEC_LIBRARY BROTLI_INCLUDE_DIR)
-- Checking for one of the modules 'lz4;liblz4'
-- Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR)
-- Checking for one of the modules 'libsnappy'
-- Could NOT find SNAPPY (missing: SNAPPY_LIBRARY SNAPPY_INCLUDE_DIR)
-- Checking for one of the modules 'libzstd'
-- Could NOT find ZSTD: Found unsuitable version "", but required is at least "1.0.0" (found ZSTD_LIBRARY-NOTFOUND)
-- Checking for one of the modules 'libnghttp2'
-- Could NOT find Nghttp2 (missing: NGHTTP2_LIBRARY NGHTTP2_INCLUDE_DIR)
-- Checking for one of the modules 'lua5.2;lua-5.2;lua52;lua5.1;lua-5.1;lua51'
-- Checking for one of the modules 'lua<=5.2.99'
-- Could NOT find LUA (missing: LUA_LIBRARY LUA_INCLUDE_DIR LUA_VERSION_NUM) (Required is at least version "5.1")
-- Checking for modules 'libnl-3.0;libnl-genl-3.0;libnl-route-3.0'
-- No package 'libnl-3.0' found
-- No package 'libnl-genl-3.0' found
-- No package 'libnl-route-3.0' found
-- Checking for one of the modules 'libnl-2.0'
-- Checking for one of the modules 'libnl-1'
-- Could NOT find NL (missing: NL_LIBRARY NL_INCLUDE_DIR)
-- Could NOT find SBC (missing: SBC_LIBRARY SBC_INCLUDE_DIR)
-- Checking for one of the modules 'spandsp'
-- Could NOT find SpanDSP (missing: SPANDSP_LIBRARY SPANDSP_INCLUDE_DIR)
-- Checking for one of the modules 'bcg729'
-- Could NOT find bcg729 (missing: BCG729_LIBRARY BCG729_INCLUDE_DIR)
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
-- Checking for one of the modules 'libcap'
-- Could NOT find CAP (missing: CAP_LIBRARY CAP_INCLUDE_DIR)
-- Found SETCAP: /sbin/setcap
-- Could NOT find ASCIIDOCTOR (missing: ASCIIDOCTOR_EXECUTABLE)
-- Found POD: /usr/bin/pod2man
-- Found DOXYGEN: /usr/bin/doxygen
-- Could NOT find SpeexDSP (missing: SPEEXDSP_LIBRARY SPEEXDSP_INCLUDE_DIR)
-- Looking for gnutls_pkcs11_obj_list_import_url4
-- Looking for gnutls_pkcs11_obj_list_import_url4 - found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for getopt.h
-- Looking for getopt.h - found
-- Looking for grp.h
-- Looking for grp.h - found
-- Looking for include files sys/types.h, ifaddrs.h
-- Looking for include files sys/types.h, ifaddrs.h - found
-- Looking for netinet/in.h
-- Looking for netinet/in.h - found
-- Looking for netdb.h
-- Looking for netdb.h - found
-- Looking for pwd.h
-- Looking for pwd.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for sys/select.h
-- Looking for sys/select.h - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Looking for sys/sockio.h
-- Looking for sys/sockio.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/utsname.h
-- Looking for sys/utsname.h - found
-- Looking for sys/wait.h
-- Looking for sys/wait.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Performing Test HAVE_LINUX_SOCKIOS_H
-- Performing Test HAVE_LINUX_SOCKIOS_H - Success
-- Performing Test HAVE_LINUX_IF_BONDING_H
-- Performing Test HAVE_LINUX_IF_BONDING_H - Success
-- Looking for floorl
-- Looking for floorl - found
-- Looking for getopt_long
-- Looking for getopt_long - found
-- Looking for optreset
-- Looking for optreset - not found
-- Looking for getifaddrs
-- Looking for getifaddrs - found
-- Looking for issetugid
-- Looking for issetugid - not found
-- Looking for mkstemps
-- Looking for mkstemps - found
-- Looking for setresgid
-- Looking for setresgid - found
-- Looking for setresuid
-- Looking for setresuid - found
-- Looking for strptime
-- Looking for strptime - found
-- Performing Test HAVE_STRUCT_SOCKADDR_SA_LEN
-- Performing Test HAVE_STRUCT_SOCKADDR_SA_LEN - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_FLAGS
-- Performing Test HAVE_STRUCT_STAT_ST_FLAGS - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE
-- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE - Success
-- Performing Test HAVE_STRUCT_STAT_ST_BIRTHTIME
-- Performing Test HAVE_STRUCT_STAT_ST_BIRTHTIME - Failed
-- Performing Test HAVE_STRUCT_STAT___ST_BIRTHTIME
-- Performing Test HAVE_STRUCT_STAT___ST_BIRTHTIME - Failed
-- Performing Test HAVE_STRUCT_TM_TM_ZONE
-- Performing Test HAVE_STRUCT_TM_TM_ZONE - Success
-- Looking for tzname
-- Looking for tzname - found
-- Could NOT find ASCIIDOCTOR (missing: ASCIIDOCTOR_EXECUTABLE)
-- Could NOT find XSLTPROC (missing: XSLTPROC_EXECUTABLE)
-- Found python module asn2wrs: /home/amir/Development/wireshark/tools/asn2wrs.py
-- Performing Test C_Wimplicit_fallthrough_VALID
-- Performing Test C_Wimplicit_fallthrough_VALID - Failed
-- Performing Test C_Wsign_compare_VALID
-- Performing Test C_Wsign_compare_VALID - Success
-- Performing Test C_Wunused_parameter_VALID
-- Performing Test C_Wunused_parameter_VALID - Success
-- Checking for c-compiler flag: -msse4.2
-- Performing Test COMPILER_CAN_HANDLE_SSE4_2
-- Performing Test COMPILER_CAN_HANDLE_SSE4_2 - Success
-- Looking for emmintrin.h
-- Looking for emmintrin.h - found
-- Looking for nmmintrin.h
-- Looking for nmmintrin.h - found
-- Found python module make-plugin-reg: /home/amir/Development/wireshark/tools/make-plugin-reg.py
CMake Error at CMakeLists.txt:1510 (add_subdirectory):
The source directory

/home/amir/Development/wireshark/plugins/epan/ethereum

does not contain a CMakeLists.txt file.

-- Checking for 64-bit off_t
-- 64-bit off_t is present with no special flags
-- Checking for fseeko/ftello
-- Checking for fseeko/ftello - present
-- C-Flags: -fvisibility=hidden -fexcess-precision=fast -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wframe-larger-than=32768 -Wc++-compat -Wshadow -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Werror=implicit -Wno-pointer-sign -std=gnu99 -O2 -g -DNDEBUG
-- CXX-Flags: -fexcess-precision=fast -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wframe-larger-than=32768 -O2 -g -DNDEBUG
-- Warnings as errors enabled: -Werror

-- The following OPTIONAL packages have been found:

  • Git
  • GMODULE2
  • Gettext
  • PCAP
  • GNUTLS (required version >= 3.2.0)
  • ZLIB
  • SETCAP
  • DOXYGEN

-- The following REQUIRED packages have been found:

  • GLIB2 (required version >= 2.32.0)
  • GTHREAD2
  • GCRYPT (required version >= 1.4.2)
  • LEX
  • YACC
  • Perl
  • PythonInterp (required version >= 3.4)
  • M
  • Qt5Core
  • Qt5LinguistTools
  • Qt5Network (required version >= 5.5.1)
  • Qt5Gui (required version >= 5.5.1)
  • Qt5Multimedia
  • Qt5PrintSupport
  • Qt5Svg
  • Qt5Widgets
  • POD

-- The following OPTIONAL packages have not been found:

We are not tagged.
version.h has been updated.
-- Configuring incomplete, errors occurred!
See also "/home/amir/Development/build/CMakeFiles/CMakeOutput.log".
See also "/home/amir/Development/build/CMakeFiles/CMakeError.log".

@saarshah
Copy link
Author

I have solved above problem .... but at the end i received following error;

/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c: In function ‘ethereum_discovery_stats_tree_init’:
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1035:67: error: enum conversion when passing argument 4 of ‘stats_tree_create_node’ is invalid in C++ [-Werror=c++-compat]
st_node_packets = stats_tree_create_node(st, st_str_packets, 0, TRUE);
^
In file included from /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:28:0:
/home/amir/Development/wireshark/epan/stats_tree.h:124:19: note: expected ‘stat_node_datatype {aka enum _stat_node_datatype}’ but argument is of type ‘int’
WS_DLL_PUBLIC int stats_tree_create_node(stats_tree *st,
^
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1035:21: error: too few arguments to function ‘stats_tree_create_node’
st_node_packets = stats_tree_create_node(st, st_str_packets, 0, TRUE);
^
In file included from /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:28:0:
/home/amir/Development/wireshark/epan/stats_tree.h:124:19: note: declared here
WS_DLL_PUBLIC int stats_tree_create_node(stats_tree st,
^
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c: In function ‘register_ethereum_stat_trees’:
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1069:30: error: passing argument 5 of ‘stats_tree_register_plugin’ from incompatible pointer type [-Werror=incompatible-pointer-types]
ethereum_discovery_stats_tree_packet, ethereum_discovery_stats_tree_init, NULL);
^
In file included from /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:28:0:
/home/amir/Development/wireshark/epan/stats_tree.h:89:20: note: expected ‘stat_tree_packet_cb {aka enum (
)(struct _stats_tree *, struct _packet_info *, struct epan_dissect *, const void )}’ but argument is of type ‘int ()(stats_tree *, packet_info *, epan_dissect_t *, const void ) {aka int ()(struct _stats_tree *, struct _packet_info *, struct epan_dissect *, const void *)}’
WS_DLL_PUBLIC void stats_tree_register_plugin(const gchar *tapname,
^
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c: At top level:
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1081:37: error: unknown type name ‘srt_gui_init_cb’
srt_gui_init_cb gui_callback, void gui_data) {
^
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c: In function ‘register_ethereum_srt_table’:
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1118:80: error: ‘ethereum_srt_table_init’ undeclared (first use in this function)
register_srt_table(proto_ethereum, "ethereum", 1, ethereum_srt_table_packet, ethereum_srt_table_init, NULL);
^
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1118:80: note: each undeclared identifier is reported only once for each function it appears in
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1118:53: error: passing argument 4 of ‘register_srt_table’ from incompatible pointer type [-Werror=incompatible-pointer-types]
register_srt_table(proto_ethereum, "ethereum", 1, ethereum_srt_table_packet, ethereum_srt_table_init, NULL);
^
In file included from /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:30:0:
/home/amir/Development/wireshark/epan/srt_table.h:66:20: note: expected ‘tap_packet_cb {aka enum (
)(void *, struct _packet_info *, struct epan_dissect *, const void )}’ but argument is of type ‘int ()(void *, packet_info *, epan_dissect_t *, const void ) {aka int ()(void *, struct _packet_info *, struct epan_dissect *, const void )}’
WS_DLL_PUBLIC void register_srt_table(const int proto_id, const char
tap_listener, int max_tables,
^
cc1: all warnings being treated as errors
plugins/epan/ethereum/CMakeFiles/ethereum.dir/build.make:117: recipe for target 'plugins/epan/ethereum/CMakeFiles/ethereum.dir/packet-ethereum-disc.c.o' failed
make[2]: *** [plugins/epan/ethereum/CMakeFiles/ethereum.dir/packet-ethereum-disc.c.o] Error 1
CMakeFiles/Makefile2:12704: recipe for target 'plugins/epan/ethereum/CMakeFiles/ethereum.dir/all' failed
make[1]: *** [plugins/epan/ethereum/CMakeFiles/ethereum.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

h1994st added a commit to h1994st/ethereum-dissectors that referenced this issue Feb 14, 2020
@EGStrain
Copy link

I have solved above problem .... but at the end i received following error;

/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c: In function ‘ethereum_discovery_stats_tree_init’:
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1035:67: error: enum conversion when passing argument 4 of ‘stats_tree_create_node’ is invalid in C++ [-Werror=c++-compat]
st_node_packets = stats_tree_create_node(st, st_str_packets, 0, TRUE);
^
In file included from /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:28:0:
/home/amir/Development/wireshark/epan/stats_tree.h:124:19: note: expected ‘stat_node_datatype {aka enum _stat_node_datatype}’ but argument is of type ‘int’
WS_DLL_PUBLIC int stats_tree_create_node(stats_tree *st,
^
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1035:21: error: too few arguments to function ‘stats_tree_create_node’
st_node_packets = stats_tree_create_node(st, st_str_packets, 0, TRUE);
^
In file included from /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:28:0:
/home/amir/Development/wireshark/epan/stats_tree.h:124:19: note: declared here
WS_DLL_PUBLIC int stats_tree_create_node(stats_tree st, ^ /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c: In function ‘register_ethereum_stat_trees’: /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1069:30: error: passing argument 5 of ‘stats_tree_register_plugin’ from incompatible pointer type [-Werror=incompatible-pointer-types] ethereum_discovery_stats_tree_packet, ethereum_discovery_stats_tree_init, NULL); ^ In file included from /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:28:0: /home/amir/Development/wireshark/epan/stats_tree.h:89:20: note: expected ‘stat_tree_packet_cb {aka enum ()(struct _stats_tree *, struct _packet_info *, struct epan_dissect *, const void )}’ but argument is of type ‘int ()(stats_tree *, packet_info *, epan_dissect_t *, const void ) {aka int ()(struct _stats_tree *, struct _packet_info *, struct epan_dissect *, const void *)}’
WS_DLL_PUBLIC void stats_tree_register_plugin(const gchar *tapname,
^
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c: At top level:
/home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1081:37: error: unknown type name ‘srt_gui_init_cb’
srt_gui_init_cb gui_callback, void gui_data) { ^ /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c: In function ‘register_ethereum_srt_table’: /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1118:80: error: ‘ethereum_srt_table_init’ undeclared (first use in this function) register_srt_table(proto_ethereum, "ethereum", 1, ethereum_srt_table_packet, ethereum_srt_table_init, NULL); ^ /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1118:80: note: each undeclared identifier is reported only once for each function it appears in /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:1118:53: error: passing argument 4 of ‘register_srt_table’ from incompatible pointer type [-Werror=incompatible-pointer-types] register_srt_table(proto_ethereum, "ethereum", 1, ethereum_srt_table_packet, ethereum_srt_table_init, NULL); ^ In file included from /home/amir/Development/wireshark/plugins/epan/ethereum/packet-ethereum-disc.c:30:0: /home/amir/Development/wireshark/epan/srt_table.h:66:20: note: expected ‘tap_packet_cb {aka enum ()(void *, struct _packet_info *, struct epan_dissect *, const void )}’ but argument is of type ‘int ()(void *, packet_info *, epan_dissect_t *, const void ) {aka int ()(void *, struct _packet_info *, struct epan_dissect *, const void )}’ WS_DLL_PUBLIC void register_srt_table(const int proto_id, const char tap_listener, int max_tables,
^
cc1: all warnings being treated as errors
plugins/epan/ethereum/CMakeFiles/ethereum.dir/build.make:117: recipe for target 'plugins/epan/ethereum/CMakeFiles/ethereum.dir/packet-ethereum-disc.c.o' failed
make[2]: *** [plugins/epan/ethereum/CMakeFiles/ethereum.dir/packet-ethereum-disc.c.o] Error 1
CMakeFiles/Makefile2:12704: recipe for target 'plugins/epan/ethereum/CMakeFiles/ethereum.dir/all' failed
make[1]: *** [plugins/epan/ethereum/CMakeFiles/ethereum.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

I am having the same issue, any update on this?

@EGStrain
Copy link

Here is the terminal output:

[ 96%] Building C object plugins/epan/ethereum/ethereum-dissectors/CMakeFiles/ethereum.dir/packet-ethereum-disc.c.o
/home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c: In function ‘ethereum_discovery_stats_tree_init’:
/home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c:1035:67: error: enum conversion when passing argument 4 of ‘stats_tree_create_node’ is invalid in C++ [-Werror=c++-compat]
st_node_packets = stats_tree_create_node(st, st_str_packets, 0, TRUE);
^
In file included from /home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c:28:0:
/home/wireshark/epan/stats_tree.h:124:19: note: expected ‘stat_node_datatype {aka enum _stat_node_datatype}’ but argument is of type ‘int’
WS_DLL_PUBLIC int stats_tree_create_node(stats_tree *st,
^
/home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c:1035:21: error: too few arguments to function ‘stats_tree_create_node’
st_node_packets = stats_tree_create_node(st, st_str_packets, 0, TRUE);
^
In file included from /home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c:28:0:
/home/wireshark/epan/stats_tree.h:124:19: note: declared here
WS_DLL_PUBLIC int stats_tree_create_node(stats_tree st,
^
/home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c: In function ‘register_ethereum_stat_trees’:
/home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c:1069:30: error: passing argument 5 of ‘stats_tree_register_plugin’ from incompatible pointer type [-Werror=incompatible-pointer-types]
ethereum_discovery_stats_tree_packet, ethereum_dis
^
In file included from /home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c:28:0:
/home/wireshark/epan/stats_tree.h:89:20: note: expected ‘stat_tree_packet_cb {aka enum (
)(struct _stats_tree *, struct _packet_info *, struct epan_dissect *, const void )}’ but argument is of type ‘int ()(stats_tree *, packet_info *, epan_dissect_t *, const void ) {aka int ()(struct _stats_tree *, struct _packet_info *, struct epan_dissect *, const void *)}’
WS_DLL_PUBLIC void stats_tree_register_plugin(const gchar *tapname,
^
/home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c: At top level:
/home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c:1081:37: error: unknown type name ‘srt_gui_init_cb’
srt_gui_init_cb gui_callback, void gui_dat
^
/home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c: In function ‘register_ethereum_srt_table’:
/home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c:1118:80: error: ‘ethereum_srt_table_init’ undeclared (first use in this function)
srt_table(proto_ethereum, "ethereum", 1, ethereum_srt_table_packet, ethereum_sr
^
/home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c:1118:80: note: each undeclared identifier is reported only once for each function it appears in
/home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c:1118:53: error: passing argument 4 of ‘register_srt_table’ from incompatible pointer type [-Werror=incompatible-pointer-types]
register_srt_table(proto_ethereum, "ethereum", 1, ethereum_srt_table_packet,
^
In file included from /home/wireshark/plugins/epan/ethereum/ethereum-dissectors/packet-ethereum-disc.c:30:0:
/home/wireshark/epan/srt_table.h:66:20: note: expected ‘tap_packet_cb {aka enum (
)(void *, struct _packet_info *, struct epan_dissect *, const void )}’ but argument is of type ‘int ()(void *, packet_info *, epan_dissect_t *, const void ) {aka int ()(void *, struct _packet_info *, struct epan_dissect *, const void )}’
WS_DLL_PUBLIC void register_srt_table(const int proto_id, const char
tap_liste
^
cc1: all warnings being treated as errors
plugins/epan/ethereum/ethereum-dissectors/CMakeFiles/ethereum.dir/build.make:117: recipe for target 'plugins/epan/ethereum/ethereum-dissectors/CMakeFiles/ethereum.dir/packet-ethereum-disc.c.o' failed
make[2]: *** [plugins/epan/ethereum/ethereum-dissectors/CMakeFiles/ethereum.dir/packet-ethereum-disc.c.o] Error 1
CMakeFiles/Makefile2:12642: recipe for target 'plugins/epan/ethereum/ethereum-dissectors/CMakeFiles/ethereum.dir/all' failed
make[1]: *** [plugins/epan/ethereum/ethereum-dissectors/CMakeFiles/ethereum.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

@raulk
Copy link
Contributor

raulk commented Apr 29, 2020

Hey! I'm no longer maintaining this repo (I no longer work at ConsenSys). Maybe someone from the PegaSys team there could help? cc @rojotek @mbaxter @ajsutton

sambacha pushed a commit to backbonecabal/ethereum-dissectors that referenced this issue Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants