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

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

Re: gettext CVS bug with __argz_*


From: Bruno Haible
Subject: Re: gettext CVS bug with __argz_*
Date: Fri, 23 Jun 2006 18:31:33 +0200
User-agent: KMail/1.9.1

Eric Blake wrote on 2006-04-14:
> I got this failure when trying to compile CVS gettext on cygwin:
> 
>  gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -
> DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -
> DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -
> DIN_LIBRARY -DINSTALLDIR=\"/usr/local/lib\" -DNO_XMALLOC -
> Dset_relocation_prefix=libintl_set_relocation_prefix -
> Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -
> I.. -g2 -Wall -Werror ./l10nflist.c  -DPIC -o .libs/l10nflist.o
> ./l10nflist.c: In function `_nl_make_l10nflist':
> ./l10nflist.c:210: warning: implicit declaration of function 
> `__argz_stringify'
> ./l10nflist.c:267: warning: implicit declaration of function `__argz_count'
> ./l10nflist.c:314: warning: implicit declaration of function `__argz_next'
> ./l10nflist.c:314: warning: assignment makes pointer from integer without a 
> cast
> make[3]: *** [l10nflist.lo] Error 1
> 
> I traced it to the fact that gettext-runtime/m4/gettext.m4 does
> AC_CHECK_FUNCS([__argz_stringify]), but not AC_CHECK_FUNCS([argz_stringify]).
> Cygwin exports both names as aliases of the same function, but the header
> /usr/include/argz.h defines ONLY argz_stringify.  Therefore, using
> a link-only check for __argz_{stringify,count,next} without also checking
> for a declaration of {__,}argz_{stringify,count,next} leads to compilation
> failure.

Thanks for the report. Although warnings are not bugs (you're responsible
yourself for using -Werror), this will be fixed in gettext-0.15. Thanks for
the detailed explanations of what happens in Cygwin's <argz.h> file.

Bruno




reply via email to

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