Hi, I am building the ANTLR runtime from source with configure using "libantlr3c-3.4.tar.gz" present in the path "antlr-3.4.tar\antlr-3.4 \antlr-3.4\runtime\C\dist" I have followed the instructions given on http://www.antlr.org/api/C/index.html for building it. I have successfully generated the libraries on RHEL and SUSE platforms.
I am facing following issues on SUN, HPIA : $ gmake 2>&1 |tee $HOME/vinit/ANTLR/antlr34_sun32_gmake_output_32bit.txt . . . /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Iinclude -m32 -O2 -Wall -MT antlr3debughandlers.lo -MD -MP -MF .deps/antlr3debughandlers.Tpo -c -o antlr3debughandlers.lo `test -f 'src/antlr3debughandlers.c' || echo './'`src/antlr3debughandlers.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -Iinclude -m32 -O2 -Wall -MT antlr3debughandlers.lo -MD -MP -MF .deps/antlr3debughandlers.Tpo -c src/antlr3debughandlers.c -fPIC -DPIC -o .libs/antlr3debughandlers.o src/antlr3debughandlers.c: In function `handshake': src/antlr3debughandlers.c:302: error: `TCP_NODELAY' undeclared (first use in this function) src/antlr3debughandlers.c:302: error: (Each undeclared identifier is reported only once src/antlr3debughandlers.c:302: error: for each function it appears in.) gmake[1]: *** [antlr3debughandlers.lo] Error 1 gmake[1]: Leaving directory `/export/opt/users/nodcosta/vinit/ANTLR/libantlr3c-3.4' gmake: *** [all] Error 2 $ TCP_NODELAY is declared in the tcp.h system header file located at /usr/include/netinet/tcp.h on SUSE as well as on SUN. "tcp.h" is included in antlr header file antlr3defs.h. - I have tried setting INCLUDES environment variable with "/usr/include" but still getting same problem. - I have tried adding the -I/usr/include on the compilation line of Makefile but still got same problem. - I have looked into output generated for configure script and I can see it failed to locate netinet/tcp.h for SUN whereas it was able to find it for SUSE. Whereas it was able to find netinet/in.h on SUN but failed to find netinet/tcp.h. Step followed: INCLUDES=${INCLUDES}:/usr/include export INCLUDES cd ANTLR gzip -dc libantlr3c-3.4.tar.gz | tar xvf - cd libantlr3c-3.4 mkdir release ./configure --prefix=$HOME/vinit/ANTLR/libantlr3c-3.4/release 2>&1 |tee $HOME/vinit/ANTLR/antlr34_sun32_config_output_32bit.txt gmake 2>&1 |tee $HOME/vinit/ANTLR/antlr34_sun32_gmake_output_32bit.txt Thanks & Regards, Vinit Metange IBM India Software Lab, Bangalore Mobile: +91-9986067607 Office: +91-80-280-60838 "Life is Beautiful..." _______________________________________________ antlr-dev mailing list antlr-dev@antlr.org http://www.antlr.org/mailman/listinfo/antlr-dev