Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#142 make check does not compile

1.10.2
closed
nobody
5
2005-07-19
2005-04-29
No

make check does not compile with gcc343 or gcc400,
below is output from make check with gcc342

Michael Cieslinski

make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/home/cie019/cppunit-
gcc40/cppunit-1.10.2/include/cppunit'
make[2]: Leaving directory `/home/cie019/cppunit-
gcc40/cppunit-1.10.2/include/cppunit'
make[2]: Entering directory `/home/cie019/cppunit-
gcc40/cppunit-1.10.2/include'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/home/cie019/cppunit-
gcc40/cppunit-1.10.2/include'
make[1]: Leaving directory `/home/cie019/cppunit-
gcc40/cppunit-1.10.2/include'
Making check in examples
make[1]: Entering directory `/home/cie019/cppunit-
gcc40/cppunit-1.10.2/examples'
Making check in hierarchy
make[2]: Entering directory `/home/cie019/cppunit-
gcc40/cppunit-1.10.2/examples/hierarchy'
make hierarchy
make[3]: Entering directory `/home/cie019/cppunit-
gcc40/cppunit-1.10.2/examples/hierarchy'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../config -
I../../include -I../../include -O0 -g -pipe -
march=opteron -fmessage-length=0 -falign-functions=16 -
MT BoardGame.o -MD -MP -
MF ".deps/BoardGame.Tpo" \ -c -o BoardGame.o `test -f 'BoardGame.cpp' ||
echo './'`BoardGame.cpp; \ then mv -
f ".deps/BoardGame.Tpo" ".deps/BoardGame.Po"; \ else rm -f ".deps/BoardGame.Tpo"; exit 1; \ fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../../config -
I../../include -I../../include -O0 -g -pipe -
march=opteron -fmessage-length=0 -falign-functions=16 -
MT Chess.o -MD -MP -MF ".deps/Chess.Tpo" \ -c -o Chess.o `test -f 'Chess.cpp' || echo './'`Chess.cpp;
\ then mv -f ".deps/Chess.Tpo" ".deps/Chess.Po"; \ else rm -f ".deps/Chess.Tpo"; exit 1; \ fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../../config -
I../../include -I../../include -O0 -g -pipe -
march=opteron -fmessage-length=0 -falign-functions=16 -
MT main.o -MD -MP -MF ".deps/main.Tpo" \ -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; \ else rm -f ".deps/main.Tpo"; exit 1; \ fi
In file included from main.cpp:6:
ChessTest.h: In member function `void
ChessTest<GAMECLASS>::testNumberOfPieces()':
ChessTest.h:19: error: `m_game' undeclared (first use
this function)
ChessTest.h:19: error: (Each undeclared identifier is
reported only once for each function it appears in.)
ChessTest.h:19: error: no matching function for call to
`CppUnit::Asserter::failIf(<type error>,
CppUnit::Message&, CppUnit::SourceLine&)'
../../include/cppunit/Asserter.h:66: note: candidates are:
static void CppUnit::Asserter::failIf(bool, const
CppUnit::Message&, const CppUnit::SourceLine&)
../../include/cppunit/Asserter.h:77: note:
static void CppUnit::Asserter::failIf(bool, std::string,
const CppUnit::SourceLine&)
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/home/cie019/cppunit-
gcc40/cppunit-1.10.2/examples/hierarchy'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/cie019/cppunit-
gcc40/cppunit-1.10.2/examples/hierarchy'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/cie019/cppunit-
gcc40/cppunit-1.10.2/examples'
make: *** [check-recursive] Error 1

cie019@berta:~/cppunit-gcc40$ gcc -v
Reading specs from /usr/lib/gcc/x86_64-redhat-
linux/3.4.2/specs
Configured with: ../configure --prefix=/usr --
mandir=/usr/share/man --infodir=/usr/share/info --enable-
shared --enable-threads=posix --disable-checking --with-
system-zlib --enable-__cxa_atexit --disable-libunwind-
exceptions --enable-languages=c,c++,objc,java,f77 --
enable-java-awt=gtk --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.2 20040907 (Red Hat 3.4.2-2)
cie019@berta:~/cppunit-gcc40$

Discussion

    • status: open --> closed
     
  • Logged In: YES
    user_id=196852

    Already fixed in 1.11.0.

    Baptiste.