termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.33k stars 3.07k forks source link

[Bug] Midnight Commander (mc) is not working - CANNOT LINK EXECUTABLE "mc": cannot locate symbol "g_string_free_and_steal" #17834

Closed AntonSamokat closed 1 year ago

AntonSamokat commented 1 year ago

Problem description

Running mc produces the following error:

$ mc
CANNOT LINK EXECUTABLE "mc": cannot locate symbol "g_string_free_and_steal" referenced by "/data/data/com.termux/files/usr/bin/mc"...

What steps will reproduce the bug?

pkg install mc mc

What is the expected behavior?

Normal start of the package

System information

Termux version from github: termux-app_v0.118.0+github-debug_armeabi-v7a.apk

termux-info:

Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
arm
Subscribed repositories:
# sources.list
deb https://termux.librehat.com/apt/termux-main stable main
# root-repo (sources.list.d/root.list)
deb https://termux.librehat.com/apt/termux-root root stable
Updatable packages:
android-tools/stable 34.0.4 arm [upgradable from: 31.0.3p1-6]
apt/stable 2.7.3 arm [upgradable from: 2.5.2]
bash/stable 5.2.15-1 arm [upgradable from: 5.1.16-1]
ca-certificates/stable 1:2023.08.22 all [upgradable from: 1:2022.07.19]
clang/stable 16.0.6-2 arm [upgradable from: 14.0.6-2]
command-not-found/stable 2.3.0-1 arm [upgradable from: 2.0-1]
coreutils/stable 9.4 arm [upgradable from: 9.1]
curl/stable 8.3.0 arm [upgradable from: 7.84.0]
dash/stable 0.5.12 arm [upgradable from: 0.5.11.5-1]
debianutils/stable 5.8 arm [upgradable from: 5.7]
dialog/stable 1.3-20230209-0 arm [upgradable from: 1.3-20220526-0]
diffutils/stable 3.10 arm [upgradable from: 3.8]
dos2unix/stable 7.5.1 arm [upgradable from: 7.4.3]
dpkg/stable 1.21.22 arm [upgradable from: 1.21.9]
ed/stable 1.19 arm [upgradable from: 1.18]
ffmpeg/stable 6.0-6 arm [upgradable from: 5.1]
findutils/stable 4.9.0-2 arm [upgradable from: 4.9.0-1]
fontconfig/stable 2.14.2-2 arm [upgradable from: 2.14.0]
freetype/stable 2.13.1 arm [upgradable from: 2.12.1]
fribidi/stable 1.0.13 arm [upgradable from: 1.0.12]
gawk/stable 5.2.2 arm [upgradable from: 5.1.1-1]
glib/stable 2.76.3 arm [upgradable from: 2.72.2]
googletest/stable 1.14.0 arm [upgradable from: 1.12.1-2]
gpgv/stable 2.4.3 arm [upgradable from: 2.3.7]
grep/stable 3.11 arm [upgradable from: 3.7-2]
gzip/stable 1.13 arm [upgradable from: 1.12]
harfbuzz/stable 7.3.0 arm [upgradable from: 5.1.0-1]
inetutils/stable 2.4-1 arm [upgradable from: 2.3]
krb5/stable 1.21 arm [upgradable from: 1.20.1]
ldns/stable 1.8.3-2 arm [upgradable from: 1.8.3-1]
less/stable 633-1 arm [upgradable from: 590]
libandroid-support/stable 28-3 arm [upgradable from: 28-2]
libaom/stable 3.6.1 arm [upgradable from: 3.4.0-1]
libass/stable 0.17.1 arm [upgradable from: 0.16.0]
libassuan/stable 2.5.6 arm [upgradable from: 2.5.5]
libbluray/stable 1.3.4-1 arm [upgradable from: 1.3.1]
libc++/stable 25c arm [upgradable from: 25-1]
libcompiler-rt/stable 16.0.6-2 arm [upgradable from: 14.0.6-2]
libcurl/stable 8.3.0 arm [upgradable from: 7.84.0]
libdav1d/stable 1.2.1 arm [upgradable from: 1.0.0]
libevent/stable 2.1.12-2 arm [upgradable from: 2.1.12-1]
libexpat/stable 2.5.0-1 arm [upgradable from: 2.4.8]
libffi/stable 3.4.4-1 arm [upgradable from: 3.4.2]
libgcrypt/stable 1.10.2 arm [upgradable from: 1.10.1]
libgmp/stable 6.3.0 arm [upgradable from: 6.2.1-2]
libgnutls/stable 3.8.0-1 arm [upgradable from: 3.7.6]
libgpg-error/stable 1.47 arm [upgradable from: 1.45]
libiconv/stable 1.17 arm [upgradable from: 1.16-3]
libidn2/stable 2.3.4 arm [upgradable from: 2.3.2]
libjpeg-turbo/stable 3.0.0 arm [upgradable from: 2.1.3]
libllvm/stable 16.0.6-2 arm [upgradable from: 14.0.6-2]
liblz4/stable 1.9.4 arm [upgradable from: 1.9.3-1]
liblzma/stable 5.4.4 arm [upgradable from: 5.2.5-1]
libmd/stable 1.1.0 arm [upgradable from: 1.0.4]
libmpfr/stable 4.2.0-p9-0 arm [upgradable from: 4.1.0-1]
libnettle/stable 3.9.1 arm [upgradable from: 3.7.3]
libnghttp2/stable 1.56.0 arm [upgradable from: 1.48.0]
libopus/stable 1.4 arm [upgradable from: 1.3.1-5]
libpng/stable 1.6.40 arm [upgradable from: 1.6.37-3]
libprotobuf/stable 2:22.4 arm [upgradable from: 2:3.21.5]
librav1e/stable 0.6.6 arm [upgradable from: 0.5.1]
libresolv-wrapper/stable 1.1.7-4 arm [upgradable from: 1.1.7-3]
libsoxr/stable 0.1.3-4 arm [upgradable from: 0.1.3-3]
libsqlite/stable 3.43.1 arm [upgradable from: 3.38.5]
libssh2/stable 1.11.0 arm [upgradable from: 1.10.0-2]
libtiff/stable 4.5.1-1 arm [upgradable from: 4.3.0-3]
libtirpc/stable 1.3.3 arm [upgradable from: 1.3.2-1]
libunistring/stable 1.1 arm [upgradable from: 1.0]
libuuid/stable 2.39.2 arm [upgradable from: 1.0.3-5]
libvidstab/stable 1.1.1 arm [upgradable from: 1.1.0-2]
libvpx/stable 1:1.13.0 arm [upgradable from: 1:1.12.0-1]
libwebp/stable 1.3.1-2 arm [upgradable from: 1.2.4]
libx264/stable 1:0.164.3101 arm [upgradable from: 1:0.161.3049-2]
libx265/stable 3.5-p20230222-0 arm [upgradable from: 3.5-4]
libxml2/stable 2.11.4-2 arm [upgradable from: 2.9.14]
lld/stable 16.0.6-2 arm [upgradable from: 14.0.6-2]
llvm/stable 16.0.6-2 arm [upgradable from: 14.0.6-2]
lsof/stable 4.98.0 arm [upgradable from: 4.95.0-1]
make/stable 4.4.1 arm [upgradable from: 4.3-2]
man/stable 1.14.6-1 arm [upgradable from: 1.14.5-3]
nano/stable 7.2 arm [upgradable from: 6.3]
ncurses-ui-libs/stable 6.4.20230527-1 arm [upgradable from: 6.3-2]
ncurses/stable 6.4.20230527-1 arm [upgradable from: 6.3-2]
ndk-sysroot/stable 25c arm [upgradable from: 25]
netcat-openbsd/stable 1.219-1-0 arm [upgradable from: 1.218-5-0]
openssh-sftp-server/stable 9.4p1 arm [upgradable from: 9.3p2]
openssh/stable 9.4p1 arm [upgradable from: 9.1p1]
openssl-tool/stable 1:3.1.2 arm [upgradable from: 1:3.0.7]
openssl/stable 1:3.1.2 arm [upgradable from: 1:3.0.7]
pcre2/stable 10.42 arm [upgradable from: 10.40]
psmisc/stable 23.6-1 arm [upgradable from: 23.5]
python/stable 3.11.5 arm [upgradable from: 3.10.6]
readline/stable 8.2.1 arm [upgradable from: 8.1.1]
sed/stable 4.9-1 arm [upgradable from: 4.8-2]
tar/stable 1.35 arm [upgradable from: 1.34]
termux-am/stable 0.6.0 all [upgradable from: 0.4]
termux-keyring/stable 3.11 all [upgradable from: 3.8-1]
termux-tools/stable 1.39.0 all [upgradable from: 1.26.0-1]
unbound/stable 1.17.1-2 arm [upgradable from: 1.15.0-1]
util-linux/stable 2.39.2 arm [upgradable from: 2.38]
xxhash/stable 0.8.2 arm [upgradable from: 0.8.1]
xz-utils/stable 5.4.4 arm [upgradable from: 5.2.5-1]
zlib/stable 1.3 arm [upgradable from: 1.2.12]
zstd/stable 1.5.5-1 arm [upgradable from: 1.5.2-2]
termux-tools version:
1.26.0
Android version:
9
Kernel build information:
Linux localhost 4.9.112-perf+ #1 SMP PREEMPT Tue Apr 7 01:17:38 CST 2020 armv7l Android
Device manufacturer:
Xiaomi
Device model:
Redmi 7A

