Skip to content

GLIBC dependency error #459

@icebluey

Description

@icebluey
# cat /etc/os-release 
NAME="AlmaLinux"
VERSION="8.10 (Cerulean Leopard)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.10 (Cerulean Leopard)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:8::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"

7-Zip-zstd:
linux-gcc-x64.zip

[root@48f1b3a336b6 7-Zip-zstd]# ls -la
total 22M
drwxr-xr-x 2 root root 4.0K Jan 27 06:39 .
drwxrwxrwt 1 root root 4.0K Jan 27 06:37 ..
-rwxr-xr-x 1 root root 667K Jan 10 11:19 7z
-rwxr-xr-x 1 root root 5.0M Jan 10 11:20 7z.so
-rwxr-xr-x 1 root root 2.6M Jan 10 11:18 7za
-rwxr-xr-x 1 root root 2.0M Jan 10 11:17 7zr
-rwxr-xr-x 1 root root 4.8M Jan 10 11:19 7zz
-rw-r--r-- 1 root root 6.8M Jan 10 11:26 linux-gcc-x64.zip
[root@48f1b3a336b6 7-Zip-zstd]# ./7z
./7z: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./7z)
./7z: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./7z)
./7z: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by ./7z)
[root@48f1b3a336b6 7-Zip-zstd]# ./7zz
./7zz: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by ./7zz)
./7zz: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./7zz)
./7zz: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./7zz)
./7zz: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by ./7zz)
[root@48f1b3a336b6 7-Zip-zstd]# ./7za
./7za: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./7za)
./7za: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./7za)
./7za: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by ./7za)
[root@48f1b3a336b6 7-Zip-zstd]# ./7zr
./7zr: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./7zr)
./7zr: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./7zr)
./7zr: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by ./7zr)

7-Zip-official:

[root@48f1b3a336b6 7z-official]# wget https://www.7-zip.org/a/7z2501-linux-x64.tar.xz
[root@48f1b3a336b6 7z-official]# tar -xof 7z2501-linux-x64.tar.xz 
[root@48f1b3a336b6 7z-official]# ls -la
total 8056
drwxr-xr-x 3 root root    4096 Jan 27 06:47 .
drwxrwxrwt 1 root root    4096 Jan 27 06:37 ..
-rw-r--r-- 1 root root 1571044 Aug  3 10:46 7z2501-linux-x64.tar.xz
-rwxr-xr-x 1 root root 2878000 Aug  3 10:08 7zz
-rwxr-xr-x 1 root root 3759224 Aug  3 10:08 7zzs
-rw-r--r-- 1 root root    9290 Aug  3 11:00 History.txt
-rw-r--r-- 1 root root    6029 Jul  5  2025 License.txt
drwxr-xr-x 4 root root    4096 Aug  3 10:46 MANUAL
-rw-r--r-- 1 root root    3872 Aug  3 11:00 readme.txt
[root@48f1b3a336b6 7z-official]# file 7zzs
7zzs: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=5bf9e369181ba5ae0d26a171049362ad8bcba724, for GNU/Linux 3.2.0, stripped
[root@48f1b3a336b6 7z-official]# ldd 7zzs 
	not a dynamic executable
[root@48f1b3a336b6 7z-official]# 
[root@48f1b3a336b6 7z-official]# ./7zzs

7-Zip (z) 25.01 (x64) : Copyright (c) 1999-2025 Igor Pavlov : 2025-08-03
 64-bit locale=C.utf8 Threads:2 OPEN_MAX:1048576, ASM

Usage: 7zz <command> [<switches>...] <archive_name> [<file_names>...] [@listfile]

<Commands>
  a : Add files to archive
  b : Benchmark
  d : Delete files from archive
  e : Extract files from archive (without using directory names)
  h : Calculate hash values for files
  i : Show information about supported formats
  l : List contents of archive
  rn : Rename files in archive
  t : Test integrity of archive
  u : Update files to archive
  x : eXtract files with full paths

...

Is it possible to build a statically linked binary like the official 7zzs that doesn't require system shared libraries?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions