Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 839003 - dev-util/perf-5.17.1 - /.../ld: .../libbpf.a(libbpf-in.o): undefined reference to symbol gzgets
Summary: dev-util/perf-5.17.1 - /.../ld: .../libbpf.a(libbpf-in.o): undefined referenc...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Naohiro Aota
Keywords: PullRequest
: 847964 (view as bug list)
Depends on:
Reported: 2022-04-17 16:42 UTC by Toralf Förster
Modified: 2023-06-28 17:33 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---

emerge-info.txt (emerge-info.txt,18.43 KB, text/plain)
2022-04-17 16:42 UTC, Toralf Förster
dev-util:perf-5.17.1:20220417-011233.log.bz2 (dev-util:perf-5.17.1:20220417-011233.log.bz2,16.92 KB, application/x-bzip)
2022-04-17 16:42 UTC, Toralf Förster
emerge-history.txt.bz2 (emerge-history.txt.bz2,63.82 KB, application/x-bzip)
2022-04-17 16:42 UTC, Toralf Förster
environment (environment,128.40 KB, text/plain)
2022-04-17 16:42 UTC, Toralf Förster
etc.portage.tar.bz2 (etc.portage.tar.bz2,31.21 KB, application/x-bzip)
2022-04-17 16:42 UTC, Toralf Förster

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-04-17 16:42:12 UTC
too long lines were shrinked:

   x86_64-pc-linux-gnu-ld -r -o perf-in.o  builtin-bench.o builtin-annotate.o builtin-config.o builtin-diff.o builtin-evlist.o builtin-ftrace.o builtin-help.o builtin-sched.o builtin-buildid-list.o builtin-buildid-cache.o builtin-kallsyms.o builtin-list.o builtin-record.o builtin-report.o builtin-st
make[2]: Leaving directory '/var/tmp/portage/dev-util/perf-5.17.1/work/linux-5.17/tools/perf'
x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat-security -Wformat-y2k -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wno-system-headers -Wold-style-definition -Wpacked -Wredundant-decls -Wstrict-prototypes -W
	perf-in.o pmu-events/pmu-events-in.o -Wl,--whole-archive /var/tmp/portage/dev-util/perf-5.17.1/work/linux-5.17/tools/lib/api/libapi.a /var/tmp/portage/dev-util/perf-5.17.1/work/linux-5.17/tools/lib/subcmd/libsubcmd.a /var/tmp/portage/dev-util/perf-5.17.1/work/linux-5.17/tools/lib/perf/libperf.a /va
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-util/perf-5.17.1/work/linux-5.17/tools/perf/libbpf/libbpf.a(libbpf-in.o): undefined reference to symbol 'gzgets'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/ error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status


  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20220414-090040


gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
clang version 14.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
Python 3.9.12
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.60.0
  [2]   rust-1.60.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.14_p9 [openjdk-bin-11]
*)	Eclipse Temurin JDK 8.322_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-11 

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 8147dbf584c18adf02e4ddbc7b5b5d604796acfc
Author: Repository mirror & CI <>
Date:   Sat Apr 16 23:54:01 2022 +0000

    2022-04-16 23:54:00 UTC

emerge -qpvO dev-util/perf
[ebuild  N    ] dev-util/perf-5.17.1  USE="crypt doc lzma unwind -audit -babeltrace -clang -debug -gtk -java -libpfm -numa -perl -python -slang -systemtap -zlib -zstd" PYTHON_TARGETS="python3_9 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2022-04-17 16:42:13 UTC
Created attachment 771326 [details]
Comment 2 Toralf Förster gentoo-dev 2022-04-17 16:42:14 UTC
Created attachment 771329 [details]
Comment 3 Toralf Förster gentoo-dev 2022-04-17 16:42:16 UTC
Created attachment 771332 [details]
Comment 4 Toralf Förster gentoo-dev 2022-04-17 16:42:19 UTC
Created attachment 771335 [details]
Comment 5 Toralf Förster gentoo-dev 2022-04-17 16:42:21 UTC
Created attachment 771338 [details]
Comment 6 Matt Turner gentoo-dev 2023-06-28 02:56:19 UTC
*** Bug 847964 has been marked as a duplicate of this bug. ***
Comment 7 Larry the Git Cow gentoo-dev 2023-06-28 17:33:28 UTC
The bug has been closed via the following commit(s):

commit bc44f71acb305cd72377cc0fda48498a6abde848
Author:     Matt Turner <>
AuthorDate: 2023-06-28 03:01:00 +0000
Commit:     Matt Turner <>
CommitDate: 2023-06-28 17:33:10 +0000

    dev-util/perf: Remove IUSE=zlib and always enable support
    libbpf support is built unconditionally, and it requires zlib. zlib is
    on every system anyway, so remove the USE flag.
    Signed-off-by: Matt Turner <>

 dev-util/perf/perf-6.3-r1.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)