Bug 1872703 - devtoolset-10-elfutils-devel doesn't have Requires: bzip2-devel while libdw is linked against libbz2
Summary: devtoolset-10-elfutils-devel doesn't have Requires: bzip2-devel while libdw i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Developer Toolset
Classification: Red Hat
Component: elfutils
Version: DTS 10.0 RHEL 7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta1
: 10.0
Assignee: Mark Wielaard
QA Contact: Martin Cermak
URL:
Whiteboard:
Depends On:
Blocks: 1873413
TreeView+ depends on / blocked
 
Reported: 2020-08-26 13:18 UTC by Eugene Syromiatnikov
Modified: 2020-12-01 12:13 UTC (History)
6 users (show)

Fixed In Version: devtoolset-10-elfutils-0.180-2
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1873413 (view as bug list)
Environment:
Last Closed: 2020-12-01 12:13:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.