Menu

v 0.3.4b tests fail on HP-UX 11.0

2003-10-21
2003-10-22
  • Roland Ramjist

    Roland Ramjist - 2003-10-21

    Am trying to use log4cpp on HP-UX 11.0. I've managed to build the library using both aCC and g++ but in both cases, 7 of the 10 tests fail and the test programs actually dump core.

    Version info:
        aCC: HP ANSI C++ B3910B A.03.33
        g++ (GCC) 3.2
        HP-UX totds103 B.11.00 U 9000/778

    Have tried running configure with/without --with-pthreads and with/without --disable-static but with no luck.

    The problem seems to be in Priority.cpp with the functions const std::string& Priority::getPriorityName and Priority::Value Priority::getPriorityValue. Both these functions cause the test cases to abort when called and the problem seems to be with the names array. When I examine the names array in the debugger, it does not contain any valid strings.

    Has anyone managed to get this working and can point me in the right direction or does anyone have any new ideas of things that I can try.

    Thanks, Roland.

     
    • Roland Ramjist

      Roland Ramjist - 2003-10-22

      Managed to sort out why this was happening. There are two approaches that seem to fix the problem:

      1) run configure with --disable-shared
      2) modifiy libtool to ensure that it uses aCC as the linker rather than ld

       

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.