apt show -a mc:

Package: mc
Version: 4.8.29-1
Maintainer: @termux
Installed-Size: 2744 kB
Depends: glib, libandroid-support, libssh2, ncurses
Homepage: https://www.midnight-commander.org/
Download-Size: 573 kB
APT-Manual-Installed: yes
APT-Sources: https://termux.librehat.com/apt/termux-main stable/main arm Packages
Description: Midnight Commander - a powerful file manager

pkg show -a glib:

Package: glib
Version: 2.76.3
Maintainer: @termux
Installed-Size: 6107 kB
Depends: libandroid-support, libffi, libiconv, pcre2, resolv-conf, zlib
Breaks: glib-dev
Replaces: glib-dev
Homepage: https://developer.gnome.org/glib/
Download-Size: 1181 kB
APT-Sources: https://termux.librehat.com/apt/termux-main stable/main arm Packages
Description: Library providing core building blocks for libraries and applications written in C

Package: glib
Version: 2.72.2
Status: install ok installed
Maintainer: @termux
Installed-Size: 5681 kB
Depends: libffi, libiconv, pcre, libandroid-support, zlib
Breaks: glib-dev
Replaces: glib-dev
Homepage: https://developer.gnome.org/glib/
Download-Size: unknown
APT-Manual-Installed: no
APT-Sources: /data/data/com.termux/files/usr/var/lib/dpkg/status
Description: Library providing core building blocks for libraries and applications written in C

pkg list-installed:

