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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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