Bug 1045179 - use -fno-strict-aliasing for radvd
Summary: use -fno-strict-aliasing for radvd
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: radvd
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Pavel Šimerda (pavlix)
QA Contact: Jan Ščotka
URL:
Whiteboard:
Depends On:
Blocks: 948863
TreeView+ depends on / blocked
 
Reported: 2013-12-19 19:28 UTC by Pavel Šimerda (pavlix)
Modified: 2014-06-18 08:15 UTC (History)
2 users (show)

Fixed In Version: radvd-1.9.2-6.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:06:14 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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