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

Bug 873031

Summary: dev-util/bpftrace-0.16.0: src/libruntime.so: undefined reference to `bpftrace:: BTF::get_btf_id(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
Product: Gentoo Linux Reporter: Mario Klebsch <mario>
Component: Current packagesAssignee: Patrick McLean <chutzpah>
Status: RESOLVED OBSOLETE    
Severity: normal CC: holger, jsmolic, tom_gentoo
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://github.com/iovisor/bpftrace/issues/2349
Whiteboard:
Package list:
Runtime testing required: ---

Description Mario Klebsch 2022-09-26 09:41:14 UTC
Compilation of bpftrace-0.16.0 fails with the linker complaining about an undefined symbol:

/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/libruntime.so: undefined reference to `bpftrace::BTF::get_btf_id(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
collect2: error: ld returned 1 exit status



Reproducible: Always

Steps to Reproduce:
emerge  --ask --update --newuse --deep world

Actual Results:  
src/libruntime.so: undefined reference to `bpftrace::BTF::get_btf_id(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'

Expected Results:  
No linker error
Comment 1 Thomas Arnett 2022-09-27 00:15:49 UTC
Upstream discussion: https://github.com/iovisor/bpftrace/issues/2349
Comment 2 Holger Hoffstätte 2023-03-19 09:50:56 UTC
This is fixed and can be closed, we have 0.17 which works fine.
Comment 3 Patrick McLean gentoo-dev 2023-03-20 21:11:17 UTC
OK, thanks for the update. Closing.