gfsd-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gfsd]Dejagnu-1.4.1 : Unable to compile


From: Larry Griffith
Subject: [gfsd]Dejagnu-1.4.1 : Unable to compile
Date: Thu, 08 Aug 2002 12:26:31 -0400

Dear Ladies and Gentlemen:

        I was unable to install dejagnu-1.4.1 on a SUN Enterprise 250 running
Solaris 9, using the GNU C++ compiler v3.0.4 (In fact, I wanted dejagnu
for testing
a new installation of v3.1.)  I received numerous compilation errors.  A
log
of my unsuccessful installation follows:

# Define this for a test compile
# Comment it out for full installation
export TESTCOMPILE=1
+ export TESTCOMPILE=1

# Export enviroment symbols - User configurable
export VER=1.4.1
+ export VER=1.4.1
export SYSADMIN=larry
+ export SYSADMIN=larry
export ROOTDIR=/export/home/${SYSADMIN}/projects
+ export ROOTDIR=/export/home/larry/projects
export INSTALLDIR=/usr/local
+ export INSTALLDIR=/usr/local

# Information for a bug report
uname -a
+ uname -a
SunOS africa 5.9 Generic sun4u sparc SUNW,Ultra-250
if [[ -f /usr/local/bin/gcc ]]
then
  /usr/local/bin/gcc -v
else
  echo "You need to install GNU gcc first"
  exit
fi
+ [[ -f /usr/local/bin/gcc ]]
+ /usr/local/bin/gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.0.4/specs
Configured with: /export/home/larry/projects/gcc-3.0.4/configure
--prefix=/usr/local --enable-target-optspace
Thread model: posix
gcc version 3.0.4
export PATH=${PATH}:/usr/local/bin:/usr/ccs/bin
+ export
PATH=/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/usr/local/bin:/bin:/usr/bin:/usr/sbin:/opt/SUNWspro/WS6U2/
bin:/usr/ucb:/usr/local/netscape:/usr/local/Acrobat4/bin:/usr/lib/nis:/opt/NSCPcom:/usr/local/bin:/usr/ccs/bin
echo $PATH
+ echo
/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/usr/local/bin:/bin:/usr/bin:/usr/sbin:/opt/SUNWspro/WS6U2/bin:/us
r/ucb:/usr/local/netscape:/usr/local/Acrobat4/bin:/usr/lib/nis:/opt/NSCPcom:/usr/local/bin:/usr/ccs/bin
/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/usr/local/bin:/bin:/usr/bin:/usr/sbin:/opt/SUNWspro/WS6U2/bin:/usr/ucb:/
usr/local/netscape:/usr/local/Acrobat4/bin:/usr/lib/nis:/opt/NSCPcom:/usr/local/bin:/usr/ccs/bin

# Export environment symbols - do not change
export DEJAGNUVER=dejagnu-${VER}
+ export DEJAGNUVER=dejagnu-1.4.1
export SRCDIR=${ROOTDIR}/${DEJAGNUVER}
+ export SRCDIR=/export/home/larry/projects/dejagnu-1.4.1
export BININSTALLDIR=${INSTALLDIR}/bin
+ export BININSTALLDIR=/usr/local/bin
export SITE="ftp://ftp.gnu.org/pub/gnu/dejagnu/${DEJAGNUVER}.tar.gz";
+ export SITE=ftp://ftp.gnu.org/pub/gnu/dejagnu/dejagnu-1.4.1.tar.gz
export GTAR=${BININSTALLDIR}/gtar
+ export GTAR=/usr/local/bin/gtar
export GMAKE=${BININSTALLDIR}/gmake
+ export GMAKE=/usr/local/bin/gmake
export WGET=${BININSTALLDIR}/wget
+ export WGET=/usr/local/bin/wget

# Check for necessary software
if [[ ! -f ${GTAR} ]]
then
  echo "You need to install GNU tar as gtar first"
  exit
fi
+ [[ ! -f /usr/local/bin/gtar ]]
if [[ ! -f ${GMAKE} ]]
then
  echo "You need to install GNU make as gmake first"
  exit
fi
+ [[ ! -f /usr/local/bin/gmake ]]
if [[ ! -f ${WGET} ]]
then
  echo "You need to install GNU wget first"
  exit
