--- ./modules/berkeley-db/configure.in.orig	2012-06-20 11:05:05.000000000 -0600
+++ ./modules/berkeley-db/configure.in	2012-09-25 14:45:22.950718201 -0600
@@ -48,7 +48,7 @@ dnl <http://www.sleepycat.com/docs/ref/u
 AC_CACHE_CHECK([whether DB_ENV->set_errcall() accepts DBE],
 ac_cv_dbe_set_errcall_accept_dbe,[
 CFLAGS_save="$CFLAGS"
-CFLAGS="$CFLAGS -Werror"
+CFLAGS="$CFLAGS -Wno-uninitialized -Werror"
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <db.h>
 void my_callback (const DB_ENV* dbe, const char *errpfx, const char *msg) {}],
 [[DB_ENV dbe; dbe.set_errcall(&dbe,&my_callback);]])],
--- ./modules/berkeley-db/configure.orig	2012-06-20 11:05:05.000000000 -0600
+++ ./modules/berkeley-db/configure	2012-09-25 14:45:22.961717778 -0600
@@ -5055,7 +5055,7 @@ if test "${ac_cv_dbe_set_errcall_accept_
 else
 
 CFLAGS_save="$CFLAGS"
-CFLAGS="$CFLAGS -Werror"
+CFLAGS="$CFLAGS -Wno-uninitialized -Werror"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 #include <db.h>
