Hi Stephen, I am building it for 32 bit and have not set --enable-64bit option. I have checked this issue on SUN and HPIA as of now. This can be problem on AIX, HPUX platform as well.
I can provide the log files for configure and gmake. Thanks & Regards, Vinit Metange IBM India Software Lab, Bangalore Mobile: +91-9986067607 Office: +91-80-280-60838 "Life is Beautiful..." |------------> | From: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |Stephen Gaito <step...@perceptisys.co.uk> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | To: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |antlr-dev@antlr.org | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Date: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |04/20/2012 01:29 PM | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Subject: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |Re: [antlr-dev] Building ANTLR C suntime from source | >--------------------------------------------------------------------------------------------------------------------------------------------------| Vinit, I know that on my Ubuntu machines the configuration is very sensitive to the --enable-64bit option in the ./configure script itself. Do your SUSE and SUN platforms differ in their word size and if so have you correctly enabled 64 bit on the larger machine? Regards, Stephen Gaito On 20/04/12 04:37, Vinit S Metange wrote: > 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 [attachment "smime.p7s" deleted by Vinit S Metange/India/IBM] _______________________________________________ antlr-dev mailing list antlr-dev@antlr.org http://www.antlr.org/mailman/listinfo/antlr-dev _______________________________________________ antlr-dev mailing list antlr-dev@antlr.org http://www.antlr.org/mailman/listinfo/antlr-dev