Bug 1045179

Summary: use -fno-strict-aliasing for radvd
Product: Red Hat Enterprise Linux 7 Reporter: Pavel Šimerda (pavlix) <psimerda>
Component: radvdAssignee: Pavel Šimerda (pavlix) <psimerda>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Ščotka <jscotka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: psimerda, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: radvd-1.9.2-6.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 12:06:14 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:
Bug Depends On:    
Bug Blocks: 948863    

Description Pavel Šimerda (pavlix) 2013-12-19 19:28:32 UTC
I found this using rpmdiff when working on bug #948863. It turned out that radvd needs -fno-strict-aliasing.

    203  recv.c: In function 'recv_rs_ra':
    204  recv.c:86:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    206                       ^
    207  recv.c:87:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    209                       ^
    210  recv.c:89:19: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    212                     ^
    213  recv.c:94:20: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    215                      ^
    216  recv.c:101:30: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  ...plus 8 more warnings suppressed

Comment 2 Pavel Šimerda (pavlix) 2013-12-20 08:31:29 UTC
 done
 
 %build
-export CFLAGS="$RPM_OPT_FLAGS -fPIE" 
+export CFLAGS="$RPM_OPT_FLAGS -fPIE -fno-strict-aliasing" 
 export LDFLAGS='-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen'
 %configure --with-pidfile=%{_localstatedir}/run/radvd/radvd.pid
 make %{?_smp_mflags}

Comment 6 Ludek Smid 2014-06-13 12:06:14 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.