Have hit that while triaging bug 1870580: configure:22226: checking for dwfl_linux_proc_attach in -ldw configure:22252: gcc -std=gnu99 -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic -Wl,-z,relro -L/opt/rh/devtoolset-10/root/usr/lib64 -L/opt/rh/devtoolset-10/root/usr/lib64/elfutils -I/opt/rh/devtoolset-10/root/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic -Wl,-z,relro -L/opt/rh/devtoolset-10/root/usr/lib64 -L/opt/rh/devtoolset-10/root/usr/lib64/elfutils conftest.c -ldw >&5 /usr/bin/ld: cannot find -lbz2 collect2: error: ld returned 1 exit status After adding additional BuildRequires: bzip2-devel explicitly to my spec, the configure check has passed.
For DTS the rpm magic that would normally get these requirements pulled in automagically doesn't work (because we are creating "fake" .so libraries that are actually linker scripts). So we need to add the following Requires manually (note that it should be the -devel packages, since the user will be linking against the .so, not the runtime library): elfutils-devel Requires: zlib-devel Requires: bzip2-devel Requires: xz-devel elfutils-libelf-devel Requires: zlib-devel elfutils-debuginfod-devel Requires: pkgconfig(libcurl) >= 7.29.0
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (new packages: devtoolset-10-elfutils), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:5289