You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by "Jürgen F. Kilian" <ki...@noteserver.org> on 2005/05/21 12:03:17 UTC
log4cxx, w32, VC6, Build failed
Hi,
I tried to build (using ant) log4cxx (cvs HEAD) under w32 for VC6.
The compilation seems to work but then at least one of the tests fails
(see trace further down).
Any ideas how this could be fixed?
Would anyone be able to provie me just the binaries (.dll .lib) which
could be used on w32 with VC6 and VS 2003?
Thanks
Juergen
...
run-unittest:
[exec]
.................................................100ED720Threshold =
"null".
[exec] 100ED720No level could be found named "null".
[exec] 100ED720Level value for root is [TRACE].
[exec] 100ED720Desired Level sub-class: [org.apache.log4j.xml.XLevel]
[exec] 100ED720root level set to TRACE
[exec] 100ED720Class name: [org.apache.log4j.FileAppender]
m [exec] 100ED720Setting option name=[Append], value=[false]
[exec] 100ED720Setting option name=[File], value=[output/temp]
[exec] 100ED720Parsing layout of class:
"org.apache.log4j.PatternLayout"
[exec] 100ED720Setting option name=[ConversionPattern],
value=[%-5p %c{2} -
%m\n]
[exec] 100ED720setFile called
[exec] 100ED720setFile ended
[exec] 100ED720Adding appender named [TEMP] to logger [root].
[exec] .100ED720input/xml/customLevel2.xml...ile
[exec] 100ED720debug attribute= "false".
[exec] 100ED720No level could be found named "null".
[exec] .100ED720No level could be found named "null".
[exec] .100ED720No level could be found named "null".
[exec] .........................................100ED720No
appender could b
e found for logger (x).
[exec] 100ED720Please initialize the log4cxx system properly.
[exec] .........................100ED720No level could be found
named "null
".
[exec] .100ED720No level could be found named "null".
[exec] .......................E.E.100ED720Empty conversion
specifier starti
ng at position 2 in conversion pattern.
[exec] .100ED720Empty conversion specifier starting at position 6
in conver
sion pattern.
[exec]
.............F.F.F.F.F.F............................................
F.F.F.F.F.F..F...F.....
[exec] !!!FAILURES!!!
[exec] Test Results:
[exec] Run: 222 Failures: 14 Errors: 2
[exec] 1) test: PatternParserTestCase::testNewWord (E)
[exec] uncaught exception of unknown type
[exec] 2) test: PatternParserTestCase::testNewWord2 (E)
[exec] uncaught exception of unknown type
[exec] 3) test: DateTimeDateFormatTestCase::test1 (F) line: 96
N:\src\logging-log4cxx\tests\src\helpers\datetimedateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: 02 Jan 2004 00:00:00,000
[exec] - Actual : 0? Jan ???? 0?:0?:0?,00?
[exec] 4) test: DateTimeDateFormatTestCase::test2 (F) line: 96
N:\src\logging-log4cxx\tests\src\helpers\datetimedateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: 02 Jan 2004 18:00:00,000
[exec] - Actual : 0? Jan ???? ??:0?:0?,00?
[exec] 5) test: DateTimeDateFormatTestCase::test3 (F) line: 96
N:\src\logging-log4cxx\tests\src\helpers\datetimedateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: 30 Jun 2004 00:00:00,000
[exec] - Actual : ?? Jun ???? 0?:0?:0?,00?
[exec] 6) test: DateTimeDateFormatTestCase::test4 (F) line: 96
N:\src\logging-log4cxx\tests\src\helpers\datetimedateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: 30 Jun 2004 19:00:00,000
[exec] - Actual : ?? Jun ???? ??:0?:0?,00?
[exec] 7) test: DateTimeDateFormatTestCase::test5 (F) line: 96
N:\src\logging-log4cxx\tests\src\helpers\datetimedateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: 02 Jul 2004 00:00:00,000
[exec] - Actual : 0? Jul ???? 0?:0?:0?,00?
[exec] 8) test: DateTimeDateFormatTestCase::test6 (F) line: 96
N:\src\logging-log4cxx\tests\src\helpers\datetimedateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: 03 Jul 2004 00:00:00,000
[exec] - Actual : 0? Jul ???? 0?:0?:0?,00?
[exec] 9) test: CachedDateFormatTestCase::test6 (F) line: 268
N:\src\logging-log4cxx\tests\src\helpers\cacheddateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: 87
[exec] - Actual : ??
[exec] 10) test: CachedDateFormatTestCase::test8 (F) line: 285
N:\src\logging-log4cxx\tests\src\helpers\cacheddateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: 2004-07-04 00:00:00,000
[exec] - Actual : ????-0?-0? 0?:0?:0?,00?
[exec] 11) test: CachedDateFormatTestCase::test9 (F) line: 328
N:\src\logging-log4cxx\tests\src\helpers\cacheddateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: 2004-December-12 20:00:37,23 +0100
[exec] - Actual : ????-December-?? ??:0?:??,?? +0?0?
[exec] 12) test: CachedDateFormatTestCase::test10 (F) line: 386
N:\\src\logging-log4cxx\tests\src\helpers\cacheddateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: October 023 Tuesday
[exec] - Actual : October 0?? Tuesday
[exec] 13) test: CachedDateFormatTestCase::test11 (F) line: 437
N:\src\logging-log4cxx\tests\src\helpers\cacheddateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: 00,1200
[exec] - Actual : 0?,???0
[exec] 14) test: CachedDateFormatTestCase::test12 (F) line: 462
N:\src\logging-log4cxx\tests\src\helpers\cacheddateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: 20
[exec] - Actual : -1
[exec] 15) test: CachedDateFormatTestCase::test14 (F) line: 495
N:\src\logging-log4cxx\tests\src\helpers\cacheddateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: 9
[exec] - Actual : -1
[exec] 16) test: CachedDateFormatTestCase::test17 (F) line: 545
N:\src\logging-log4cxx\tests\src\helpers\cacheddateformattestcase.cpp
[exec] equality assertion failed
[exec] - Expected: 00:00:00,000 00:00:00,000
[exec] - Actual : 0?:0?:0?,00? 0?:0?:0?,00?
BUILD FAILED
N:\src\logging-log4cxx\build.xml:1029: exec returned: 1
Re: log4cxx, w32, VC6, Build failed
Posted by Curt Arnold <ca...@apache.org>.
On May 21, 2005, at 5:03 AM, Jürgen F. Kilian wrote:
> Hi,
>
> I tried to build (using ant) log4cxx (cvs HEAD) under w32 for VC6.
>
> The compilation seems to work but then at least one of the tests
> fails (see trace further down).
>
> Any ideas how this could be fixed?
> Would anyone be able to provie me just the binaries (.dll .lib)
> which could be used on w32 with VC6 and VS 2003?
>
>
> [exec] 1) test: PatternParserTestCase::testNewWord (E)
> [exec] uncaught exception of unknown type
>
>
> [exec] 2) test: PatternParserTestCase::testNewWord2 (E)
> [exec] uncaught exception of unknown type
>
These tests fail on VC6, but pass on VC 7 and later and pass on other
platforms. I have not been able to get any useful debugging
information to indicate what is going wrong with VC6. Any insight
that might unravel what is going on with VC6 would be helpful.
The scenario that is failing involves user-added format specifiers
(for example, %foo) to the PatternLayout which would not affect
typical usage of log4cxx.
>
> [exec] 3) test: DateTimeDateFormatTestCase::test1 (F) line: 96
> N:\src\logging-log4cxx\tests\src\helpers
> \datetimedateformattestcase.cpp
> [exec] equality assertion failed
> [exec] - Expected: 02 Jan 2004 00:00:00,000
> [exec] - Actual : 0? Jan ???? 0?:0?:0?,00?
>
>
....
> [exec] 16) test: CachedDateFormatTestCase::test17 (F) line:
> 545 N:\src\logging-log4cxx\tests\src\helpers
> \cacheddateformattestcase.cpp
> [exec] equality assertion failed
> [exec] - Expected: 00:00:00,000 00:00:00,000
> [exec] - Actual : 0?:0?:0?,00? 0?:0?:0?,00?
>
I've seen similar symptoms with locale related issues, but not
affecting so many tests. I'm not able to investigate at the moment,
but will after complete a few critical tasks. All these involve date
formatting.
> Would anyone be able to provie me just the binaries (.dll .lib)
> which could be used on w32 with VC6 and VS 2003?
You've build the VC6 binaries, they are just questionable with date
formatting (significant) and user-added format specifiers. Building
using VS 2003 should remove the issue with user-added format
specifiers. Just treat date formats as a little questionable for a
few days.