Menu

cppunit build for Sun Solaris

Help
DimaS
2007-11-01
2013-04-22
  • DimaS

    DimaS - 2007-11-01

    Hello,

    I currenlty work on Sun Solaris 5.8. On this system i use gcc to build applications (gcc version is 3.4.3). I've downloaded cppunit-1.10.2 and get errors trying to build it.

    Is it possible to build cppunit-1.10.2 with gcc on Solaris 8?

    After i run "./configure" and "make" i get the following error:

    In file included from DllPlugInTester.cpp:17:
    CommandLineParser.h:26: error: using-declaration for non-member at class scope
    CommandLineParser.h:26: error: expected `;' before "m_parameters"
    DllPlugInTester.cpp: In function `bool runTests(const CommandLineParser&)':
    DllPlugInTester.cpp:36: error: `PlugInManager' is not a member of `CppUnit'
    DllPlugInTester.cpp:36: error: expected `;' before "plugInManager"
    DllPlugInTester.cpp:71: error: `plugInManager' undeclared (first use this function)
    DllPlugInTester.cpp:71: error: (Each undeclared identifier is reported only once for each function it appears in.)
    DllPlugInTester.cpp:71: error: 'struct CommandLinePlugInInfo' has no member named 'm_parameters'
    DllPlugInTester.cpp: In function `int main(int, const char**)':
    DllPlugInTester.cpp:243: error: `CppUnit::DynamicLibraryManagerException' has not been declared
    DllPlugInTester.cpp:243: error: invalid catch parameter
    DllPlugInTester.cpp:246: error: `e' undeclared (first use this function)
    *** Error code 1
    make: Fatal error: Command failed for target `DllPlugInTester.o'
    Current working directory /usr/local/asm/cppunit-1.10.2/src/DllPlugInTester
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive'
    Current working directory /usr/local/asm/cppunit-1.10.2/src
    *** Error code 1
    make: Fatal error: Command failed for target `all-recursive'

    How can this problem be solved?
    Thank you in advance!
    DimaS.

     
    • Daniel

      Daniel - 2007-11-21

      This may have nothing to do with the problem you are seeing - but I had difficulty initially installing CppUnit on a company owned Linux RedHat 9.0 server because the /usr/local/.. folders were write locked for my account (the 'root' administrator owned those folders). 

      In order to install CppUnit for use by 'myself' (only) it was necessary that I use the -prefix option with the configure call as follows:

      ./configure –prefix=$HOME/local

      This allowed the creation of  the necessary /local/bin and /local/lib folders on my HOME folder and I was able to successfully 'make' CppUnit on the company's Linux server.

      Good Luck!

       

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.