bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug#224541: gettext does not compile on linux (possibly also a bug i


From: Bruno Haible
Subject: Re: Bug#224541: gettext does not compile on linux (possibly also a bug in autoconf) (fwd)
Date: Mon, 5 Jan 2004 13:33:24 +0100
User-agent: KMail/1.5

Santiago Vila wrote:
> 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.

I can compile gettext-0.13.1 with these CFLAGS (except -Wendif-labels
which my gcc doesn't understand) without problems.

Roland Illig wrote:
> Kernel: Linux ...
> libc6 2.3.2.ds1-10 GNU C Library
> ...
> 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.

But on glibc systems stpcpy and mempcpy are also defined as functions:
$ nm --dynamic /lib/libc.so.6 | grep ' stpcpy'
0007ab00 W stpcpy
$ nm --dynamic /lib/libc.so.6 | grep ' mempcpy'
0007a880 W mempcpy

> 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

To me it looks more like your configure file doesn't test for stpcpy().
Have you verified that you configure.{ac,in} invokes AM_GNU_GETTEXT and
that the implementation of AM_GNU_GETTEXT you are using in aclocal.m4
matches the version of the intl library ("cat intl/VERSION")?

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]