fi
+ [[ ! -f /usr/local/bin/wget ]]

cd ${ROOTDIR}
+ cd /export/home/larry/projects
if [[ ! -f ${DEJAGNUVER}.tar.gz ]]
then
  ${WGET} ${SITE}
  if [[ ! -f ${DEJAGNUVER}.tar.gz ]]
  then
    echo "You need ${DEJAGNUVER}.tar.gz from ${SITE}"
    exit
  fi
fi
+ [[ ! -f dejagnu-1.4.1.tar.gz ]]
+ /usr/local/bin/wget
ftp://ftp.gnu.org/pub/gnu/dejagnu/dejagnu-1.4.1.tar.gz
--10:51:00--  ftp://ftp.gnu.org/pub/gnu/dejagnu/dejagnu-1.4.1.tar.gz
           => `dejagnu-1.4.1.tar.gz'
Resolving ftp.gnu.org... done.
Connecting to ftp.gnu.org[199.232.41.9]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/gnu/dejagnu ... done.
==> PORT ... done.    ==> RETR dejagnu-1.4.1.tar.gz ... done.
Length: 1,330,595 (unauthoritative)

...Numerous progress messages about a successful download...

10:51:02 (935.50 KB/s) - `dejagnu-1.4.1.tar.gz' saved [1330595]

+ [[ ! -f dejagnu-1.4.1.tar.gz ]]
ls -al ${DEJAGNUVER}.tar.gz
+ ls -al dejagnu-1.4.1.tar.gz
-rw-------   1 root     other    1330595 Aug  8 10:51
dejagnu-1.4.1.tar.gz
sum ${DEJAGNUVER}.tar.gz
+ sum dejagnu-1.4.1.tar.gz
43708 2599 dejagnu-1.4.1.tar.gz

# Delete old builds
if [[ -d ${DEJAGNUVER} ]]
then
  rm -r -f ${DEJAGNUVER}
fi
+ [[ -d dejagnu-1.4.1 ]]

#unpack and create build directory
${GTAR} zxvf ${DEJAGNUVER}.tar.gz
+ /usr/local/bin/gtar zxvf dejagnu-1.4.1.tar.gz

...Numerous messages listing the unpacked files...

chown -R ${SYSADMIN}:other ${SRCDIR}
+ chown -R larry:other /export/home/larry/projects/dejagnu-1.4.1

# Go into source directory
cd ${SRCDIR}
+ cd /export/home/larry/projects/dejagnu-1.4.1

if [ -f Makefile ]
then
  ${GMAKE} clean
fi
+ [ -f Makefile ]

#Build and test the package
./configure --prefix=${INSTALLDIR}
+ ./configure --prefix=/usr/local
creating cache ./config.cache
checking for a BSD compatible install... ./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... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles...
no
checking whether make sets ${MAKE}... (cached) yes
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 c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for a BSD compatible install... ./install-sh -c
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for docbook tools... none
checking for the tclsh program... none
checking for tclsh... /usr/local/bin/tclsh
updating cache ./config.cache
creating ./config.status
creating Makefile
creating doc/Makefile
creating testsuite/Makefile
creating example/Makefile
creating testsuite/libdejagnu/Makefile
configuring in example/calc
running /bin/sh ./configure  --prefix=/usr/local
--cache-file=../.././config.cache --srcdir=.
loading cache ../.././config.cache
checking for a BSD compatible install... ./../../install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) 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... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... ./../../install-sh -c
checking how to run the C preprocessor... gcc -E
checking for stdlib.h... yes
checking for strcmp... yes
updating cache ../.././config.cache
creating ./config.status
creating Makefile
creating calc.h
${GMAKE}
+ /usr/local/bin/gmake
Making all in doc
gmake[1]: Entering directory
`/export/home/larry/projects/dejagnu-1.4.1/doc'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory
`/export/home/larry/projects/dejagnu-1.4.1/doc'
Making all in testsuite
gmake[1]: Entering directory
`/export/home/larry/projects/dejagnu-1.4.1/testsuite'
Making a new site.exp file...
Making all in libdejagnu
gmake[2]: Entering directory
`/export/home/larry/projects/dejagnu-1.4.1/testsuite/libdejagnu'
c++ -DPACKAGE=\"dejagnu\" -DVERSION=\"1.4.1\"  -I. -I.      -I../.. -g
-c unit.cc
In file included from unit.cc:4:
../../dejagnu.h: In function `char* testout(int)':
../../dejagnu.h:115: ISO C++ forbids declaration of `ostrstream' with no
type
../../dejagnu.h:115: parse error before `(' token
../../dejagnu.h:116: `oss' undeclared (first use this function)
../../dejagnu.h:116: (Each undeclared identifier is reported only once
for each 
   function it appears in.)
