GNOME Bugzilla – Bug 631656
Allow configuring with CFLAGS=-Werror
Last modified: 2012-08-10 18:15:33 UTC
To build gtk+ with the -Werror option, one would normally specify it on the ./configure or autogen.sh command line like so: CFLAGS=-Werror sh autogen.sh --prefix=/xxx However this currently fails during configure with: checking if <X11/extensions/XIproto.h> is needed for xReply... unknown configure: error: xReply type unavailable. X11 is too old Will attach fix.
Created attachment 171935 [details] [review] Patch which fixes the problem.
Created attachment 171938 [details] [review] Remove AC_C_CONST from configure.ac as well In order to work with -Werror we need to remove AC_C_CONST. AC_C_CONST was added in the initial revision of the configure.ac. It's no longer necessary according to autoconf developers: http://www.mail-archive.com/bug-autoconf@gnu.org/msg01867.html With these changes, gtk+ builds with -Werror which is a real asset to development.
Comment on attachment 171938 [details] [review] Remove AC_C_CONST from configure.ac as well committed a reworked version in 094fcd6fb7609361a864c6f3473791bf849c6bbc
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.