Menu

Error on Solaris2.8 with gcc 3.4.0

Help
Jerry
2005-01-21
2013-04-22
  • Jerry

    Jerry - 2005-01-21

    Errors occur for both cppunit1.10 and 1.08 version.
    After ./configure the cppunit package in Solaris2.8 with gcc 3.4.0, when 'make' the package, errors are outputed. The contents of log files for version 1.10 and 1.08 are attached below:

    =========== For cppunit1.10 =============
    ........... .............
    if g++ -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include -I../../include    -g -O2 -MT CommandLineParser.o -MD -MP -MF ".deps/CommandLineParser.Tpo" \
      -c -o CommandLineParser.o `test -f 'CommandLineParser.cpp' || echo './'`CommandLineParser.cpp; \
    then mv -f ".deps/CommandLineParser.Tpo" ".deps/CommandLineParser.Po"; \
    else rm -f ".deps/CommandLineParser.Tpo"; exit 1; \
    fi
    /bin/ksh ../../libtool --mode=link g++  -g -O2   -o DllPlugInTester -ldl DllPlugInTester.o CommandLineParser.o ../../src/cppunit/libcppunit.la
    mkdir .libs
    g++ -g -O2 -o .libs/DllPlugInTester DllPlugInTester.o CommandLineParser.o  -ldl ../../src/cppunit/.libs/libcppunit.so /usr/local/Gnu/lib/libstdc++.so -L/net/Src/Gnu/gcc-3.4.0/sparc-sun-solaris2.8/libstdc++-v3/src -L/net/Src/Gnu/gcc-3.4.0/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -L/net/Src/Gnu/gcc-3.4.0/gcc -L/usr/local/Gnu/sparc-sun-solaris2.8/bin -L/usr/local/Gnu/sparc-sun-solaris2.8/lib -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/Gnu/lib
    creating DllPlugInTester
    make[2]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/src/DllPlugInTester'
    make[2]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/src'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/src'
    make[1]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/src'
    Making all in include
    make[1]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include'
    Making all in cppunit
    make[2]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit'
    Making all in extensions
    make[3]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/extensions'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/extensions'
    Making all in ui
    make[3]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/ui'
    Making all in text
    make[4]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/ui/text'
    make[4]: Nothing to be done for `all'.
    make[4]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/ui/text'
    Making all in mfc
    make[4]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/ui/mfc'
    make[4]: Nothing to be done for `all'.
    make[4]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/ui/mfc'
    Making all in qt
    make[4]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/ui/qt'
    make[4]: Nothing to be done for `all'.
    make[4]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/ui/qt'
    make[4]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/ui'
    make[4]: Nothing to be done for `all-am'.
    make[4]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/ui'
    make[3]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/ui'
    Making all in plugin
    make[3]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/plugin'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/plugin'
    Making all in config
    make[3]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/config'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/config'
    Making all in tools
    make[3]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/tools'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/tools'
    Making all in portability
    make[3]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/portability'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit/portability'
    make[3]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit'
    make[3]: Nothing to be done for `all-am'.
    make[3]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit'
    make[2]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include/cppunit'
    make[2]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/include'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include'
    make[1]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/include'
    Making all in examples
    make[1]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/examples'
    Making all in hierarchy
    make[2]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/examples/hierarchy'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/examples/hierarchy'
    Making all in cppunittest
    make[2]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/examples/cppunittest'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/examples/cppunittest'
    Making all in simple
    make[2]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/examples/simple'
    if g++ -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include -I../../include    -g -O2 -MT ExampleTestCase.o -MD -MP -MF ".deps/ExampleTestCase.Tpo" \
      -c -o ExampleTestCase.o `test -f 'ExampleTestCase.cpp' || echo './'`ExampleTestCase.cpp; \
    then mv -f ".deps/ExampleTestCase.Tpo" ".deps/ExampleTestCase.Po"; \
    else rm -f ".deps/ExampleTestCase.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
    /bin/ksh ../../libtool --mode=link g++  -g -O2   -o simple -ldl ExampleTestCase.o Main.o ../../src/cppunit/libcppunit.la 
    mkdir .libs
    g++ -g -O2 -o .libs/simple ExampleTestCase.o Main.o  -ldl ../../src/cppunit/.libs/libcppunit.so /usr/local/Gnu/lib/libstdc++.so -L/net/Src/Gnu/gcc-3.4.0/sparc-sun-solaris2.8/libstdc++-v3/src -L/net/Src/Gnu/gcc-3.4.0/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -L/net/Src/Gnu/gcc-3.4.0/gcc -L/usr/local/Gnu/sparc-sun-solaris2.8/bin -L/usr/local/Gnu/sparc-sun-solaris2.8/lib -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/Gnu/lib
    creating simple
    make[2]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/examples/simple'
    Making all in ClockerPlugIn
    make[2]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/examples/ClockerPlugIn'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/examples/ClockerPlugIn'
    Making all in DumperPlugIn
    make[2]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/examples/DumperPlugIn'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/examples/DumperPlugIn'
    Making all in money
    make[2]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/examples/money'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/examples/money'
    make[2]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/examples'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/examples'
    make[1]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/examples'
    Making all in doc
    make[1]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/doc'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/doc'
    make[1]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2'
    make[1]: Nothing to be done for `all-am'.
    make[1]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2'
    css 34: /ensc/guests/yyuf/cppunit-1.10.2>

    =====================================

    May anybody help?
    Thanks.

     
    • Max Bernhardt

      Max Bernhardt - 2005-01-24

      There doesn't seem to an error in the log file you attached to your mail. It just says, that there is nothing to do in some directories, which is quite ok.

      Is there a libcppunit.a in <CPPUNITROOTPATH>/src/cppunit/.libs?

      Does a make install work?

      CU
      Max

       
    • Jerry

      Jerry - 2005-01-26

      There is a libcppunit.la in that location, not .a file.

      Because I just want to run the money/simple/hierarchy examples in cppunit package, it has nothing to do in those directories and I counldn't run them.

      after 'make install', it shows:

      make[1]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/src/cppunit'
      /bin/ksh ../../config/mkinstalldirs /usr/local/lib
      /bin/ksh ../../libtool --mode=install ../../config/install-sh -c  libcppunit.la /usr/local/lib/libcppunit.la
      ../../config/install-sh -c .libs/libcppunit-1.10.so.2.0.0 /usr/local/lib/libcppunit-1.10.so.2.0.0
      cp: cannot create /usr/local/lib/_inst.25271_: Read-only file system
      make[1]: *** [install-libLTLIBRARIES] Error 2
      make[1]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/src/cppunit'
      make: *** [install-am] Error 2
      css 30: /ensc/guests/yyuf/cppunit-1.10.2/src/cppunit> cd ..
      css 31: /ensc/guests/yyuf/cppunit-1.10.2/src> cd ..
      css 32: /ensc/guests/yyuf/cppunit-1.10.2> make install
      Making install in src
      make[1]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/src'
      Making install in cppunit
      make[2]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/src/cppunit'
      make[3]: Entering directory `/ensc/guests/yyuf/cppunit-1.10.2/src/cppunit'
      /bin/ksh ../../config/mkinstalldirs /usr/local/lib
      /bin/ksh ../../libtool --mode=install ../../config/install-sh -c  libcppunit.la /usr/local/lib/libcppunit.la
      ../../config/install-sh -c .libs/libcppunit-1.10.so.2.0.0 /usr/local/lib/libcppunit-1.10.so.2.0.0
      cp: cannot create /usr/local/lib/_inst.25318_: Read-only file system
      make[3]: *** [install-libLTLIBRARIES] Error 2
      make[3]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/src/cppunit'
      make[2]: *** [install-am] Error 2
      make[2]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/src/cppunit'
      make[1]: *** [install-recursive] Error 1
      make[1]: Leaving directory `/ensc/guests/yyuf/cppunit-1.10.2/src'
      make: *** [install-recursive] Error 1

      not work.

      Thanks a lot.

       
    • Max Bernhardt

      Max Bernhardt - 2005-01-26

      If there's no statically linked library, then there should at least be shared objects (*.so or *.so.*) in <CPPUNITROOTPATH>/src/cppunit/.libs .
      (Did you use enable-static=no when configuring?)

      The problem with make install comes from the fact, that you try to install into /usr/local/lib and do not have write access there.
      Try to configure with --prefix=<PATH_WHERE_YOU_HAVE_WRITE_ACCESS>
      and rebuild.

      BTW: Money is a windows application ... ;-)

      CU
      Max

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.