Listing... Done
android-tools/now 31.0.3p1-6 arm [installed,upgradable to: 34.0.4]
apt/now 2.5.2 arm [installed,upgradable to: 2.7.3]
bash-completion/stable,now 2.11-2 all [installed,automatic]
bash/now 5.1.16-1 arm [installed,upgradable to: 5.2.15-1]
brotli/stable,now 1.0.9-1 arm [installed,automatic]
bzip2/stable,now 1.0.8-6 arm [installed]
ca-certificates/now 1:2022.07.19 all [installed,upgradable to: 1:2023.08.22]
clang/now 14.0.6-2 arm [installed,upgradable to: 16.0.6-2]
command-not-found/now 2.0-1 arm [installed,upgradable to: 2.3.0-1]
coreutils/now 9.1 arm [installed,upgradable to: 9.3]
curl/now 7.84.0 arm [installed,upgradable to: 8.2.1]
dash/now 0.5.11.5-1 arm [installed,upgradable to: 0.5.12]
debianutils/now 5.7 arm [installed,upgradable to: 5.8]
dialog/now 1.3-20220526-0 arm [installed,upgradable to: 1.3-20230209-0]
diffutils/now 3.8 arm [installed,upgradable to: 3.10]
dos2unix/now 7.4.3 arm [installed,upgradable to: 7.5.1]
dpkg/now 1.21.9 arm [installed,upgradable to: 1.21.22]
ed/now 1.18 arm [installed,upgradable to: 1.19]
ffmpeg/now 5.1 arm [installed,upgradable to: 6.0-6]
findutils/now 4.9.0-1 arm [installed,upgradable to: 4.9.0-2]
fontconfig/now 2.14.0 arm [installed,upgradable to: 2.14.2-2]
freetype/now 2.12.1 arm [installed,upgradable to: 2.13.1]
fribidi/now 1.0.12 arm [installed,upgradable to: 1.0.13]
game-music-emu/stable,now 0.6.3-1 arm [installed,automatic]
gawk/now 5.1.1-1 arm [installed,upgradable to: 5.2.2]
gdbm/stable,now 1.23 arm [installed,automatic]
giflib/stable,now 5.2.1-2 arm [installed,automatic]
glib/now 2.72.2 arm [installed,upgradable to: 2.76.3]
googletest/now 1.12.1-2 arm [installed,upgradable to: 1.14.0]
gpgv/now 2.3.7 arm [installed,upgradable to: 2.4.3]
grep/now 3.7-2 arm [installed,upgradable to: 3.11]
gzip/now 1.12 arm [installed,upgradable to: 1.13]
harfbuzz/now 5.1.0-1 arm [installed,upgradable to: 7.3.0]
inetutils/now 2.3 arm [installed,upgradable to: 2.4-1]
krb5/now 1.20.1 arm [installed,upgradable to: 1.21]
ldns/now 1.8.3-1 arm [installed,upgradable to: 1.8.3-2]
less/now 590 arm [installed,upgradable to: 633-1]
libandroid-glob/stable,now 0.6-2 arm [installed]
libandroid-posix-semaphore/stable,now 0.1-3 arm [installed,automatic]
libandroid-support/now 28-2 arm [installed,upgradable to: 28-3]
libaom/now 3.4.0-1 arm [installed,upgradable to: 3.6.1]
libass/now 0.16.0 arm [installed,upgradable to: 0.17.1]
libassuan/now 2.5.5 arm [installed,upgradable to: 2.5.6]
libbluray/now 1.3.1 arm [installed,upgradable to: 1.3.4-1]
libbsd/stable,now 0.11.7 arm [installed,automatic]
libbz2/stable,now 1.0.8-6 arm [installed]
libc++/now 25-1 arm [installed,upgradable to: 25c]
libcap-ng/stable,now 2:0.8.3 arm [installed]
libcompiler-rt/now 14.0.6-2 arm [installed,upgradable to: 16.0.6-2]
libcrypt/stable,now 0.2-5 arm [installed]
libcurl/now 7.84.0 arm [installed,upgradable to: 8.2.1]
libdav1d/now 1.0.0 arm [installed,upgradable to: 1.2.1]
libdb/stable,now 18.1.40-4 arm [installed,automatic]
libedit/stable,now 20221030-3.1-0 arm [installed,automatic]
libevent/now 2.1.12-1 arm [installed,upgradable to: 2.1.12-2]
libexpat/now 2.4.8 arm [installed,upgradable to: 2.5.0-1]
libffi/now 3.4.2 arm [installed,upgradable to: 3.4.4-1]
libgcrypt/now 1.10.1 arm [installed,upgradable to: 1.10.2]
libgmp/now 6.2.1-2 arm [installed,upgradable to: 6.3.0]
libgnutls/now 3.7.6 arm [installed,upgradable to: 3.8.0-1]
libgpg-error/now 1.45 arm [installed,upgradable to: 1.47]
libgraphite/stable,now 1.3.14-2 arm [installed,automatic]
libiconv/now 1.16-3 arm [installed,upgradable to: 1.17]
libidn2/now 2.3.2 arm [installed,upgradable to: 2.3.4]
libjpeg-turbo/now 2.1.3 arm [installed,upgradable to: 3.0.0]
libllvm/now 14.0.6-2 arm [installed,upgradable to: 16.0.6-2]
liblz4/now 1.9.3-1 arm [installed,upgradable to: 1.9.4]
liblzma/now 5.2.5-1 arm [installed,upgradable to: 5.4.4]
libmd/now 1.0.4 arm [installed,upgradable to: 1.1.0]
libmp3lame/stable,now 3.100-4 arm [installed,automatic]
libmpfr/now 4.1.0-1 arm [installed,upgradable to: 4.2.0-p9-0]
libnettle/now 3.7.3 arm [installed,upgradable to: 3.9.1]
libnghttp2/now 1.48.0 arm [installed,upgradable to: 1.56.0]
libnpth/stable,now 1.6-1 arm [installed]
libogg/stable,now 1.3.5 arm [installed,automatic]
libopus/now 1.3.1-5 arm [installed,upgradable to: 1.4]
libpng/now 1.6.37-3 arm [installed,upgradable to: 1.6.40]
libpopt/stable,now 1.19 arm [installed,automatic]
libprotobuf/now 2:3.21.5 arm [installed,upgradable to: 2:22.4]
librav1e/now 0.5.1 arm [installed,upgradable to: 0.6.6]
libresolv-wrapper/now 1.1.7-3 arm [installed,upgradable to: 1.1.7-4]
libsoxr/now 0.1.3-3 arm [installed,upgradable to: 0.1.3-4]
libsqlite/now 3.38.5 arm [installed,upgradable to: 3.42.0]
libssh2/now 1.10.0-2 arm [installed,upgradable to: 1.11.0]
libtheora/stable,now 1.1.1-1 arm [installed,automatic]
libtiff/now 4.3.0-3 arm [installed,upgradable to: 4.5.1-1]
libtirpc/now 1.3.2-1 arm [installed,upgradable to: 1.3.3]
libudfread/stable,now 1.1.2 arm [installed,automatic]
libunistring/now 1.0 arm [installed,upgradable to: 1.1]
libusb/stable,now 1.0.26-1 arm [installed,automatic]
libuuid/now 1.0.3-5 arm [installed,upgradable to: 2.39.2]
libvidstab/now 1.1.0-2 arm [installed,upgradable to: 1.1.1]
libvorbis/stable,now 1.3.7-1 arm [installed,automatic]
libvpx/now 1:1.12.0-1 arm [installed,upgradable to: 1:1.13.0]
libwebp/now 1.2.4 arm [installed,upgradable to: 1.3.1-2]
libx264/now 1:0.161.3049-2 arm [installed,upgradable to: 1:0.164.3101]
libx265/now 3.5-4 arm [installed,upgradable to: 3.5-p20230222-0]
libxml2/now 2.9.14 arm [installed,upgradable to: 2.11.4-2]
lld/now 14.0.6-2 arm [installed,upgradable to: 16.0.6-2]
llvm/now 14.0.6-2 arm [installed,upgradable to: 16.0.6-2]
lsof/now 4.95.0-1 arm [installed,upgradable to: 4.98.0]
make/now 4.3-2 arm [installed,upgradable to: 4.4.1]
man/now 1.14.5-3 arm [installed,upgradable to: 1.14.6-1]
mc/stable,now 4.8.29-1 arm [installed]
nano/now 6.3 arm [installed,upgradable to: 7.2]
ncurses-ui-libs/now 6.3-2 arm [installed,upgradable to: 6.4.20230527-1]
ncurses/now 6.3-2 arm [installed,upgradable to: 6.4.20230527-1]
ndk-sysroot/now 25 arm [installed,upgradable to: 25c]
net-tools/stable,now 2.10.0 arm [installed]
netcat-openbsd/now 1.218-5-0 arm [installed,upgradable to: 1.219-1-0]
openssh-sftp-server/now 9.3p2 arm [installed,upgradable to: 9.4p1]
openssh/now 9.1p1 arm [installed,upgradable to: 9.4p1]
openssl-tool/now 1:3.0.7 arm [installed,upgradable to: 1:3.1.2]
openssl/now 1:3.0.7 arm [installed,upgradable to: 1:3.1.2]
patch/stable,now 2.7.6-3 arm [installed]
pcre2/now 10.40 arm [installed,upgradable to: 10.42]
pcre/stable,now 8.45-1 arm [installed]
pkg-config/stable,now 0.29.2-2 arm [installed,automatic]
procps/stable,now 3.3.17-2 arm [installed]
psmisc/now 23.5 arm [installed,upgradable to: 23.6-1]
pv/stable,now 1.6.20 arm [installed]
python/now 3.10.6 arm [installed,upgradable to: 3.11.5]
readline/now 8.1.1 arm [installed,upgradable to: 8.2.1]
root-repo/stable,now 2.4-2 all [installed]
rsync/stable,now 3.2.7 arm [installed]
sed/now 4.8-2 arm [installed,upgradable to: 4.9-1]
sshpass/stable,now 1.10 arm [installed]
tar/now 1.34 arm [installed,upgradable to: 1.35]
termux-am-socket/stable,now 1.5.0 arm [installed]
termux-am/now 0.4 all [installed,upgradable to: 0.6.0]
termux-api/stable,now 0.57 arm [installed]
termux-auth/stable,now 1.4-2 arm [installed,automatic]
termux-exec/stable,now 1:1.0 arm [installed]
termux-keyring/now 3.8-1 all [installed,upgradable to: 3.11]
termux-licenses/stable,now 2.0-3 all [installed]
termux-tools/now 1.26.0-1 all [installed,upgradable to: 1.39.0]
ttf-dejavu/stable,now 2.37-8 all [installed,automatic]
unbound/now 1.15.0-1 arm [installed,upgradable to: 1.17.1-2]
unzip/stable,now 6.0-9 arm [installed]
util-linux/now 2.38 arm [installed,upgradable to: 2.39.2]
wireless-tools/root,now 30pre9-3 arm [installed]
xvidcore/stable,now 1.3.7 arm [installed,automatic]
xxhash/now 0.8.1 arm [installed,upgradable to: 0.8.2]
xz-utils/now 5.2.5-1 arm [installed,upgradable to: 5.4.4]
zip/stable,now 3.0-5 arm [installed]
zlib/now 1.2.12 arm [installed,upgradable to: 1.3]
zstd/now 1.5.2-2 arm [installed,upgradable to: 1.5.5-1]
AntonSamokat commented 1 year ago

