Bug#1102039: libelf-dev: Build with libelf and static is broken
Package: libelf-dev
Version: 0.192-4
Severity: important
Tags: patch
X-Debbugs-Cc: zhouwei400@gmail.com
Dear Maintainer,
When building with libelf with -static, it fails:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/libelf.a(elf_begin.o): in function `file_read_elf':
(.text+0x2cb): undefined reference to `eu_search_tree_init'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/libelf.a(elf_end.o): in function `elf_end':
(.text+0xb4): undefined reference to `eu_search_tree_fini'
I have found a path about it:
https://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/elfutils/files/0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch?h=master
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.20-amd64 (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8), LANGUAGE=zh_CN
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libelf-dev depends on:
ii libelf1t64 0.192-4
ii libzstd-dev 1.5.7+dfsg-1
ii zlib1g-dev 1:1.3.dfsg+really1.3.1-1+b1
libelf-dev recommends no packages.
libelf-dev suggests no packages.
-- no debconf information
Reply to: