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

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

gettext 0.11.1 - C99 compiliation issue


From: Trond Eivind Glomsrød
Subject: gettext 0.11.1 - C99 compiliation issue
Date: Mon, 1 Apr 2002 16:57:15 -0500 (EST)

When using the option "-std=c99" with gcc 3.0.4 (and 2.96RH, as well. I 
don't think egcs supported that option), gettext 0.11.1 doesn't compile:

/bin/sh ../libtool --mode=compile gcc3 -DLOCALEDIR=\"/usr/share/locale\" 
-DGETTEXTJAR=\"/usr/share/gettext/gettext.jar\" -DLIBDIR=\"/usr/lib\" 
-DGETTEXTDATADIR=\"/usr/share/gettext\" 
-DPROJECTSDIR=\"/usr/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I. -I.. 
-I. -I. -I.. -I../libuniname -I../lib -I../lib -I../intl -I../intl    -O0 
-std=c99 -c -o po-lex.lo po-lex.c
gcc3 -DLOCALEDIR=\"/usr/share/locale\" 
-DGETTEXTJAR=\"/usr/share/gettext/gettext.jar\" -DLIBDIR=\"/usr/lib\" 
-DGETTEXTDATADIR=\"/usr/share/gettext\" 
-DPROJECTSDIR=\"/usr/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I. -I.. 
-I. -I. -I.. -I../libuniname -I../lib -I../lib -I../intl -I../intl -O0 
-std=c99 -c po-lex.c -o po-lex.o
po-lex.c: In function `mbfile_getc':
po-lex.c:515: parse error before ')' token
po-lex.c:541: parse error before ')' token
po-lex.c:551: parse error before ')' token
po-lex.c: In function `control_sequence':
po-lex.c:933: parse error before ')' token
po-lex.c: In function `po_gram_lex':
po-lex.c:1040: parse error before ')' token
po-lex.c:1046: parse error before ')' token
make[3]: *** [po-lex.lo] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/gettext-0.11.1/src'

The error seems to be at  src/po-lex.h, macro po_gram_error_at_line in 
case __STDC__ && (defined  __STDC_VERSION__ && __STDC_VERSION__ >= 199901L:

(that is, the part actually aimed at doing something specific for C99)
-- 
Trond Eivind Glomsrød
Red Hat, Inc.




reply via email to

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