This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
gettext compilation warnings (2)
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: gettext compilation warnings (2)
- From: Bruno Haible <haible at ilog dot fr>
- Date: Tue, 2 May 2000 15:45:13 +0200 (MET DST)
When compiling GNU hello 1.3.18 with glibc's intl/ instead of the old one, on a
glibc-2.1.x system, there are a few more warnings:
gcc -c -DLOCALEDIR=\"/packages/gnu/share/locale\" -DGNULOCALEDIR=\"/packages/gnu/share/locale\" -DLOCALE_ALIAS_PATH=\"/packages/gnu/share/locale:.\" -DLIBDIR=\"/packages/gnu/lib\" -DHAVE_CONFIG_H -I.. -I. -I../../intl -I../../lib -O -g -Wall ../../intl/loadmsgcat.c
../../intl/loadmsgcat.c: In function `_nl_load_domain':
../../intl/loadmsgcat.c:277: warning: implicit declaration of function `mempcpy'
gcc -c -DLOCALEDIR=\"/packages/gnu/share/locale\" -DGNULOCALEDIR=\"/packages/gnu/share/locale\" -DLOCALE_ALIAS_PATH=\"/packages/gnu/share/locale:.\" -DLIBDIR=\"/packages/gnu/lib\" -DHAVE_CONFIG_H -I.. -I. -I../../intl -I../../lib -O -g -Wall ../../intl/localealias.c
../../intl/localealias.c: In function `read_alias_file':
../../intl/localealias.c:245: warning: implicit declaration of function `mempcpy'
../../intl/localealias.c:272: warning: implicit declaration of function `fgets_unlocked'
../../intl/localealias.c:272: warning: comparison between pointer and integer
../../intl/localealias.c:282: warning: comparison between pointer and integer
2000-04-29 Bruno Haible <clisp.cons.org>
* intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
* intl/localealias.c: Likewise.
*** intl/loadmsgcat.c.bak Sun Apr 23 18:39:06 2000
--- intl/loadmsgcat.c Sun Apr 30 00:14:31 2000
***************
*** 16,21 ****
--- 16,28 ----
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+ /* Tell glibc's <string.h> to provide a prototype for mempcpy().
+ This must come before <config.h> because <config.h> may include
+ <features.h>, and once <features.h> has been included, it's too late. */
+ #ifndef _GNU_SOURCE
+ # define _GNU_SOURCE 1
+ #endif
+
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
***************
*** 30,38 ****
#endif
#if defined HAVE_STRING_H || defined _LIBC
- # ifndef _GNU_SOURCE
- # define _GNU_SOURCE 1
- # endif
# include <string.h>
#else
# include <strings.h>
--- 37,42 ----
*** intl/localealias.c.bak Mon Feb 28 11:34:06 2000
--- intl/localealias.c Sun Apr 30 00:02:31 2000
***************
*** 16,21 ****
--- 16,28 ----
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+ /* Tell glibc's <string.h> to provide a prototype for mempcpy().
+ This must come before <config.h> because <config.h> may include
+ <features.h>, and once <features.h> has been included, it's too late. */
+ #ifndef _GNU_SOURCE
+ # define _GNU_SOURCE 1
+ #endif
+
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
***************
*** 53,61 ****
#endif
#if defined HAVE_STRING_H || defined _LIBC
- # ifndef _GNU_SOURCE
- # define _GNU_SOURCE 1
- # endif
# include <string.h>
#else
# include <strings.h>
--- 60,65 ----