bug-dejagnu
[Top][All Lists]
Advanced

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

[Bug-dejagnu] dejagnu 1.4.* configure/make fails on MacOS X (10.2.2/Dar


From: Shrisha Rao
Subject: [Bug-dejagnu] dejagnu 1.4.* configure/make fails on MacOS X (10.2.2/Darwin 6.2)
Date: Thu, 19 Dec 2002 05:23:05 -0600

Greetings.

After a successful ./configure, here is the screen readout from `make' (1.4.1 for example, similar in the other cases):

[anandatirtha:~/bin/dejagnu-1.4.1] shrao% make
Making all in doc
make[1]: Nothing to be done for `all'.
Making all in testsuite
Making a new site.exp file...
Making all in 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: warning: 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 `string'
../../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: warning: 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: warning: 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'
make[2]: *** [unit.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

The corresponding config.log has this:

[anandatirtha:~/bin/dejagnu-1.4.1] shrao% more config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:565: checking for a BSD compatible install
configure:618: checking whether build environment is sane
configure:675: checking whether make sets ${MAKE}
configure:721: checking for working aclocal
configure:734: checking for working autoconf
configure:747: checking for working automake
configure:760: checking for working autoheader
configure:773: checking for working makeinfo
configure:787: checking whether to enable maintainer-specific portions of Makefiles
configure:810: checking whether make sets ${MAKE}
configure:840: checking for gcc
configure:953: checking whether the C compiler (gcc  ) works
configure:969: gcc -o conftest    conftest.c  1>&5
configure:995: checking whether the C compiler (gcc ) is a cross-compiler
configure:1000: checking whether we are using GNU C
configure:1009: gcc -E conftest.c
configure:1028: checking whether gcc accepts -g
configure:1064: checking for c++
configure:1096: checking whether the C++ compiler (c++  ) works
configure:1112: c++ -o conftest    conftest.C  1>&5
configure:1138: checking whether the C++ compiler (c++ ) is a cross-compiler
configure:1143: checking whether we are using GNU C++
configure:1152: c++ -E conftest.C
configure:1171: checking whether c++ accepts -g
configure:1214: checking for a BSD compatible install
configure:1267: checking for Cygwin environment
configure:1283: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:1279: `__CYGWIN32__' undeclared (first use in this function)
configure:1279: (Each undeclared identifier is reported only once
configure:1279: for each function it appears in.)
configure: failed program was:
#line 1272 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:1300: checking for mingw32 environment
configure:1312: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:1308: `__MINGW32__' undeclared (first use in this function)
configure:1308: (Each undeclared identifier is reported only once
configure:1308: for each function it appears in.)
configure: failed program was:
#line 1305 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:1331: checking for executable suffix
configure:1341: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1365: checking for docbook tools
configure:1411: checking for the tclsh program
configure:1456: checking for tclsh

So I tried using env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
but then the configure itself fails:

[anandatirtha:~/bin/dejagnu-1.4.1] shrao% env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
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... (cached) gcc
checking whether the C compiler (gcc  -s) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

At this time config.log has this:

[anandatirtha:~/bin/dejagnu-1.4.1] shrao% cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:565: checking for a BSD compatible install
configure:618: checking whether build environment is sane
configure:675: checking whether make sets ${MAKE}
configure:721: checking for working aclocal
configure:734: checking for working autoconf
configure:747: checking for working automake
configure:760: checking for working autoheader
configure:773: checking for working makeinfo
configure:787: checking whether to enable maintainer-specific portions of Makefiles
configure:810: checking whether make sets ${MAKE}
configure:840: checking for gcc
configure:953: checking whether the C compiler (gcc  -s) works
configure:969: gcc -o conftest  -I/usr/local/include -s conftest.c  1>&5
ld: can't use -s with input files containg indirect symbols (output file must contain at least global symbols, for maximum stripping use -x)
configure: failed program was:

#line 964 "configure"
#include "confdefs.h"

main(){return(0);}

config.guess does not bring up any screen output on a MacOS X system.

I am using the default, Apple's gcc 3.1 compiler.

Regards,

Shrisha Rao




reply via email to

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