Hi Steve,
I compiled and built the TrouSers package on RHEL6.6 Beta without getting the warnings. A few months back the same was resulted on RHEL6.4 with the same gcc 4.4.7, when I didn't have 6.6 available for test. This is strange.. >Message: 4 >Date: Fri, 06 Jun 2014 14:33:59 -0400 >From: Steve Grubb <[email protected]> >Subject: [TrouSerS-tech] [PATCH] fix alias warning >To: [email protected] >Message-ID: <20929231.ePFgJMMMpX@x2> >Content-Type: text/plain; charset="us-ascii" > >Hello, > >During a recent build, we saw the following warnings in our build logs: > >rpc/tcstp/rpc.c: In function 'access_control': >rpc/tcstp/rpc.c:542: warning: dereferencing pointer 'sa' does break strict-aliasing rules >rpc/tcstp/rpc.c:536: warning: dereferencing pointer 'sa' does break strict-aliasing rules >rpc/tcstp/rpc.c:532: note: initialized from here > >The fix is to add -fno-strict-aliasing to the compile flags. The patch below >should fix this. > >Signed-off-by: Steve Grubb <[email protected]> > >---- > >diff -ur trousers-0.3.13.orig/configure.in trousers-0.3.13/configure.in >--- trousers-0.3.13.orig/configure.in 2014-04-24 14:05:43.000000000 -0400 >+++ trousers-0.3.13/configure.in 2014-06-06 14:19:24.591000008 -0400 >@@ -359,7 +359,7 @@ > AC_CHECK_FUNC(daemon, [ AC_DEFINE(HAVE_DAEMON, 1, [daemon function is available]) ]) > > if test "x${GCC}" = "xyes"; then >- CFLAGS="$CFLAGS -W -Wall -Wno-unused-parameter -Wsign-compare" >+ CFLAGS="$CFLAGS -W -Wall -Wno-unused-parameter -Wsign-compare -fno-strict-aliasing" > fi > > CFLAGS="$CFLAGS -I../include \ > > > Regards, Vicky ------------------------------------------------------------------------------ _______________________________________________ TrouSerS-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/trousers-tech
