Menu

cppunit on Sol10, CC 5.9 compilation problems

Help
2008-08-06
2013-04-22
  • Greg Kowalski

    Greg Kowalski - 2008-08-06

    Hi,

    I have problem with CppUnit (v 1.12.1) on Sol 10 with Sun CC 5.9.
    I succeeded with library compilation (  ./configure CC=cc CXX=CC LDFLAGS=" -lm" ), but when I try to compile my unit tests and then run, I get segmentation faults.

    Probably this is because my applications use stlport4 library (-library=stlport4 compilation option).
    I didn't managed to compile CppUnit with this option. Adding -library=stlport4 to CXXFLAGS and/or to LDFLAGS causes compilation or linker errors.

    I'd appreciate any suggestions how to compile it.

    Env:
    uname -a
    SunOS xxx 5.10 Generic_127111-08 sun4v sparc SUNW,SPARC-Enterprise-T5120

    Compiler:
    > cc -V
    cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12
    > CC -V
    CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25

     
    • Greg Kowalski

      Greg Kowalski - 2008-08-08

      Ok, problem fixed.

      Seems that following configure options help in my case:
      ./configure CC=CC CXX=CC CXXFLAGS="-library=stlport4" LDFLAGS="-library=Cstd -library=Crun -lm"

      Regards,
      Greg

       

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.