Hello,
I am getting following error while building the ANTLR C runtime from source
on ZRHEL and ZSUSE machine:
[nodcosta@lnxec439 libantlr3c-3.4]$ gmake 2>&1 |tee
$HOME/vinit/ANTLR/antlr34_ZRHEL_gmake_output_32bit.txt
gmake all-am
gmake[1]: Entering directory `/home/nodcosta/vinit/ANTLR/libantlr3c-3.4'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-Iinclude -m31 -O2 -Wall -D_SUSE -D_INT64_T -D_GNU_SOURCE -fPIC -MT
antlr3baserecognizer.lo -MD -MP -MF .deps/antlr3baserecognizer.Tpo -c -o
antlr3baserecognizer.lo `test -f 'src/antlr3baserecognizer.c' || echo
'./'`src/antlr3baserecognizer.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Iinclude -m31 -O2 -Wall -D_SUSE
-D_INT64_T -D_GNU_SOURCE -fPIC -MT antlr3baserecognizer.lo -MD -MP
-MF .deps/antlr3baserecognizer.Tpo -c src/antlr3baserecognizer.c -fPIC
-DPIC -o .libs/antlr3baserecognizer.o
In file included from /usr/include/stdio.h:34,
from include/antlr3defs.h:248,
from include/antlr3baserecognizer.h:39,
from src/antlr3baserecognizer.c:9:
/usr/lib/gcc/s390x-redhat-linux/4.1.2/include/stddef.h:214: error:
duplicate 'unsigned'
/usr/lib/gcc/s390x-redhat-linux/4.1.2/include/stddef.h:214: error: two or
more data types in declaration specifiers
gmake[1]: *** [antlr3baserecognizer.lo] Error 1
gmake[1]: Leaving directory `/home/nodcosta/vinit/ANTLR/libantlr3c-3.4'
gmake: *** [all] Error 2
[nodcosta@lnxec439 libantlr3c-3.4]$
vi /usr/lib/gcc/s390x-redhat-linux/4.1.2/include/stddef.h
[nodcosta@lnxec439 libantlr3c-3.4]$
I am not understanding what is the meaning of above error. I have checked
stddef.h file and checked what is on line number 214. I got following
declaration:
#if !(defined (__GNUG__) && defined (size_t))
typedef __SIZE_TYPE__ size_t;
Please let me know if anybody knows how to resolve this.
Thanks & Regards,
Vinit Metange
IBM India Software Lab, Bangalore
Mobile: +91-9986067607
Office: +91-80-280-60838
"Life is Beautiful..."
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev