Hello,
i want to install Wireshark 3.0.1 on CentOS 6.10.
I use :
-gcc 4.8.5
-glibc 2.17
I had installed all the dependencies and the cmake3 command is OK :
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/local/bin/gcc
-- Check for working C compiler: /usr/local/bin/gcc -- 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/local/bin/g++
-- Check for working CXX compiler: /usr/local/bin/g++ -- 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.6.1
-- CMake build type: RelWithDebInfo
-- V: 3.0.1, MaV: 3, MiV: 0, 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_Wno_pointer_sign_VALID
-- Performing Test C_Wno_pointer_sign_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_missing_braces_VALID
-- Performing Test C_Wno_missing_braces_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 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
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
-- Checking for one of the modules 'glib-2.0>=2.32.0'
-- Found GLIB2: /usr/lib64/libglib-2.0.so
-- Checking for module 'gmodule-2.0'
-- Found gmodule-2.0, version 2.28.8
-- Found GMODULE2: /usr/lib64/libgmodule-2.0.so
-- Checking for module 'gthread-2.0'
-- Found gthread-2.0, version 2.28.8
-- Found GTHREAD2: /usr/lib64/libgthread-2.0.so
-- Found GCRYPT: /usr/lib64/libgcrypt.so (found suitable version "1.4.5", minimum required is "1.4.2")
-- Found LEX: /usr/bin/flex
-- Found YACC: /usr/bin/yacc
-- Found Perl: /usr/bin/perl (found version "5.10.1")
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.4", minimum required is "3.4")
-- Found Gettext: /usr/bin/msgmerge (found version "0.17")
-- Found M: m
-- Could NOT find LIBSSH: Found unsuitable version "0.5.5", but required is at least "0.6" (found /usr/lib64/libssh.so)
-- Found PCAP: /usr/lib64/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'
-- 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 CARES (missing: CARES_LIBRARY CARES_INCLUDE_DIR) (Required is at least version "1.5.0")
-- Checking for one of the modules 'zlib'
-- Looking for inflate
-- Looking for inflate - found
-- Looking for inflatePrime
-- Looking for inflatePrime - found
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
-- 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 '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: /usr/sbin/setcap
-- Found POD: /usr/bin/pod2man
-- Could NOT find DOXYGEN (missing: DOXYGEN_EXECUTABLE)
-- 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_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)
-- Found XSLTPROC: /usr/bin/xsltproc
-- Found python module asn2wrs: /TMP/WIRESHARK/data/wireshark-3.0.1/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: /TMP/WIRESHARK/data/wireshark-3.0.1/tools/make-plugin-reg.py
-- 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 -Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wjump-misses-init -Werror=implicit -Wno-missing-braces -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:
* GMODULE2
* Gettext
* PCAP
* ZLIB
* PkgConfig
* SETCAP
* POD
* XSLTPROC
-- The following REQUIRED packages have been found:
* GLIB2
* GTHREAD2
* GCRYPT (required version >= 1.4.2)
* LEX
* YACC
* Perl
* PythonInterp (required version >= 3.4)
* M
* Qt5Core
* Qt5LinguistTools
* Qt5Network (required version >= 5.6.1)
* Qt5Gui (required version >= 5.6.1)
* Qt5Multimedia
* Qt5PrintSupport
* Qt5Svg
* Qt5Widgets
-- The following OPTIONAL packages have not been found:
* Git
* LIBSSH (required version >= 0.6) , Library for implementing SSH clients , <https://www.libssh.org/>
extcap remote SSH interfaces (sshdump, ciscodump)
* Systemd , System and Service Manager (libraries) , <https://freedesktop.org/wiki/Software/systemd/>
Support for systemd journal extcap interface (sdjournal)
* MaxMindDB , C library for the MaxMind DB file format , <https://github.com/maxmind/libmaxminddb>
Support for GeoIP lookup
* SMI
* GNUTLS (required version >= 3.2.0)
* KERBEROS
* CARES (required version >= 1.5.0) , Library for asynchronous DNS requests , <https://c-ares.haxx.se/>
DNS name resolution for captures
* LZ4 , LZ4 is lossless compression algorithm used in some protocol (CQL...) , <http://www.lz4.org>
LZ4 decompression in CQL and Kafka dissectors
* SNAPPY , A fast compressor/decompressor from Google , <http://google.github.io/snappy/>
Snappy decompression in CQL and Kafka dissectors
* NGHTTP2 , HTTP/2 C library and tools , <https://nghttp2.org>
Header decompression in HTTP2
* LUA (required version >= 5.1)
* NL , Libraries for using the Netlink protocol on Linux , <https://www.infradead.org/~tgr/libnl/>
Support for managing wireless 802.11 interfaces
* SBC , Bluetooth low-complexity, subband codec (SBC) decoder , <https://git.kernel.org/pub/scm/bluetooth/sbc.git>
Support for playing SBC codec in RTP player
* SPANDSP , a library of many DSP functions for telephony , <http://www.soft-switch.org/>
Support for G.722 and G.726 codecs in RTP player
* BCG729 , G.729 decoder , <https://www.linphone.org/technical-corner/bcg729/overview>
Support for G.729 codec in RTP player
* LibXml2
* CAP
* DOXYGEN
* Asciidoctor (required version >= 1.5)
-- Configuring done
-- Generating done
-- Build files have been written to: /TMP/WIRESHARK/data/wireshark-3.0.1/build
But the make command returns errors :
[ 0%] Building C object CMakeFiles/shark_common.dir/extcap.c.o
/TMP/WIRESHARK/data/wireshark-3.0.1/extcap.c:99:21: erreur: field ‘cond’ has incomplete type
GCond cond;
^
/TMP/WIRESHARK/data/wireshark-3.0.1/extcap.c:100:21: erreur: field ‘data_mutex’ has incomplete type
GMutex data_mutex;
^
/TMP/WIRESHARK/data/wireshark-3.0.1/extcap.c: In function ‘thread_pool_push’:
/TMP/WIRESHARK/data/wireshark-3.0.1/extcap.c:139:5: erreur: valeur void n'a pas été ignorée comme elle aurait dû l'être
return g_thread_pool_push(pool->pool, data, error);
^
/TMP/WIRESHARK/data/wireshark-3.0.1/extcap.c: In function ‘thread_pool_wait’:
/TMP/WIRESHARK/data/wireshark-3.0.1/extcap.c:149:5: erreur: implicit declaration of function ‘g_cond_clear’ [-Werror=implicit-function-declaration]
g_cond_clear(&pool->cond);
^
/TMP/WIRESHARK/data/wireshark-3.0.1/extcap.c:151:5: erreur: implicit declaration of function ‘g_mutex_clear’ [-Werror=implicit-function-declaration]
g_mutex_clear(&pool->data_mutex);
^
/TMP/WIRESHARK/data/wireshark-3.0.1/extcap.c: In function ‘extcap_run_all’:
/TMP/WIRESHARK/data/wireshark-3.0.1/extcap.c:448:5: erreur: implicit declaration of function ‘g_cond_init’ [-Werror=implicit-function-declaration]
g_cond_init(&pool.cond);
^
/TMP/WIRESHARK/data/wireshark-3.0.1/extcap.c:449:5: erreur: implicit declaration of function ‘g_mutex_init’ [-Werror=implicit-function-declaration]
g_mutex_init(&pool.data_mutex);
^
/TMP/WIRESHARK/data/wireshark-3.0.1/extcap.c: In function ‘thread_pool_push’:
/TMP/WIRESHARK/data/wireshark-3.0.1/extcap.c:140:1: attention : contrôle a atteint la fin non void de la fonction [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
make[2]: *** [CMakeFiles/shark_common.dir/extcap.c.o] Erreur 1
make[1]: *** [CMakeFiles/shark_common.dir/all] Erreur 2
make: *** [all] Erreur 2
I had successfully done the same thing on CentOS 7 with the same gcc version, glibc and wireshark.
What's the problem on CentOS 6.
Thanks in advance for any help or suggestions