tags 625397 patch thanks The following patch fixes the FTBFS of memcached with gcc-4.6. In configure.ac a case of gcc-4.6 is added and there no -Werror flag is used, as is for gcc-4.4.
Thanks.
--- memcached-1.4.5/configure.ac 2010-04-03 09:07:16.000000000 +0200 +++ memcached-1.4.5.modified/configure.ac 2011-08-13 10:57:36.000000000 +0200 @@ -501,9 +501,12 @@ elif test "$GCC" = "yes" then GCC_VERSION=`$CC -dumpversion` - CFLAGS="$CFLAGS -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls" + CFLAGS="$CFLAGS -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls" case $GCC_VERSION in 4.4.*) + CFLAGS="$CFLAGS -fno-strict-aliasing -Werror" + ;; + 4.6.*) CFLAGS="$CFLAGS -fno-strict-aliasing" ;; esac