bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] "po-lex.c", line 612: error: identifier redeclared: pass_o


From: dev
Subject: [bug-gettext] "po-lex.c", line 612: error: identifier redeclared: pass_obsolete_entries
Date: Mon, 25 Aug 2014 13:53:35 -0400 (EDT)

While trying to compile 0.19.2 on Solaris 10 :

libtool: compile:  /opt/solarisstudio12.3/bin/cc -D_STDC_C99=
-DLOCALEDIR=\"/usr/local/share/locale\"
-DBISON_LOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DUSEJAVA=0 -DUSEJEXE=0
-DGETTEXTJEXEDIR=\"/usr/local/lib/gettext\"
-DGETTEXTJAR=\"/usr/local/share/gettext/gettext.jar\"
-DLIBDIR=\"/usr/local/lib\"
-DGETTEXTDATADIR=\"/usr/local/share/gettext\"
-DPROJECTSDIR=\"/usr/local/share/gettext/projects\" -DHAVE_CONFIG_H -I.
-I.. -I. -I. -I.. -I.. -I../libgrep -I../gnulib-lib -I../gnulib-lib
-I../intl -I../../gettext-runtime/intl -I/usr/local/include -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_REENTRANT
-errfmt=error -erroff=%none -errshort=full -xstrconst -xildoff -m64
-xmemalign=8s -xnolibmil -Xa -xcode=pic32 -xregs=no%appl -xlibmieee -mc
-g -xs -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1
-xtarget=ultraT2 -xcache=8/16/4:4096/64/16 -c po-lex.c  -KPIC -DPIC -o
.libs/libgettextsrc_la-po-lex.o
"po-lex.c", line 612: error: identifier redeclared:
pass_obsolete_entries
        current : signed char
        previous: _Bool : "po-lex.h", line 63
"po-lex.c", line 1147: error: identifier redeclared:
po_lex_pass_comments
        current : function(signed char) returning void
        previous: function(_Bool) returning void : "po-lex.h", line 78
"po-lex.c", line 1156: error: identifier redeclared:
po_lex_pass_obsolete_entries
        current : function(signed char) returning void
        previous: function(_Bool) returning void : "po-lex.h", line 82
cc: acomp failed for po-lex.c



In the ./gettext-tools/src/po-lex.c source I see :

/* Lexer variables.  */

static mbfile_t mbf;
unsigned int gram_max_allowed_errors = 20;
static bool po_lex_obsolete;
static bool po_lex_previous;
static bool pass_comments = false;
bool pass_obsolete_entries = false;



Meanwhile in ./gettext-tools/src/po-lex.h I see :

/* Global variables from po-lex.c.  */

/* Current position within the PO file.  */
extern DLL_VARIABLE lex_pos_ty gram_pos;
extern DLL_VARIABLE int gram_pos_column;

/* Number of parse errors within a PO file that cause the program to
   terminate.  Cf. error_message_count, declared in <error.h>.  */
extern DLL_VARIABLE unsigned int gram_max_allowed_errors;

/* True if obsolete entries shall be considered as valid.  */
extern DLL_VARIABLE bool pass_obsolete_entries;



Not sure what the DLL_VARIABLE is about nor do I see how one of them
is signed char and the other _Bool.

Any suggestions ?


Dennis



reply via email to

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