[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug#224541: gettext does not compile on linux (possibly also a bug in au
From: |
Santiago Vila |
Subject: |
Bug#224541: gettext does not compile on linux (possibly also a bug in autoconf) (fwd) |
Date: |
Fri, 2 Jan 2004 17:55:11 +0100 (CET) |
Hello.
Received this last year. Submitter says he uses
-W -Wall -pedantic -W -Wall -pedantic -Waggregate-return
-Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations
-Wmissing-prototypes -Wmultichar -Wnested-externs -Wpointer-arith
-Wredundant-decls -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef
-Wwrite-strings -Wdiv-by-zero -Wfloat-equal -Wendif-labels
-Wdisabled-optimization
as CFLAGS and he can reproduce the problem with gettext 0.13.1 as well.
---------- Forwarded message ----------
From: Roland Illig <address@hidden>
To: Debian Bug Tracking System <address@hidden>
Date: Sat, 20 Dec 2003 00:29:31 +0100
Subject: Bug#224541: gettext does not compile on linux (possibly also a bug in
autoconf)
Package: gettext
Version: 0.12.1-8
Severity: normal
Tags: patch
I got some compiling errors using autoconf-2.57. The bug raises if
stpcpy is a macro, but not also defined as a function. Same for mempcpy.
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux wwid 2.4.22-1-k7 #5 Sat Oct 4 14:11:12 EST 2003 i686
Locale: address@hidden, address@hidden (ignored: LC_ALL set to address@hidden)
Versions of packages gettext depends on:
ii gettext-base 0.12.1-8 GNU Internationalization utilities
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
-- no debconf information
diff -urN intl/dcigettext.c /home/roland/eclipse/unix-utils/intl/dcigettext.c
--- intl/dcigettext.c 2003-10-20 19:16:09.000000000 +0200
+++ /home/roland/eclipse/unix-utils/intl/dcigettext.c 2003-12-20
00:20:41.000000000 +0100
@@ -151,10 +151,14 @@
char *getcwd ();
# endif
# ifndef HAVE_STPCPY
+# ifndef stpcpy
static char *stpcpy PARAMS ((char *dest, const char *src));
+# endif
# endif
# ifndef HAVE_MEMPCPY
+# ifndef mempcpy
static void *mempcpy PARAMS ((void *dest, const void *src, size_t n));
+# endif
# endif
#endif
@@ -1178,7 +1182,7 @@
avoid the non-standard function stpcpy. In GNU C Library this
function is available, though. Also allow the symbol HAVE_STPCPY
to be defined. */
-#if !_LIBC && !HAVE_STPCPY
+#if !_LIBC && !HAVE_STPCPY && !defined(stpcpy)
static char *
stpcpy (dest, src)
char *dest;
@@ -1190,7 +1194,7 @@
}
#endif
-#if !_LIBC && !HAVE_MEMPCPY
+#if !_LIBC && !HAVE_MEMPCPY && !defined(mempcpy)
static void *
mempcpy (dest, src, n)
void *dest;
diff -urN intl/l10nflist.c /home/roland/eclipse/unix-utils/intl/l10nflist.c
--- intl/l10nflist.c 2003-10-20 19:16:08.000000000 +0200
+++ /home/roland/eclipse/unix-utils/intl/l10nflist.c 2003-12-20
00:18:41.000000000 +0100
@@ -58,7 +58,9 @@
# endif
#else
# ifndef HAVE_STPCPY
+# ifndef stpcpy
static char *stpcpy PARAMS ((char *dest, const char *src));
+# endif
# endif
#endif
@@ -440,7 +442,7 @@
avoid the non-standard function stpcpy. In GNU C Library this
function is available, though. Also allow the symbol HAVE_STPCPY
to be defined. */
-#if !_LIBC && !HAVE_STPCPY
+#if !_LIBC && !HAVE_STPCPY && !defined(stpcpy)
static char *
stpcpy (dest, src)
char *dest;
diff -urN intl/plural-exp.c /home/roland/eclipse/unix-utils/intl/plural-exp.c
--- intl/plural-exp.c 2003-10-20 19:16:09.000000000 +0200
+++ /home/roland/eclipse/unix-utils/intl/plural-exp.c 2003-12-20
00:22:27.000000000 +0100
@@ -112,7 +112,11 @@
goto no_plural;
else
{
+#if defined HAVE_STRTOUL || defined _LIBC
char *endp;
+#else
+ const char *endp;
+#endif
unsigned long int n;
struct parse_args args;
- Bug#224541: gettext does not compile on linux (possibly also a bug in autoconf) (fwd),
Santiago Vila <=