Google: http://blog.zortrium.net/archives/date/2010/01


Though the description of manually configuring the runtime here will
probably work for you, I think that this probably not the 'correct'
solution. I suspect that what is really wrong is that either you have the
wrong version of configure related tools, have not looked at the
./configure --help (where you can turn off the CPU 32/64 but flag for
instance (and the author did not spot that), or that there is a version of
automake that would work for OS390 based Linux.

Generally it seems like the headers are not installed, perhaps not
correctly, or don't exist in standard places, hence configure cannot find
them. Post the output of configure if you cannot work it out after
checking that you have the headers installed correctly.



Jim

> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of Vinit S Metange
> Sent: Tuesday, May 08, 2012 4:36 AM
> To: [email protected]
> Subject: [antlr-dev] Error while building ANTLR C runtime from source
> on ZRHEL/ZSUSE
>
>
> 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
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to