Description of problem: bcc-tools uses clang12-libs, and the tools fail to start with a linkage error about libclang.so.12. clang12-libs-12.0.1-3.fc35.x86_64 has libraries in /usr/lib64/llvm12/lib/, as does llvm12-libs-12.0.1-2.fc35.x86_64. But the latter has an /etc/ld.so.conf.d/llvm12-x86_64.conf which adds /usr/lib64/llvm12/lib/ to the library path. So on one machine I happen to have both packages installed, and the tools work without setting the path. On the other machine, I have only clang12-libs, and manual setting of the path is required. Please duplicate the ld.so.conf.d file in both packages, so that the clang12-libs are always available. Version-Release number of selected component (if applicable): clang12-libs-12.0.1-3.fc35.x86_64 How reproducible: Deterministic Steps to Reproduce: 1. (Make sure llvm12-libs is *not* installed.) 2. /usr/share/bcc/tools/execsnoop Actual results: $ /usr/share/bcc/tools/execsnoop Traceback (most recent call last): File "/usr/share/bcc/tools/execsnoop", line 21, in <module> from bcc import BPF File "/usr/lib/python3.10/site-packages/bcc/__init__.py", line 26, in <module> from .libbcc import lib, bcc_symbol, bcc_symbol_option, bcc_stacktrace_build_id, _SYM_CB_TYPE File "/usr/lib/python3.10/site-packages/bcc/libbcc.py", line 17, in <module> lib = ct.CDLL("libbcc.so.0", use_errno=True) File "/usr/lib64/python3.10/ctypes/__init__.py", line 374, in __init__ self._handle = _dlopen(self._name, mode) OSError: libclang-cpp.so.12: cannot open shared object file: No such file or directory
Do you have llvm-libs-12.0.1 installed (i.e. an older version of the main llvm package) ?
No, I only have llvm-libs-12.0.0-5.fc35.x86_64.
Pull Request: https://src.fedoraproject.org/rpms/clang12/pull-request/1
This message is a reminder that Fedora Linux 35 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '35'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 35 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.