Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-335

Sun Studio STLPort Support

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 0.10.0
    • None
    • Build
    • None

    Description

      Hello,

      I got log4cxx to work with Sun Studio 11 using the Sun-supported stlport4 library. There are basically two issues:

      1- Missing Include Statements:
      This one is pretty trivial and is corrected by the first attached patch (source.patch). You might want to check if the inclusions for 'wchar.h' should be protected by some macro for wchar support.

      2- Incorrect Compiler Options:
      This one is slightly trickier, since the packaged configure script always forces -lCstd in the linker flags which conflicts with the stlport4 library. I got it working for me by patching the configure script (configure.patch). A real solution, however, would be to use a newer version of automake for generating the distribution (>= 1.10) that handles this correctly and detects if we're linking against stlport, leaving out the native STL library.

      Any chance of having these in for 0.10.1?

      Cheers,
      Hady

      Attachments

        1. configure.patch
          2 kB
          Hadrien Zalek
        2. source.patch
          4 kB
          Hadrien Zalek

        Activity

          People

            carnold@apache.org Curt Arnold
            hady Hadrien Zalek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: