Closed Yepadee closed 3 years ago
Could you provide full log?
-- Generating build using CMake 3.17.5 -- LTO/LPO is not enabled -- CMake build type: RelWithDebInfo -- V: 3.4.7, MaV: 3, MiV: 4, PL: 7, EV: . -- Linker flags: -Wl,--as-needed -- 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' -- Could NOT find Systemd (missing: SYSTEMD_LIBRARY SYSTEMD_INCLUDE_DIR) (found version "") -- 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' -- Could NOT find GNUTLS: Found unsuitable version "", but required is at least "3.2.0" (found GNUTLS_LIBRARY-NOTFOUND) -- Checking for one of the modules 'krb5;mit-krb5;heimdal-krb5' -- Could NOT find KERBEROS (missing: KERBEROS_LIBRARY KERBEROS_INCLUDE_DIR) -- Could NOT find Minizip (missing: MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR) (found version "") -- 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) -- 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_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) -- Could NOT find BCG729 (missing: BCG729_LIBRARY BCG729_INCLUDE_DIR) -- Checking for one of the modules 'libilbc' -- Could NOT find ILBC (missing: ILBC_LIBRARY ILBC_INCLUDE_DIR) -- Checking for one of the modules 'opus' -- Could NOT find OPUS (missing: OPUS_LIBRARY OPUS_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) -- Could NOT find Asciidoctor (missing: ASCIIDOCTOR_EXECUTABLE) (Required is at least version "1.5") -- Could NOT find DOXYGEN (missing: DOXYGEN_EXECUTABLE) -- Could NOT find SpeexDSP (missing: SPEEXDSP_LIBRARY SPEEXDSP_INCLUDE_DIR) (found version "") -- Could NOT find Asciidoctor (missing: ASCIIDOCTOR_EXECUTABLE) (Required is at least version "1.5") -- SSE4.2 compiler flag: -msse4.2 -- 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-missing-braces -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 disabled -- The following OPTIONAL packages have been found:
-- The following REQUIRED packages have been found:
-- The following OPTIONAL packages have not been found:
CMake Warning at CMakeLists.txt:1753 (message): Libgcrypt version 1.6.0 or newer is strongly recommended for improved decryption support, found 1.5.3
We are on tag v3.4.7. version.h unchanged. -- Configuring done m-- Generating done -- Build files have been written to: /home/james/Documents/wireshark/wireshark-3.4.7/build [james@centos7 build]$ make plugins [ 2%] Built target wsutil [ 2%] Built target l16mono We are on tag v3.4.7. version.h unchanged. [ 2%] Built target version [ 2%] Built target version_info [ 2%] Built target crypt [ 2%] Built target lemon [ 4%] Built target dfilter [ 4%] Built target dissectors-corba [ 81%] Built target dissectors [ 81%] Built target ftypes [ 81%] Built target wmem [ 85%] Built target wiretap [ 91%] Built target epan [ 91%] Generating ../../../../plugins/epan/toyasn1/packet-toyasn1.c
[ 91%] Generating plugin.c
Traceback (most recent call last):
File "/home/jamesDocuments/wireshark/wireshark-3.4.7/tools/make-plugin-reg.py", line 76, in
[james@centos7 build]$ cmake .. -DCUSTOM_PLUGIN_SRC_DIR="plugins/epan/toyasn1" -- Generating build using CMake 3.17.5 -- LTO/LPO is not enabled -- CMake build type: RelWithDebInfo -- V: 3.4.7, MaV: 3, MiV: 4, PL: 7, EV: . -- Linker flags: -Wl,--as-needed -- Checking for one of the modules 'libpcap' -- SSE4.2 compiler flag: -msse4.2 -- 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-missing-braces -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 disabled -- The following OPTIONAL packages have been found:
-- The following REQUIRED packages have been found:
CMake Warning at CMakeLists.txt:1752 (message): Libgcrypt version 1.6.0 or newer is strongly recommended for improved decryption support, found 1.5.3
We are on tag v3.4.7. version.h unchanged. -- Configuring done -- Generating done -- Build files have been written to: /home/james/Documents/wireshark/wireshark-3.4.7/build [james@centos7 build]$ make plugins [ 2%] Built target wsutil [ 2%] Built target sbc We are on tag v3.4.7. version.h unchanged. [ 2%] Built target version [ 4%] Built target version_info [ 4%] Built target crypt [ 4%] Built target lemon [ 5%] Built target dfilter [ 5%] Built target dissectors-corba [ 81%] Built target dissectors [ 83%] Built target ftypes [ 83%] Built target wmem [ 85%] Built target wslua [ 90%] Built target wiretap [ 95%] Built target epan [ 95%] Built target ethercat [ 95%] Built target gryphon [ 95%] Built target irda [ 95%] Built target mate [ 95%] Built target opcua [ 97%] Built target profinet [ 97%] Built target stats_tree [ 97%] Built target transum [ 97%] Built target unistim [ 98%] Built target wimax [ 98%] Built target wimaxasncp [100%] Built target wimaxmacphy [100%] Built target usbdump [100%] Built target g711 [100%] Built target l16mono [100%] Generating ../../../../plugins/epan/toyasn1/packet-toyasn1.c
[100%] Generating plugin.c
Traceback (most recent call last):
File "/home/james/Documents/wireshark/wireshark-3.4.7/tools/make-plugin-reg.py", line 76, in
I installed the missing libs it was complaining about however it still complains that "packet-toyasn1.c" is missing. There appears to be a packet-toyasn1-template.c which I assume is used to generate this, so perhaps it's not being generated for some reason?
I think I may have sorted the issue, Apparently I also needed to run "make generate_dissector-toyasn1" before running make. Do you know how I can use this dissector, since it does not appear under "decode as"?
Found the dissector appears under decode as once setting a port in edit -> preferences -> protocols -> toyasn1 :)
Hi there, I've come across your repository in my search for an up-to-date method of building an asn1 packet dissector plugin for Wireshark, since like you mention, the current instructions are nonsense since they are over a decade out of date.
I've cloned this repository into the plugins folder, added /plugins/epan/toyasn1 to the PLUGIN_SRC_DIRS in the CMakeLists.txt, however when I run "make plugins" in the build folder it complains that it cannot find packet-toyasn1.c. Do you know why this file is not being generated, and what I need to do so it can be? (Tested on wireshark 3.4.7 and 3.1.0).
Many thanks - James