[antlr-interest] Building Problems under Tru64

Andre Moll amoll-mailer at libp.com
Thu Nov 22 02:32:41 PST 2001


Hi,

I am trying to build the cpp libs under Tru64 unix. I fail to build using
cxx as well using gcc. Has anybody successfuly build the antlr libraries
with Compaq Tru64 UNIX V5.1 (Rev. 732) and could give me a hind what is
going wrong?

For cxx I tried already the compilerflags -std gnu; -std ansi; -std
strict_ansi without any success.

Thx in advance, Andre

Using cxx:
========

----
./configure
----# ./configure
creating cache ./config.cache
checking for a BSD compatible install... scripts/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking host system type... alphaev6-dec-osf5.1
checking build system type... alphaev6-dec-osf5.1
checking for ranlib... ranlib
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... no
checking whether we are using GNU C... no
checking whether cc accepts -g... yes
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/bin/nm
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking whether we are using GNU C... no
checking for object suffix... o
checking for executable suffix... no
checking for cc option to produce PIC... none
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc static flag -non_shared works... -non_shared
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm output... failed
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... osf5.1 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking for c++... no
checking for g++... no
checking for gcc... no
checking for CC... no
checking for cxx... cxx
checking whether the C++ compiler (cxx  ) works... yes
checking whether the C++ compiler (cxx  ) is a cross-compiler... no
checking whether we are using GNU C++... no
checking whether cxx accepts -g... yes
checking how to run the C++ preprocessor... cxx -E
checking for ranlib... (cached) ranlib
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating antlr/Makefile

---
gnu make (cxx)
---# gmake
Making all in src
gmake[1]: Entering directory `/usr/local/src/antlr-2.7.1/lib/cpp/src'
/bin/sh ../libtool --mode=compile
cxx -DPACKAGE=\"libantlr\" -DVERSION=\"2.7.1\"  -I. -I.  -I..    -g  -c
CharBuffer.cpp
cxx -DPACKAGE=\"libantlr\" -DVERSION=\"2.7.1\" -I. -I. -I.. -g -Wp,-MD,.deps
/CharBuffer.pp -c CharBuffer.cpp -o CharBuffer.o
cxx: Error: ../antlr/CharBuffer.hpp, line 58: namespace "std" has no member
          "istream"
        ANTLR_USE_NAMESPACE(std)istream& input;
--------------------------------^
cxx: Error: ../antlr/CharBuffer.hpp, line 62: qualified name is not allowed
        CharBuffer(ANTLR_USE_NAMESPACE(std)istream& input_);
-------------------^
cxx: Error: ../antlr/CharBuffer.hpp, line 62: expected a ")"
        CharBuffer(ANTLR_USE_NAMESPACE(std)istream& input_);
--------------------------------------------------^
cxx: Warning: ../antlr/CharBuffer.hpp, line 55: class "antlr::CharBuffer"
          defines no constructor to initialize the following:
            reference member "antlr::CharBuffer::input"
class CharBuffer : public InputBuffer {
------^
cxx: Error: CharBuffer.cpp, line 51: namespace "std" has no member "istream"
CharBuffer::CharBuffer(ANTLR_USE_NAMESPACE(std)istream& input_)
-----------------------------------------------^
cxx: Error: CharBuffer.cpp, line 51: no instance of overloaded function
          "antlr::CharBuffer::CharBuffer" matches the specified type
CharBuffer::CharBuffer(ANTLR_USE_NAMESPACE(std)istream& input_)
------------^
cxx: Error: CharBuffer.cpp, line 52: expected a "{"
: input(input_)
^
cxx: Warning: CharBuffer.cpp, line 53: missing return statement at end of
          non-void function "antlr::CharBuffer::CharBuffer"
{}
-^
cxx: Info: 6 errors detected in the compilation of "CharBuffer.cpp".
gmake[1]: *** [CharBuffer.lo] Error 1
gmake[1]: Leaving directory `/usr/local/src/antlr-2.7.1/lib/cpp/src'
gmake: *** [all-recursive] Error 1

using g++
=======

--------
./configure
-------#
./configure
creating cache ./config.cache
checking for a BSD compatible install... scripts/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking host system type... alphaev6-dec-osf5.1
checking build system type... alphaev6-dec-osf5.1
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/bin/nm
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... none
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm output... failed
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... osf5.1 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking for c++... no
checking for g++... g++
checking whether the C++ compiler (g++  ) works... yes
checking whether the C++ compiler (g++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ranlib... (cached) ranlib
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating antlr/Makefile

-----
gnu make (c++)
-----

gmake[1]: Entering directory `/usr/local/src/antlr-2.7.1/lib/cpp/src'
/bin/sh ../libtool --mode=compile
g++ -DPACKAGE=\"libantlr\" -DVERSION=\"2.7.1\"  -I. -I.  -I..    -g -O2 -W -
Wall -pipe  -c CharBuffer.cpp
g++ -DPACKAGE=\"libantlr\" -DVERSION=\"2.7.1\" -I. -I. -I.. -g -O2 -W -Wall 
-pipe -Wp,-MD,.deps/CharBuffer.pp -c CharBuffer.cpp -o CharBuffer.o
as: Error: No source or object files specified on the command line
gmake[1]: *** [CharBuffer.lo] Error 1
gmake[1]: Leaving directory `/usr/local/src/antlr-2.7.1/lib/cpp/src'
gmake: *** [all-recursive] Error 1





 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list