Bug 1449935

Summary: strace rebuild failure
Product: Red Hat Enterprise Linux 7 Reporter: Michal Kolar <mkolar>
Component: straceAssignee: DJ Delorie <dj>
Status: CLOSED ERRATA QA Contact: Michal Kolar <mkolar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: law, mcermak, mkolar
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: strace-4.12-4.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 22:03:54 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:

Description Michal Kolar 2017-05-11 08:07:25 UTC
Description of problem:
strace-4.12-3.el7 can not be built on RHEL7.4 kernel-3.10.0-663.el7.
This affect all archs except aarch64 which has different kernel.



Version-Release number of selected component (if applicable):
kernel-3.10.0-663.el7, kernel-4.5.0-15.4.2.el7.aarch64, strace-4.12-3.el7



How reproducible:
always



Steps to Reproduce:
rpmbuild -bc strace.spec



Actual results: rpmbuild log from x86_64
========
[ ... ]
gcc -DHAVE_CONFIG_H   -I./linux/x86_64 -I./linux/x86_64 -I./linux -I./linux -I. -I.   -DIN_MPERS -DMPERS_IS_m32 -I./mpers-m32  -Wall -Wwrite-strings -Wsign-compare -fno-strict-aliasing  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -mtune=generic -c -o libmpers_m32_a-btrfs.o `test -f 'btrfs.c' || echo './'`btrfs.c
btrfs.c:68:8: error: redefinition of 'struct btrfs_ioctl_defrag_range_args'
 struct btrfs_ioctl_defrag_range_args {
        ^
In file included from btrfs.c:36:0:
/usr/include/linux/btrfs.h:495:8: note: originally defined here
 struct btrfs_ioctl_defrag_range_args {
        ^
make[2]: *** [libmpers_m32_a-btrfs.o] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12'
make: *** [all] Error 2
rm ioctls_all0.h ioctlsort2.o ioctlsort0 ioctls_all1.h ioctlsort2 ioctls_all2.h ioctlsort1.o ioctlsort1 ioctlsort0.o
error: Bad exit status from /var/tmp/rpm-tmp.q0reqi (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.q0reqi (%build)
========


Expected results:
Successful completion of 'rpmbuild' command without error.


Additional info:
Build is successful on RHEL7.3 kernel-3.10.0-514.el7.

Comment 2 Michal Kolar 2017-05-15 07:42:16 UTC
Reproduced against strace-4.12-3.el7, kernel-3.10.0-663.el7 and verified against strace-4.12-4.el7.

Comment 3 errata-xmlrpc 2017-08-01 22:03:54 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, 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/RHBA-2017:2018