Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 817128 - dev-util/sysdig-0.27.1-r100 - /.../ld: .../libsinsp.a(cri.grpc.pb.cc.o): undefined reference to symbol _ZN4absl12lts_202103245Mute
Summary: dev-util/sysdig-0.27.1-r100 - /.../ld: .../libsinsp.a(cri.grpc.pb.cc.o): unde...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-10-09 08:35 UTC by Toralf Förster
Modified: 2021-12-19 21:30 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.39 KB, text/plain)
2021-10-09 08:35 UTC, Toralf Förster
Details
dev-util:sysdig-0.27.1-r100:20211008-224442.log (dev-util:sysdig-0.27.1-r100:20211008-224442.log,697.12 KB, text/plain)
2021-10-09 08:35 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,493.72 KB, text/plain)
2021-10-09 08:35 UTC, Toralf Förster
Details
environment (environment,106.66 KB, text/plain)
2021-10-09 08:35 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,53.68 KB, application/x-bzip)
2021-10-09 08:35 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.25 KB, application/x-bzip)
2021-10-09 08:35 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,61.80 KB, application/x-bzip)
2021-10-09 08:35 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-10-09 08:35:45 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libabsl_synchronization.so.2103.0.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[116/116] : && /usr/bin/x86_64-pc-linux-gnu-g++ -pipe -march=native -fno-diagnostics-color -O2 -Wall    -std=c++0x -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0    -rdynamic userspace/sysdig/CMakeFiles/csysdig.dir/fields_info.cpp.o userspace/sysdig/CMakeFiles/csysdig.dir/csysdig.cpp.o -o userspace/sysdig/csysdig  userspace/libsinsp/libsinsp.a  -lncurses  -ltinfo  -lform  userspace/libscap/libscap.a  -lelf  -lz  -lcurl  -ljsoncpp  -ltbb  -lcares  -lgrpc++_unsecure  -lgrpc_unsecure  -lprotobuf  -lcares  -lgrpc++_unsecure  -lgrpc_unsecure  -lprotobuf  -ljq  -Wl,-Bstatic  -lb64  -Wl,-Bdynamic  -lrt  -lanl  -lssl  -lcrypto  -lluajit-5.1  -ldl  -lpthread && :
FAILED: userspace/sysdig/csysdig 

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd-j4-20210930-120009

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.7
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.55.0
  [2]   rust-1.55.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.3
  [2]   php7.4
  [3]   php8.0 *

  HEAD of ::gentoo
commit e13bbb9775401971c4511e0976746039aca7d25d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Oct 8 20:06:29 2021 +0000

    2021-10-08 20:06:27 UTC

emerge -qpvO dev-util/sysdig
[ebuild   R   ] dev-util/sysdig-0.27.1-r100  USE="modules -test" LUA_SINGLE_TARGET="luajit"
Comment 1 Toralf Förster gentoo-dev 2021-10-09 08:35:46 UTC
Created attachment 743946 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-10-09 08:35:48 UTC
Created attachment 743949 [details]
dev-util:sysdig-0.27.1-r100:20211008-224442.log
Comment 3 Toralf Förster gentoo-dev 2021-10-09 08:35:50 UTC
Created attachment 743952 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-10-09 08:35:52 UTC
Created attachment 743955 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-10-09 08:35:53 UTC
Created attachment 743958 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-10-09 08:35:54 UTC
Created attachment 743961 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-10-09 08:35:55 UTC
Created attachment 743964 [details]
temp.tar.bz2
Comment 8 Holger Hoffstätte 2021-10-09 09:15:33 UTC
Due to some changes in grpc-1.41 and sysdig's gRPC-based contaner support.

Upstream bug: https://github.com/draios/sysdig/issues/1778

Hacky patch I came up with last night: https://github.com/hhoffstaette/portage/blob/master/dev-util/sysdig/files/0.27.1-grpc-absl-sync.patch

Patch is only for unbundled deps like Gentoo, but it works.
Comment 9 Bogdan 2021-12-19 19:59:54 UTC
https://github.com/hhoffstaette/portage/blob/master/dev-util/sysdig/files/0.27.1-grpc-absl-sync.patch

I put this patch into /etc/portage/patches/dev-util/sysdig/ and compilation finished successful. Binaries works too.

Please, add this patch into gentoo overlay and update ebuild:

if [version of installed net-libs/grpc] >= "1.41"; then
  apply patch 0.27.1-grpc-absl-sync.patch
fi
Comment 10 Larry the Git Cow gentoo-dev 2021-12-19 21:30:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e3a8191d55fcf173291932c4365da7ed2714367

commit 8e3a8191d55fcf173291932c4365da7ed2714367
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-19 21:20:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-19 21:30:11 +0000

    dev-util/sysdig: fix build with newer grpc
    
    Closes: https://bugs.gentoo.org/817128
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/sysdig-0.27.1-grpc-absl-sync.patch       | 25 ++++++++++++++++++++++
 dev-util/sysdig/sysdig-0.27.1-r100.ebuild          |  4 ++++
 2 files changed, 29 insertions(+)