Menu

Error in make check 1.10.2

Help
RJS
2004-12-06
2013-04-22
  • RJS

    RJS - 2004-12-06

    I am running Redhat Fedora Core 3.  I am new to all of this so please forgive me if I have done something foolish.  Everything seemed to compile fine but I received the following error doing a 'make check':

    mkdir .libs
    g++ -I. -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class -DPHP_ATOM_INC -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class/include -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class/main -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -c /home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class/example_wrap.cpp  -fPIC -DPIC -o .libs/example_wrap.o
    g++ -I. -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class -DPHP_ATOM_INC -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class/include -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class/main -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -c /home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class/example_wrap.cpp  -fPIC -DPIC -o .libs/example_wrap.o
    libtool: link: `example.lo' is not a valid libtool object
    make[2]: *** [example.la] Error 1
    make[2]: Target `all' not remade because of errors.
    make[1]: *** [check] Error 2

    Any feedback is appreciated.

    Cheers,
    rjs_

     
    • RJS

      RJS - 2004-12-06

      My apologies, I pasted the wrong output in here, it should have read:

      mkdir .libs
      g++ -I. -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class -DPHP_ATOM_INC -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class/include -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class/main -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -c /home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class/example_wrap.cpp  -fPIC -DPIC -o .libs/example_wrap.o
      g++ -I. -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class -DPHP_ATOM_INC -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class/include -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class/main -I/home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -c /home/rsnell/gnuradio2.3/SWIG-1.3.23/Examples/php4/class/example_wrap.cpp  -fPIC -DPIC -o .libs/example_wrap.o
      libtool: link: `example.lo' is not a valid libtool object
      make[2]: *** [example.la] Error 1
      make[2]: Target `all' not remade because of errors.
      make[1]: *** [check] Error 2

       
    • RJS

      RJS - 2004-12-06

      Darn it, now this is getting embarrasing, let me try this again:

      Making check in examples
      make[1]: Entering directory `/home/rsnell/gnuradio2.3/cppunit-1.10.2/examples'
      Making check in hierarchy
      make[2]: Entering directory `/home/rsnell/gnuradio2.3/cppunit-1.10.2/examples/hierarchy'
      make  hierarchy
      make[3]: Entering directory `/home/rsnell/gnuradio2.3/cppunit-1.10.2/examples/hierarchy'
      if g++ -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include -I../../include    -g -O2 -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    -g -O2 -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    -g -O2 -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/rsnell/gnuradio2.3/cppunit-1.10.2/examples/hierarchy'
      make[2]: *** [check-am] Error 2
      make[2]: Leaving directory `/home/rsnell/gnuradio2.3/cppunit-1.10.2/examples/hierarchy'
      make[1]: *** [check-recursive] Error 1
      make[1]: Leaving directory `/home/rsnell/gnuradio2.3/cppunit-1.10.2/examples'
      make: *** [check-recursive] Error 1

       
    • RJS

      RJS - 2004-12-12

      Problem solved by adding an include for <iostream.h> in cppunit/examples/hierarchy/main.cpp and changing line that references m_game in ChessTest.h in examples/hierarchy to this->m_game...

      Apparently something new with g++ 3.4.2.

       

Log in to post a comment.