gettext compilation error (1)

Bruno Haible haible@ilog.fr
Tue Apr 25 04:49:00 GMT 2000


Hi Ulrich,

Trying to compile glibc's intl package outside glibc.

gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DGNULOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../../intl -I../../lib  -g -O2  ../../intl/bindtextdom.c
In file included from ../../intl/gettextP.h:31,
                 from ../../intl/bindtextdom.c:48:
../../intl/loadinfo.h:93: parse error before `internal_function'
../../intl/loadinfo.h:93: warning: data definition has no type or storage class

Can you please apply the patch below.


2000-04-23  Bruno Haible  <clisp.cons.org>

	* intl/loadinfo.h (internal_function): Define if not already defined.

*** intl/loadinfo.h.bak	Mon Jan 24 14:24:28 2000
--- intl/loadinfo.h	Sun Apr 23 18:01:14 2000
***************
*** 28,33 ****
--- 28,37 ----
  # endif
  #endif
  
+ #ifndef internal_function
+ # define internal_function
+ #endif
+ 
  /* Encoding of locale name parts.  */
  #define CEN_REVISION		1
  #define CEN_SPONSOR		2


More information about the Libc-alpha mailing list