../../dejagnu.h:116: `ios' undeclared (first use this function)
../../dejagnu.h:116: parse error before `::' token
../../dejagnu.h:117: `ends' undeclared (first use this function)
../../dejagnu.h: At global scope:
../../dejagnu.h:126: 'string' is used as a type, but is not defined as a
type.
../../dejagnu.h:138: type specifier omitted for parameter
../../dejagnu.h:138: parse error before `)' token
../../dejagnu.h:145: `string' was not declared in this scope
../../dejagnu.h:145: parse error before `)' token
../../dejagnu.h:156: `string' was not declared in this scope
../../dejagnu.h:156: parse error before `)' token
../../dejagnu.h:167: `string' was not declared in this scope
../../dejagnu.h:167: parse error before `)' token
../../dejagnu.h:178: `string' was not declared in this scope
../../dejagnu.h:178: parse error before `)' token
../../dejagnu.h:199: ISO C++ forbids declaration of `ostream' with no
type
../../dejagnu.h:199: `ostream' is neither function nor member function;
cannot 
   be declared friend
../../dejagnu.h:199: parse error before `&' token
../../dejagnu.h:203: semicolon missing after declaration of `TestState'
../../dejagnu.h: In member function `void TestState::testrun(...)':
../../dejagnu.h:139: `b' undeclared (first use this function)
../../dejagnu.h:140: `s' undeclared (first use this function)
../../dejagnu.h: In member function `void TestState::pass(...)':
../../dejagnu.h:148: `lastmsg' undeclared (first use this function)
../../dejagnu.h:149: `cout' undeclared (first use this function)
../../dejagnu.h:149: `endl' undeclared (first use this function)
../../dejagnu.h: In member function `void TestState::pass(const char*)':
../../dejagnu.h:152: parse error before `int'
../../dejagnu.h: In member function `void TestState::fail(const char*)':
../../dejagnu.h:163: parse error before `int'
../../dejagnu.h: In member function `void TestState::untested(const
char*)':
../../dejagnu.h:174: parse error before `int'
../../dejagnu.h: In member function `void TestState::unresolved(const
char*)':
../../dejagnu.h:185: parse error before `int'
../../dejagnu.h: At global scope:
../../dejagnu.h:203: ISO C++ forbids defining types within return type
../../dejagnu.h:203: extraneous `int' ignored
../../dejagnu.h:203: semicolon missing after declaration of `class
TestState'
../../dejagnu.h:206: parse error before `)' token
unit.cc:17: 'string' is used as a type, but is not defined as a type.
unit.cc: In function `int main(int, char**)':
unit.cc:51: `streambuf' undeclared (first use this function)
unit.cc:51: `sb' undeclared (first use this function)
unit.cc:55: `class TestClass1' has no member named `tname'
unit.cc:57: `class TestClass1' has no member named `tname'
unit.cc:59: `class TestClass1' has no member named `tname'
gmake[2]: *** [unit.o] Error 1
gmake[2]: Leaving directory
`/export/home/larry/projects/dejagnu-1.4.1/testsuite/libdejagnu'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/export/home/larry/projects/dejagnu-1.4.1/testsuite'
gmake: *** [all-recursive] Error 1
${GMAKE} check
+ /usr/local/bin/gmake check
Making check in doc
gmake[1]: Entering directory
`/export/home/larry/projects/dejagnu-1.4.1/doc'
gmake[1]: Nothing to be done for `check'.
gmake[1]: Leaving directory
`/export/home/larry/projects/dejagnu-1.4.1/doc'
Making check in testsuite
gmake[1]: Entering directory
`/export/home/larry/projects/dejagnu-1.4.1/testsuite'
Making check in libdejagnu
gmake[2]: Entering directory
`/export/home/larry/projects/dejagnu-1.4.1/testsuite/libdejagnu'
c++ -DPACKAGE=\"dejagnu\" -DVERSION=\"1.4.1\"  -I. -I.      -I../.. -g
-c unit.cc
In file included from unit.cc:4:
../../dejagnu.h: In function `char* testout(int)':
../../dejagnu.h:115: ISO C++ forbids declaration of `ostrstream' with no
type
../../dejagnu.h:115: parse error before `(' token
../../dejagnu.h:116: `oss' undeclared (first use this function)
../../dejagnu.h:116: (Each undeclared identifier is reported only once
for each 
   function it appears in.)