Some relevant information on Gentoo forum - [SOLVED] undefined symbol: g_string_free_and_steal

twaik commented 1 year ago

Some relevant information on gentoo forum

I am pretty sure it is not relevant. Termux is not related to gentoo.

romanovj commented 1 year ago

Partial upgrades are not supported. You need to run pkg upgrade before installing packages.

AntonSamokat commented 1 year ago

@romanovj Thanks! pkg upgrade fixed the problem. mc started successfully. Below I will list versions of the updated packages with working mc. Is it possible to understand or guess what exact updated packages fixed this problem?

version of mc is the same as before update:
mc/stable,now 4.8.29-1 arm [installed]

pkg list-installed
Listing... Done

abseil-cpp/stable,now 20230125.3 arm [installed,automatic]
android-tools/stable,now 34.0.4 arm [installed]
apt/stable,now 2.7.3 arm [installed]
bash-completion/stable,now 2.11-2 all [installed,automatic]
bash/stable,now 5.2.15-1 arm [installed]
brotli/stable,now 1.0.9-1 arm [installed,automatic]
bzip2/stable,now 1.0.8-6 arm [installed]
ca-certificates/stable,now 1:2023.08.22 all [installed]
clang/stable,now 16.0.6-2 arm [installed,automatic]
command-not-found/stable,now 2.3.0-1 arm [installed]
coreutils/stable,now 9.4 arm [installed]
curl/stable,now 8.3.0 arm [installed]
dash/stable,now 0.5.12 arm [installed]
debianutils/stable,now 5.8 arm [installed]
dialog/stable,now 1.3-20230209-0 arm [installed]
diffutils/stable,now 3.10 arm [installed]
dos2unix/stable,now 7.5.1 arm [installed]
dpkg/stable,now 1.21.22 arm [installed]
ed/stable,now 1.19 arm [installed]
ffmpeg/stable,now 6.0-6 arm [installed]
findutils/stable,now 4.9.0-2 arm [installed]
fontconfig/stable,now 2.14.2-2 arm [installed,automatic]
freetype/stable,now 2.13.1 arm [installed,automatic]
fribidi/stable,now 1.0.13 arm [installed,automatic]
game-music-emu/stable,now 0.6.3-1 arm [installed,automatic]
gawk/stable,now 5.2.2 arm [installed]
gdbm/stable,now 1.23 arm [installed,automatic]
giflib/stable,now 5.2.1-2 arm [installed,automatic]
glib/stable,now 2.76.3 arm [installed,automatic]
gpgv/stable,now 2.4.3 arm [installed]
grep/stable,now 3.11 arm [installed]
gzip/stable,now 1.13 arm [installed]
harfbuzz/stable,now 7.3.0 arm [installed,automatic]
inetutils/stable,now 2.4-1 arm [installed]
krb5/stable,now 1.21 arm [installed,automatic]
ldns/stable,now 1.8.3-2 arm [installed,automatic]
less/stable,now 633-1 arm [installed]
libandroid-glob/stable,now 0.6-2 arm [installed]
libandroid-posix-semaphore/stable,now 0.1-3 arm [installed,automatic]
libandroid-shmem/stable,now 0.4 arm [installed,automatic]
libandroid-support/stable,now 28-3 arm [installed]
libaom/stable,now 3.6.1 arm [installed,automatic]
libass/stable,now 0.17.1 arm [installed,automatic]
libassuan/stable,now 2.5.6 arm [installed]
libbluray/stable,now 1.3.4-1 arm [installed,automatic]
libbsd/stable,now 0.11.7 arm [installed,automatic]
libbz2/stable,now 1.0.8-6 arm [installed]
libc++/stable,now 25c arm [installed]
libcairo/stable,now 1.17.8 arm [installed,automatic]
libcap-ng/stable,now 2:0.8.3 arm [installed]
libcompiler-rt/stable,now 16.0.6-2 arm [installed,automatic]
libcrypt/stable,now 0.2-5 arm [installed]
libcurl/stable,now 8.3.0 arm [installed]
libdav1d/stable,now 1.2.1 arm [installed,automatic]
libdb/stable,now 18.1.40-4 arm [installed,automatic]
libedit/stable,now 20221030-3.1-0 arm [installed,automatic]
libevent/stable,now 2.1.12-2 arm [installed]
libexpat/stable,now 2.5.0-1 arm [installed]
libffi/stable,now 3.4.4-1 arm [installed,automatic]
libgcrypt/stable,now 1.10.2 arm [installed]
libgmp/stable,now 6.3.0 arm [installed]
libgnutls/stable,now 3.8.0-1 arm [installed]
libgpg-error/stable,now 1.47 arm [installed]
libgraphite/stable,now 1.3.14-2 arm [installed,automatic]
libiconv/stable,now 1.17 arm [installed]
libidn2/stable,now 2.3.4 arm [installed]
libjpeg-turbo/stable,now 3.0.0 arm [installed,automatic]
libllvm/stable,now 16.0.6-2 arm [installed,automatic]
liblz4/stable,now 1.9.4 arm [installed]
liblzma/stable,now 5.4.4 arm [installed]
liblzo/stable,now 2.10-3 arm [installed,automatic]
libmd/stable,now 1.1.0 arm [installed,automatic]
libmp3lame/stable,now 3.100-4 arm [installed,automatic]
libmpfr/stable,now 4.2.0-p9-0 arm [installed]
libnettle/stable,now 3.9.1 arm [installed]
libnghttp2/stable,now 1.56.0 arm [installed]
libnpth/stable,now 1.6-1 arm [installed]
libogg/stable,now 1.3.5 arm [installed,automatic]
libopencore-amr/stable,now 0.1.6 arm [installed,automatic]
libopus/stable,now 1.4 arm [installed,automatic]
libpixman/stable,now 0.42.2 arm [installed,automatic]
libpng/stable,now 1.6.40 arm [installed,automatic]
libpopt/stable,now 1.19 arm [installed,automatic]
libprotobuf/stable,now 2:22.4 arm [installed,automatic]
librav1e/stable,now 0.6.6 arm [installed,automatic]
libresolv-wrapper/stable,now 1.1.7-4 arm [installed,automatic]
libsmartcols/stable,now 2.39.2 arm [installed,automatic]
libsoxr/stable,now 0.1.3-4 arm [installed,automatic]
libsqlite/stable,now 3.43.1 arm [installed,automatic]
libsrt/stable,now 1.5.2 arm [installed,automatic]
libssh2/stable,now 1.11.0 arm [installed]
libssh/stable,now 0.10.5 arm [installed,automatic]
libtheora/stable,now 1.1.1-1 arm [installed,automatic]
libtiff/stable,now 4.5.1-1 arm [installed,automatic]
libtirpc/stable,now 1.3.3 arm [installed]
libudfread/stable,now 1.1.2 arm [installed,automatic]
libunbound/stable,now 1.17.1-2 arm [installed,automatic]
libunistring/stable,now 1.1 arm [installed]
libusb/stable,now 1.0.26-1 arm [installed,automatic]
libvidstab/stable,now 1.1.1 arm [installed,automatic]
libvo-amrwbenc/stable,now 0.1.3 arm [installed,automatic]
libvorbis/stable,now 1.3.7-1 arm [installed,automatic]
libvpx/stable,now 1:1.13.0 arm [installed,automatic]
libwebp/stable,now 1.3.1-2 arm [installed,automatic]
libx11/stable,now 1.8.6 arm [installed,automatic]
libx264/stable,now 1:0.164.3101 arm [installed,automatic]
libx265/stable,now 3.5-p20230222-0 arm [installed,automatic]
libxau/stable,now 1.0.11 arm [installed,automatic]
libxcb/stable,now 1.15 arm [installed,automatic]
libxdmcp/stable,now 1.1.4 arm [installed,automatic]
libxext/stable,now 1.3.5 arm [installed,automatic]
libxml2/stable,now 2.11.4-2 arm [installed,automatic]
libxrender/stable,now 0.9.11 arm [installed,automatic]
libzimg/stable,now 3.0.5 arm [installed,automatic]
littlecms/stable,now 2.15-1 arm [installed,automatic]
lld/stable,now 16.0.6-2 arm [installed,automatic]
llvm/stable,now 16.0.6-2 arm [installed,automatic]
lsof/stable,now 4.98.0 arm [installed]
make/stable,now 4.4.1 arm [installed,automatic]
man/stable,now 1.14.6-1 arm [installed]
mc/stable,now 4.8.29-1 arm [installed]
nano/stable,now 7.2 arm [installed]
ncurses-ui-libs/stable,now 6.4.20230527-1 arm [installed,automatic]
ncurses/stable,now 6.4.20230527-1 arm [installed]
ndk-sysroot/stable,now 25c arm [installed,automatic]
net-tools/stable,now 2.10.0 arm [installed]
netcat-openbsd/stable,now 1.219-1-0 arm [installed]
ocl-icd/stable,now 2.3.1-3 arm [installed,automatic]
openssh-sftp-server/stable,now 9.4p1 arm [installed]
openssh/stable,now 9.4p1 arm [installed]
openssl-tool/stable,now 1:3.1.2 arm [installed,automatic]
openssl/stable,now 1:3.1.2 arm [installed]
p7zip/stable,now 17.05-1 arm [installed]
patch/stable,now 2.7.6-3 arm [installed]
pcre2/stable,now 10.42 arm [installed]
pcre/stable,now 8.45-1 arm [installed]
pkg-config/stable,now 0.29.2-2 arm [installed,automatic]
procps/stable,now 3.3.17-2 arm [installed]
psmisc/stable,now 23.6-1 arm [installed]
pv/stable,now 1.6.20 arm [installed]
python-ensurepip-wheels/stable,now 3.11.5 all [installed,automatic]
python-pip/stable,now 23.2.1 all [installed,automatic]
python/stable,now 3.11.5 arm [installed]
readline/stable,now 8.2.1 arm [installed]
resolv-conf/stable,now 1.3 arm [installed,automatic]
root-repo/stable,now 2.4-2 all [installed]
rsync/stable,now 3.2.7 arm [installed]
sed/stable,now 4.9-1 arm [installed]
sshpass/stable,now 1.10 arm [installed]
tar/stable,now 1.35 arm [installed]
termux-am-socket/stable,now 1.5.0 arm [installed]
termux-am/stable,now 0.6.0 all [installed]
termux-api/stable,now 0.57 arm [installed]
termux-auth/stable,now 1.4-2 arm [installed,automatic]
termux-exec/stable,now 1:1.0 arm [installed]
termux-keyring/stable,now 3.11 all [installed]
termux-licenses/stable,now 2.0-3 all [installed]
termux-tools/stable,now 1.39.0 all [installed]
ttf-dejavu/stable,now 2.37-8 all [installed,automatic]
unbound/stable,now 1.17.1-2 arm [installed]
unzip/stable,now 6.0-9 arm [installed]
util-linux/stable,now 2.39.2 arm [installed]
wireless-tools/root,now 30pre9-3 arm [installed]
xvidcore/stable,now 1.3.7 arm [installed,automatic]
xxhash/stable,now 0.8.2 arm [installed]
xz-utils/stable,now 5.4.4 arm [installed]
zip/stable,now 3.0-5 arm [installed]
zlib/stable,now 1.3 arm [installed]
zstd/stable,now 1.5.5-1 arm [installed,automatic]
AntonSamokat commented 1 year ago

