Hi,
The problem is that the gnutext script is broken and generates this warning:
conftest.c:98: warning: cast from pointer to integer of different
size
There is also a problem with the size of strlen() returning an
size_t, so you should use %zd for the length.
I've worked around the first problem by only not setting CFLAGS
during configure. There are several tests that generate a
warning and the result in configure deteting things wrongly when
using -Werror. You'll have to fix more than just the gettext
macro to be able to use -Werror during configure.
I've attached a patch that should fix things.
Kurt
--- debian/rules.old 2005-04-09 12:01:13.652252800 +0200
+++ debian/rules 2005-04-09 12:00:01.333246960 +0200
@@ -30,7 +30,7 @@
config.status: configure
dh_testdir
# Add here commands to configure the package.
- CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
+ ./configure --host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man
@@ -39,7 +39,7 @@
dh_testdir
# Add here commands to compile the package.
- $(MAKE)
+ $(MAKE) CFLAGS="$(CFLAGS)"
touch build-stamp
--- src/libpolyxmass-globals.c.old 2005-04-09 12:00:37.895688624 +0200
+++ src/libpolyxmass-globals.c 2005-04-09 12:00:52.474472312 +0200
@@ -719,7 +719,7 @@
{
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
"[EMAIL PROTECTED]: Conversion error occurred, \n"
- "with endptr='%s' (endptr[0]=%c) of length %d "
+ "with endptr='%s' (endptr[0]=%c) of length %zd "
"and long_val='%ld'.\n",
__FILE__, __LINE__, endptr, endptr[0],
strlen (endptr), long_val);