[prev in list] [next in list] [prev in thread] [next in thread] 

List:       antlr-dev
Subject:    Re: [antlr-dev] Building ANTLR C suntime from source
From:       Vinit S Metange <vinit.metange () in ! ibm ! com>
Date:       2012-04-23 11:30:00
Message-ID: OF9E244D36.B1A2CF16-ON652579E9.003D5FCD-652579E9.003E12E0 () in ! ibm ! com
[Download RAW message or body]

I Jim,

I turned off the option but still it was failing for TCP_NODELAY.

I then added the flag -DHAVE_NETINET_TCP_H because tcp.h  gets included if
only this flag is defined. After adding this flag I have successfully
compiled the code but getting the following  error while generating the
library:

/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-Iinclude    -m32  -O2  -Wall -MT antlr3treeparser.lo -MD -MP
-MF .deps/antlr3treeparser.Tpo -c -o antlr3treeparser.lo `test -f
'src/antlr3treeparser.c' || echo './'`src/antlr3treeparser.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Iinclude -m32 -O2 -Wall -MT
antlr3treeparser.lo -MD -MP -MF .deps/antlr3treeparser.Tpo -c
src/antlr3treeparser.c  -fPIC -DPIC -o .libs/antlr3treeparser.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Iinclude -m32 -O2 -Wall -MT
antlr3treeparser.lo -MD -MP -MF .deps/antlr3treeparser.Tpo -c
src/antlr3treeparser.c -o antlr3treeparser.o >/dev/null 2>&1
mv -f .deps/antlr3treeparser.Tpo .deps/antlr3treeparser.Plo
/bin/bash ./libtool --tag=CC   --mode=link gcc  -m32  -O2  -Wall
-avoid-version  -o libantlr3c.la
-rpath /export/opt/users/nodcosta/vinit/ANTLR/libantlr3c-3.4/release/lib
antlr3baserecognizer.lo antlr3basetree.lo antlr3basetreeadaptor.lo
antlr3bitset.lo antlr3collections.lo antlr3commontoken.lo
antlr3commontree.lo antlr3commontreeadaptor.lo
antlr3commontreenodestream.lo antlr3convertutf.lo antlr3cyclicdfa.lo
antlr3debughandlers.lo antlr3encodings.lo antlr3exception.lo
antlr3filestream.lo antlr3inputstream.lo antlr3intstream.lo antlr3lexer.lo
antlr3parser.lo antlr3rewritestreams.lo antlr3string.lo
antlr3tokenstream.lo antlr3treeparser.lo
libtool: link: rm -fr  .libs/libantlr3c.so
libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-h -Wl,libantlr3c.so
-o .libs/libantlr3c.so  .libs/antlr3baserecognizer.o .libs/antlr3basetree.o \
.libs/antlr3basetreeadaptor.o .libs/antlr3bitset.o .libs/antlr3collections.o \
.libs/antlr3commontoken.o .libs/antlr3commontree.o .libs/antlr3commontreeadaptor.o \
.libs/antlr3commontreenodestream.o .libs/antlr3convertutf.o .libs/antlr3cyclicdfa.o \
.libs/antlr3debughandlers.o .libs/antlr3encodings.o .libs/antlr3exception.o \
.libs/antlr3filestream.o .libs/antlr3inputstream.o .libs/antlr3intstream.o \
.libs/antlr3lexer.o .libs/antlr3parser.o .libs/antlr3rewritestreams.o \
                .libs/antlr3string.o .libs/antlr3tokenstream.o \
                .libs/antlr3treeparser.o
   -lc  -m32
libtool: link: false cru .libs/libantlr3c.a  antlr3baserecognizer.o
antlr3basetree.o antlr3basetreeadaptor.o antlr3bitset.o antlr3collections.o
antlr3commontoken.o antlr3commontree.o antlr3commontreeadaptor.o
antlr3commontreenodestream.o antlr3convertutf.o antlr3cyclicdfa.o
antlr3debughandlers.o antlr3encodings.o antlr3exception.o
antlr3filestream.o antlr3inputstream.o antlr3intstream.o antlr3lexer.o
antlr3parser.o antlr3rewritestreams.o antlr3string.o antlr3tokenstream.o
antlr3treeparser.o
gmake[1]: *** [libantlr3c.la] Error 1
gmake[1]: Leaving directory
`/export/opt/users/nodcosta/vinit/ANTLR/libantlr3c-3.4'
gmake: *** [all] Error 2


Some of the suspected line I have made bold. I am not getting the reason of
this failure.

Help is very much appreciated !!!


Thanks & Regards,
Vinit Metange
IBM India Software Lab, Bangalore
Mobile: +91-9986067607
Office:    +91-80-280-60838
"Life is Beautiful..."


> ------------>
> From:      |
> ------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Jim Idle <jimi@temporal-wave.com>                                                  \
|  >--------------------------------------------------------------------------------------------------------------------------------------------------|
 |------------>
> To:        |
> ------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |antlr-dev@antlr.org                                                                \
|  >--------------------------------------------------------------------------------------------------------------------------------------------------|
 |------------>
> Date:      |
> ------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |04/20/2012 11:21 PM                                                                \
|  >--------------------------------------------------------------------------------------------------------------------------------------------------|
 |------------>
> Subject:   |
> ------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Re: [antlr-dev] Building ANTLR C suntime from source                               \
|  >--------------------------------------------------------------------------------------------------------------------------------------------------|






Turn off building the debugger in to the runtime (see configure --help) -
Sun changed their header files and HP, as usual is just a mess. However
you could include the header by making a local mod as well, if you need
the debugger.

Jim

> -----Original Message-----
> From: antlr-dev-bounces@antlr.org [mailto:antlr-dev-bounces@antlr.org]
> On Behalf Of Vinit S Metange
> Sent: Thursday, April 19, 2012 8:38 PM
> To: antlr-dev@antlr.org
> Subject: [antlr-dev] Building ANTLR C suntime from source
> 
> 
> 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
_______________________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic