[问题描述]: wireshark-cli软件包提供的tshark工具报错 [root@iZbp10c42cb8dvhjyxifgmZ ~]# tshark -c 50 tshark: symbol lookup error: /lib64/libwsutil.so.14: undefined symbol: g_string_free_and_steal [环境信息]: 内核信息: [root@iZbp10c42cb8dvhjyxifgmZ ~]# uname -r 5.10.134-12.1.an23.aarch64 操作系统信息: [root@iZbp10c42cb8dvhjyxifgmZ ~]# cat /etc/os-release NAME="Anolis OS" VERSION="23" ID="anolis" VERSION_ID="23" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/" 软件包信息: [root@iZbp10c42cb8dvhjyxifgmZ ~]# yum info wireshark-cli Failed to set locale, defaulting to C.UTF-8 Last metadata expiration check: 3:20:57 ago on Thu Mar 30 10:19:47 2023. Installed Packages Name : wireshark-cli Epoch : 1 Version : 4.0.4 Release : 1.an23 Architecture : aarch64 Size : 129 M Source : wireshark-4.0.4-1.an23.src.rpm Repository : @System From repo : AppStream-Test Summary : Network traffic analyzer URL : http://www.wireshark.org/ License : GPL+ Description : This package contains command-line utilities, plugins, and documentation for : Wireshark. [问题发生概率]:必现 [复现步骤]: yum install wireshark-cli tshark -c 50
$git show 58dd3d3965 commit 58dd3d39655ebae5c71cc62df4f27eac7c3a6d78 Author: Matthias Clasen <mclasen@redhat.com> Date: Thu Jan 19 14:47:11 2023 +0000 Add g_string_free_and_steal $git tag --contains 58dd3d3965 2.75.3 2.75.4 2.76.0 2.76.1 当前Anolis OS 23上glib2版本最新版本为2.76.1。 升级glib2至最新版本应该可以解决问题。 当然wireshark需要写好版本依赖。
wireshark 的源代码中找不到 g_string_free_and_steal 的调用,源头不在 wireshark。