Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 812155

Summary: dev-util/apitrace-9.0-r3 - dlsym.cpp:(.text+<snip>): undefined reference to _libc_dlopen_mode
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/apitrace/apitrace/issues/756
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 803482    
Attachments: emerge-info.txt
dev-util:apitrace-9.0-r2:20210908-121842.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-09-08 12:21:26 UTC
[152/199] /usr/bin/x86_64-pc-linux-gnu-g++ -DGTEST_HAS_TR1_TUPLE=0 -DHAVE_BACKTRACE=1 -DHAVE_READPROC_H -DHAVE_X11 -DRETRACE -D_GNU_SOURCE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/thirdparty/gtest/include -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/thirdparty/khronos -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/compat -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/thirdparty/libbacktrace -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0_build-abi_x86_64.amd64/thirdparty/libbacktrace -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/lib/trace -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/lib/os -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/retrace -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/lib/highlight -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/helpers -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0_build-abi_x86_64.amd64/dispatch -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/dispatch -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/lib/image -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/lib/ubjson -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/thirdparty/dxerr -I/var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/thirdparty/mhook/mhook-lib -I/usr/include/waffle-1  -pipe -march=native -fno-diagnostics-color -O2 -fvisibility=hidden -std=gnu++11 -Wall -Wno-sign-compare -fno-strict-aliasing -fno-rtti -fno-exceptions -fmessage-length=0 -fno-omit-frame-pointer -MD -MT retrace/CMakeFiles/glretrace_common.dir/glstate_shaders.cpp.o -MF retrace/CMakeFiles/glretrace_common.dir/glstate_shaders.cpp.o.d -o retrace/CMakeFiles/glretrace_common.dir/glstate_shaders.cpp.o -c /var/tmp/portage/dev-util/apitrace-9.0-r2/work/apitrace-9.0/retrace/glstate_shaders.cpp

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j4-20210903-213815

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 12.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.1
Python 3.9.7
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.54.0
  [2]   rust-1.54.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4

  HEAD of ::gentoo
commit ac2345414abb68fc3202246612af3ab3541324f0
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Sep 8 11:21:39 2021 +0000

    2021-09-08 11:21:35 UTC

emerge -qpvO dev-util/apitrace
[ebuild  N    ] dev-util/apitrace-9.0-r2  USE="X qt5" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2021-09-08 12:21:28 UTC
Created attachment 738280 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-09-08 12:21:30 UTC
Created attachment 738283 [details]
dev-util:apitrace-9.0-r2:20210908-121842.log
Comment 3 Toralf Förster gentoo-dev 2021-09-08 12:21:32 UTC
Created attachment 738286 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-09-08 12:21:33 UTC
Created attachment 738289 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-09-08 12:21:35 UTC
Created attachment 738292 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-09-08 12:21:36 UTC
Created attachment 738295 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-09-08 12:21:37 UTC
Created attachment 738298 [details]
temp.tar.bz2
Comment 8 Agostino Sarubbo gentoo-dev 2021-12-29 07:27:03 UTC
tinderbox has reproduced this issue with version 9.0-r3 - Updating summary.
Comment 9 Mihai Moldovan 2022-01-12 17:56:39 UTC
Fix (or rather workaround) available upstream. It probably will never be really fixed in the sense to have it both working and exhibit the old behavior, since glibc just removed the private symbols (or has hidden them) and there seems to be no easy around.

Issue report: https://github.com/apitrace/apitrace/issues/756
Fix: https://github.com/apitrace/apitrace/commit/d28a980802ad48568c87da02d630c8babfe163bb.patch

Note that this needs a rebase against 9.0, since it's missing the uclibc fix.

This fix isn't part of any release yet.
Comment 10 Larry the Git Cow gentoo-dev 2022-01-13 06:02:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5de9423fbf17e94be54f48d9b5c613c2b8a7fb20

commit 5de9423fbf17e94be54f48d9b5c613c2b8a7fb20
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-01-13 05:48:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-01-13 05:49:04 +0000

    dev-util/apitrace: fix build with glibc-2.34
    
    Closes: https://bugs.gentoo.org/812155
    Thanks-to: Mihai Moldovan <ionic@ionic.de>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/apitrace/apitrace-9.0-r3.ebuild           |  3 ++-
 .../apitrace-9.0-libc-dlopen-glibc-2.34.patch      | 29 ++++++++++++++++++++++
 2 files changed, 31 insertions(+), 1 deletion(-)