I am pretty sure it is not relevant. Termux is not related to gentoo.

There there is comment about cannot locate symbol "g_string_free_and_steal" problem on Gentoo with describing the reason in incorrect versions of Pango and Glib libs (the message is below). Probably this also will be related to Termux. But I do not have Pango lib in the list of the installed packages of Termux and mc is working now. After I performed pkg upgrade: Glib from glib/now 2.72.2 arm [installed,upgradable to: 2.76.3] become glib/stable,now 2.76.3 arm [installed,automatic] Based on this information I can guess that probably only Glib lib (and its dependencies) need to be updated with pkg update glib If I have a chance I will check this and report.

LD_DEBUG=bindings helped me to understand the reason for this error.

Davinci Resolve bundles a lot of system libraries in /opt/resolve/libs 
and this directory takes precedence over the system ones. 
It bundles Glib in particular. But it doesn't bundle Pango. 

The new Pango requires updated Glib (g_string_free_and_steal is a newly 
introduced symbol) but is bound to the old bundled Glib (where there is 
no g_string_free_and_steal ) when starting Resolve.

I moved old Glib libs from the /opt/resolve/libs and Resolve starts fine now.
twaik commented 1 year ago

on Gentoo with describing the reason

Termux is not related to gentoo. The reason of this error is partial package upgrade which is not supported. End of story.

AntonSamokat commented 1 year ago

@romanovj , @twaik Not the end of story yet )

I have checked my guess and it was right. Only pkg update glib is enough to fix this issue.

glib version before update: glib/stable 2.76.3 arm [upgradable from: 2.72.2] after update: glib/stable,now 2.76.3 arm [installed,automatic]

In my case mc is also working with the packages listed below.

Nevertheless I understand that to be fully updated is recommended. But I have small available space on my device with 16 Gb internal memory. On it every free megabyte is important. And full upgrade in my case requires additional 180 Mbs:

The following packages were automatically installed and are no longer required:
  googletest libuuid
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  abseil-cpp libandroid-shmem libcairo liblzo libopencore-amr libpixman libsmartcols libsrt libssh libunbound
  libvo-amrwbenc libx11 libxau libxcb libxdmcp libxext libxrender libzimg littlecms ocl-icd python-ensurepip-wheels
  python-pip resolv-conf
The following packages will be upgraded:
  android-tools apt bash ca-certificates clang command-not-found coreutils curl dash debianutils dialog diffutils dos2unix
  dpkg ed ffmpeg findutils fontconfig freetype fribidi gawk glib googletest gpgv grep gzip harfbuzz inetutils krb5 ldns
  less libandroid-support libaom libass libassuan libbluray libc++ libcompiler-rt libcurl libdav1d libevent libexpat libffi
  libgcrypt libgmp libgnutls libgpg-error libiconv libidn2 libjpeg-turbo libllvm liblz4 liblzma libmd libmpfr libnettle
  libnghttp2 libopus libpng libprotobuf librav1e libresolv-wrapper libsoxr libsqlite libssh2 libtiff libtirpc libunistring
  libuuid libvidstab libvpx libwebp libx264 libx265 libxml2 lld llvm lsof make man nano ncurses ncurses-ui-libs ndk-sysroot
  netcat-openbsd openssh openssh-sftp-server openssl openssl-tool pcre2 psmisc python readline sed tar termux-am
  termux-keyring termux-tools unbound util-linux xxhash xz-utils zlib zstd
104 upgraded, 23 newly installed, 0 to remove and 0 not upgraded.
Need to get 138 MB of archives.
After this operation, 180 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

pkg installed-list:

Listing... Done
android-tools/now 31.0.3p1-6 arm [installed,upgradable to: 34.0.4]
apt/now 2.5.2 arm [installed,upgradable to: 2.7.3]
bash-completion/stable,now 2.11-2 all [installed,automatic]
bash/now 5.1.16-1 arm [installed,upgradable to: 5.2.15-1]
brotli/stable,now 1.0.9-1 arm [installed,automatic]
bzip2/stable,now 1.0.8-6 arm [installed]
ca-certificates/now 1:2022.07.19 all [installed,upgradable to: 1:2023.08.22]
clang/now 14.0.6-2 arm [installed,upgradable to: 16.0.6-2]
command-not-found/now 2.0-1 arm [installed,upgradable to: 2.3.0-1]
coreutils/now 9.1 arm [installed,upgradable to: 9.4]
curl/now 7.84.0 arm [installed,upgradable to: 8.3.0]
dash/now 0.5.11.5-1 arm [installed,upgradable to: 0.5.12]
debianutils/now 5.7 arm [installed,upgradable to: 5.8]
dialog/now 1.3-20220526-0 arm [installed,upgradable to: 1.3-20230209-0]
diffutils/now 3.8 arm [installed,upgradable to: 3.10]
dos2unix/now 7.4.3 arm [installed,upgradable to: 7.5.1]
dpkg/now 1.21.9 arm [installed,upgradable to: 1.21.22]
ed/now 1.18 arm [installed,upgradable to: 1.19]
ffmpeg/now 5.1 arm [installed,upgradable to: 6.0-6]
findutils/now 4.9.0-1 arm [installed,upgradable to: 4.9.0-2]
fontconfig/now 2.14.0 arm [installed,upgradable to: 2.14.2-2]
freetype/now 2.12.1 arm [installed,upgradable to: 2.13.1]
fribidi/now 1.0.12 arm [installed,upgradable to: 1.0.13]
game-music-emu/stable,now 0.6.3-1 arm [installed,automatic]
gawk/now 5.1.1-1 arm [installed,upgradable to: 5.2.2]
gdbm/stable,now 1.23 arm [installed,automatic]
giflib/stable,now 5.2.1-2 arm [installed,automatic]
glib/stable,now 2.76.3 arm [installed]
googletest/now 1.12.1-2 arm [installed,upgradable to: 1.14.0]
gpgv/now 2.3.7 arm [installed,upgradable to: 2.4.3]
grep/now 3.7-2 arm [installed,upgradable to: 3.11]
gzip/now 1.12 arm [installed,upgradable to: 1.13]
harfbuzz/now 5.1.0-1 arm [installed,upgradable to: 7.3.0]
inetutils/now 2.3 arm [installed,upgradable to: 2.4-1]
krb5/now 1.20.1 arm [installed,upgradable to: 1.21]
ldns/now 1.8.3-1 arm [installed,upgradable to: 1.8.3-2]
less/now 590 arm [installed,upgradable to: 633-1]
libandroid-glob/stable,now 0.6-2 arm [installed]
libandroid-posix-semaphore/stable,now 0.1-3 arm [installed,automatic]
libandroid-support/now 28-2 arm [installed,upgradable to: 28-3]
libaom/now 3.4.0-1 arm [installed,upgradable to: 3.6.1]
libass/now 0.16.0 arm [installed,upgradable to: 0.17.1]
libassuan/now 2.5.5 arm [installed,upgradable to: 2.5.6]
libbluray/now 1.3.1 arm [installed,upgradable to: 1.3.4-1]
libbsd/stable,now 0.11.7 arm [installed,automatic]
libbz2/stable,now 1.0.8-6 arm [installed]
libc++/now 25-1 arm [installed,upgradable to: 25c]
libcap-ng/stable,now 2:0.8.3 arm [installed]
libcompiler-rt/now 14.0.6-2 arm [installed,upgradable to: 16.0.6-2]
libcrypt/stable,now 0.2-5 arm [installed]
libcurl/now 7.84.0 arm [installed,upgradable to: 8.3.0]
libdav1d/now 1.0.0 arm [installed,upgradable to: 1.2.1]
libdb/stable,now 18.1.40-4 arm [installed,automatic]
libedit/stable,now 20221030-3.1-0 arm [installed,automatic]
libevent/now 2.1.12-1 arm [installed,upgradable to: 2.1.12-2]
libexpat/now 2.4.8 arm [installed,upgradable to: 2.5.0-1]
libffi/now 3.4.2 arm [installed,upgradable to: 3.4.4-1]
libgcrypt/now 1.10.1 arm [installed,upgradable to: 1.10.2]
libgmp/now 6.2.1-2 arm [installed,upgradable to: 6.3.0]
libgnutls/now 3.7.6 arm [installed,upgradable to: 3.8.0-1]
libgpg-error/now 1.45 arm [installed,upgradable to: 1.47]
libgraphite/stable,now 1.3.14-2 arm [installed,automatic]
libiconv/now 1.16-3 arm [installed,upgradable to: 1.17]
libidn2/now 2.3.2 arm [installed,upgradable to: 2.3.4]
libjpeg-turbo/now 2.1.3 arm [installed,upgradable to: 3.0.0]
libllvm/now 14.0.6-2 arm [installed,upgradable to: 16.0.6-2]
liblz4/now 1.9.3-1 arm [installed,upgradable to: 1.9.4]
liblzma/now 5.2.5-1 arm [installed,upgradable to: 5.4.4]
libmd/now 1.0.4 arm [installed,upgradable to: 1.1.0]
libmp3lame/stable,now 3.100-4 arm [installed,automatic]
libmpfr/now 4.1.0-1 arm [installed,upgradable to: 4.2.0-p9-0]
libnettle/now 3.7.3 arm [installed,upgradable to: 3.9.1]
libnghttp2/now 1.48.0 arm [installed,upgradable to: 1.56.0]
libnpth/stable,now 1.6-1 arm [installed]
libogg/stable,now 1.3.5 arm [installed,automatic]
libopus/now 1.3.1-5 arm [installed,upgradable to: 1.4]
libpng/now 1.6.37-3 arm [installed,upgradable to: 1.6.40]
libpopt/stable,now 1.19 arm [installed,automatic]
libprotobuf/now 2:3.21.5 arm [installed,upgradable to: 2:22.4]
librav1e/now 0.5.1 arm [installed,upgradable to: 0.6.6]
libresolv-wrapper/now 1.1.7-3 arm [installed,upgradable to: 1.1.7-4]
libsoxr/now 0.1.3-3 arm [installed,upgradable to: 0.1.3-4]
libsqlite/now 3.38.5 arm [installed,upgradable to: 3.43.1]
libssh2/now 1.10.0-2 arm [installed,upgradable to: 1.11.0]
libtalloc/stable,now 2.4.1 arm [installed,automatic]
libtheora/stable,now 1.1.1-1 arm [installed,automatic]
libtiff/now 4.3.0-3 arm [installed,upgradable to: 4.5.1-1]
libtirpc/now 1.3.2-1 arm [installed,upgradable to: 1.3.3]
libudfread/stable,now 1.1.2 arm [installed,automatic]
libunistring/now 1.0 arm [installed,upgradable to: 1.1]
libusb/stable,now 1.0.26-1 arm [installed,automatic]
libuuid/now 1.0.3-5 arm [installed,upgradable to: 2.39.2]
libvidstab/now 1.1.0-2 arm [installed,upgradable to: 1.1.1]
libvorbis/stable,now 1.3.7-1 arm [installed,automatic]
libvpx/now 1:1.12.0-1 arm [installed,upgradable to: 1:1.13.0]
libwebp/now 1.2.4 arm [installed,upgradable to: 1.3.1-2]
libx264/now 1:0.161.3049-2 arm [installed,upgradable to: 1:0.164.3101]
libx265/now 3.5-4 arm [installed,upgradable to: 3.5-p20230222-0]
libxml2/now 2.9.14 arm [installed,upgradable to: 2.11.4-2]
lld/now 14.0.6-2 arm [installed,upgradable to: 16.0.6-2]
llvm/now 14.0.6-2 arm [installed,upgradable to: 16.0.6-2]
lsof/now 4.95.0-1 arm [installed,upgradable to: 4.98.0]
make/now 4.3-2 arm [installed,upgradable to: 4.4.1]
man/now 1.14.5-3 arm [installed,upgradable to: 1.14.6-1]
mc/stable,now 4.8.29-1 arm [installed]
nano/now 6.3 arm [installed,upgradable to: 7.2]
ncurses-ui-libs/stable,now 6.4.20230527-1 arm [installed,automatic]
ncurses-utils/stable,now 6.4.20230527-1 arm [installed,automatic]
ncurses/stable,now 6.4.20230527-1 arm [installed]
ndk-sysroot/now 25 arm [installed,upgradable to: 25c]
net-tools/stable,now 2.10.0 arm [installed]
netcat-openbsd/now 1.218-5-0 arm [installed,upgradable to: 1.219-1-0]
openssh-sftp-server/now 9.1p1 arm [installed,upgradable to: 9.4p1]
openssh/now 9.1p1 arm [installed,upgradable to: 9.4p1]
openssl-tool/now 1:3.0.7 arm [installed,upgradable to: 1:3.1.2]
openssl/now 1:3.0.7 arm [installed,upgradable to: 1:3.1.2]
p7zip/stable,now 17.05-1 arm [installed]
patch/stable,now 2.7.6-3 arm [installed]
pcre2/now 10.40 arm [installed,upgradable to: 10.42]
pcre/stable,now 8.45-1 arm [installed]
pkg-config/stable,now 0.29.2-2 arm [installed,automatic]
procps/stable,now 3.3.17-2 arm [installed]
proot-distro/stable,now 3.18.1 all [installed]
proot/stable,now 5.1.107-61 arm [installed]
psmisc/now 23.5 arm [installed,upgradable to: 23.6-1]
pv/stable,now 1.6.20 arm [installed]
python/now 3.10.6 arm [installed,upgradable to: 3.11.5]
readline/now 8.1.1 arm [installed,upgradable to: 8.2.1]
resolv-conf/stable,now 1.3 arm [installed,automatic]
root-repo/stable,now 2.4-2 all [installed]
rsync/stable,now 3.2.7 arm [installed]
sed/now 4.8-2 arm [installed,upgradable to: 4.9-1]
sshpass/stable,now 1.10 arm [installed]
tar/now 1.34 arm [installed,upgradable to: 1.35]
termux-am-socket/stable,now 1.5.0 arm [installed]
termux-am/now 0.4 all [installed,upgradable to: 0.6.0]
termux-api/stable,now 0.57 arm [installed]
termux-auth/stable,now 1.4-2 arm [installed,automatic]
termux-exec/stable,now 1:1.0 arm [installed]
termux-keyring/now 3.8-1 all [installed,upgradable to: 3.11]
termux-licenses/stable,now 2.0-3 all [installed]
termux-tools/now 1.26.0-1 all [installed,upgradable to: 1.39.0]
ttf-dejavu/stable,now 2.37-8 all [installed,automatic]
unbound/now 1.15.0-1 arm [installed,upgradable to: 1.17.1-2]
unzip/stable,now 6.0-9 arm [installed]
util-linux/now 2.38 arm [installed,upgradable to: 2.39.2]
wireless-tools/root,now 30pre9-3 arm [installed]
xvidcore/stable,now 1.3.7 arm [installed,automatic]
xxhash/now 0.8.1 arm [installed,upgradable to: 0.8.2]
xz-utils/now 5.2.5-1 arm [installed,upgradable to: 5.4.4]
zip/stable,now 3.0-5 arm [installed]
zlib/now 1.2.12 arm [installed,upgradable to: 1.3]
zstd/now 1.5.2-2 arm [installed,upgradable to: 1.5.5-1]
twaik commented 1 year ago

Again, partial updates are not supported. You should update the whole environment.

Quoting our instructions from discord server.

After installing Termux and opening it, you should do the following:

  1. termux-change-repo (to select a nearby mirror to get updates from):
    • SPACE toggles highlighted options;
    • ENTER moves to the next screen; Choose the first/topmost option on each screen. (If that one fails, try another.)
  2. pkg update && pkg upgrade (to update your package database, then upgrade all packages) On each prompt, press y and Enter to install newest versions available
  3. exit (to exit Termux, so you can restart it yourself, all updated!)
AntonSamokat commented 1 year ago

@twaik , @romanovj Thanks for fast responses and your support.