Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1872703

Summary: devtoolset-10-elfutils-devel doesn't have Requires: bzip2-devel while libdw is linked against libbz2
Product: Red Hat Developer Toolset Reporter: Eugene Syromiatnikov <esyr>
Component: elfutilsAssignee: Mark Wielaard <mjw>
Status: CLOSED ERRATA QA Contact: Martin Cermak <mcermak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: DTS 10.0 RHEL 7CC: fche, jakub, mcermak, mjw, mnewsome, ohudlick
Target Milestone: beta1Keywords: Bugfix, Triaged
Target Release: 10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: devtoolset-10-elfutils-0.180-2 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1873413 (view as bug list) Environment:
Last Closed: 2020-12-01 12:13:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1873413    

Description Eugene Syromiatnikov 2020-08-26 13:18:16 UTC
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.

Comment 2 Mark Wielaard 2020-08-28 08:08:47 UTC
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

Comment 8 errata-xmlrpc 2020-12-01 12:13:06 UTC
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