../../dejagnu.h:116: `ios' undeclared (first use this function)
../../dejagnu.h:116: parse error before `::' token
../../dejagnu.h:117: `ends' undeclared (first use this function)
../../dejagnu.h: At global scope:
../../dejagnu.h:126: 'string' is used as a type, but is not defined as a
type.
../../dejagnu.h:138: type specifier omitted for parameter
../../dejagnu.h:138: parse error before `)' token
../../dejagnu.h:145: `string' was not declared in this scope
../../dejagnu.h:145: parse error before `)' token
../../dejagnu.h:156: `string' was not declared in this scope
../../dejagnu.h:156: parse error before `)' token
../../dejagnu.h:167: `string' was not declared in this scope
../../dejagnu.h:167: parse error before `)' token
../../dejagnu.h:178: `string' was not declared in this scope
../../dejagnu.h:178: parse error before `)' token
../../dejagnu.h:199: ISO C++ forbids declaration of `ostream' with no
type
../../dejagnu.h:199: `ostream' is neither function nor member function;
cannot 
   be declared friend
../../dejagnu.h:199: parse error before `&' token
../../dejagnu.h:203: semicolon missing after declaration of `TestState'
../../dejagnu.h: In member function `void TestState::testrun(...)':
../../dejagnu.h:139: `b' undeclared (first use this function)
../../dejagnu.h:140: `s' undeclared (first use this function)
../../dejagnu.h: In member function `void TestState::pass(...)':
../../dejagnu.h:148: `lastmsg' undeclared (first use this function)
../../dejagnu.h:149: `cout' undeclared (first use this function)
../../dejagnu.h:149: `endl' undeclared (first use this function)
../../dejagnu.h: In member function `void TestState::pass(const char*)':
../../dejagnu.h:152: parse error before `int'
../../dejagnu.h: In member function `void TestState::fail(const char*)':
../../dejagnu.h:163: parse error before `int'
../../dejagnu.h: In member function `void TestState::untested(const
char*)':
../../dejagnu.h:174: parse error before `int'
../../dejagnu.h: In member function `void TestState::unresolved(const
char*)':
../../dejagnu.h:185: parse error before `int'
../../dejagnu.h: At global scope:
../../dejagnu.h:203: ISO C++ forbids defining types within return type
../../dejagnu.h:203: extraneous `int' ignored
../../dejagnu.h:203: semicolon missing after declaration of `class
TestState'
../../dejagnu.h:206: parse error before `)' token
unit.cc:17: 'string' is used as a type, but is not defined as a type.
unit.cc: In function `int main(int, char**)':
unit.cc:51: `streambuf' undeclared (first use this function)
unit.cc:51: `sb' undeclared (first use this function)
unit.cc:55: `class TestClass1' has no member named `tname'
unit.cc:57: `class TestClass1' has no member named `tname'
unit.cc:59: `class TestClass1' has no member named `tname'
gmake[2]: *** [unit.o] Error 1
gmake[2]: Leaving directory
`/export/home/larry/projects/dejagnu-1.4.1/testsuite/libdejagnu'
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Leaving directory
`/export/home/larry/projects/dejagnu-1.4.1/testsuite'
gmake: *** [check-recursive] Error 1

if [[ "x${TESTCOMPILE}" = "x1" ]]
then
  exit
fi
+ [[ x1 = x1 ]]
+ exit
 
-- 
============================================================================
Larry Griffith                       Dept. of Computer & Info Science
address@hidden               Westfield State College
(413) 572-5294                       Westfield, MA 01086 USA
PGP public key available at: http://cs.wsc.ma.edu/dcis/griffith.html
============================================================================



reply via email to

[Prev in Thread] Current Thread [Next in Thread]