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 Kelly Beard <ke...@gmail.com> on 2015/02/23 20:19:52 UTC

Unit tests fail after log4cxx build on Raspberry Pi

I am attempting to build log4cxx 0.10.0 on a Raspberry Pi from current
Apache sources.  I started off by building APR 1.5.1, APR-Util 1.5.4 and
APR-iconv 1.2.1.  All of those built successfully.  Log4cxx built
successfully after I made changes to the following files:

src/main/cpp/inputstreamreader.cpp (added #include <string.h>)
src/main/cpp/socketoutputstream.cpp (same)
src/examples/cpp/console.cpp (added #include <string.h> and #include
<stdio.h>)

Performed the following steps:

./configure --with-apr=/usr/local/apr
make
make check

These are some of the messages I gleaned out of the output:

patternlayouttest   : -Files [output/filtered] and
[witness/patternLayout.4] differ on line 1

Line 189: Compare::compare(FILTERED,
LOG4CXX_FILE("witness/patternLayout.4")) was expected to be true, was
false.

Line 217: Compare::compare(FILTERED,
LOG4CXX_FILE("witness/patternLayout.5")) was expected to be true, was
false.

Line 342: true != File("output/sbr-test6.0.zip").exists(p)

Failed Tests            Total   Fail    Failed %
===================================================
minimumtestcase             2      1     50.00%
patternlayouttest          14      2     14.29%
sizebasedrollingtest        6      1     16.67%
Makefile:549: recipe for target 'run-unittest' failed

"uname -a" reports
Linux raspberrypi 3.18.5+ #744 PREEMPT Fri Jan 30 18:19:07 GMT 2015 armv6l
GNU/Linux

I did attempt to just install the packages according to
http://logging.apache.org/log4cxx/building/autotools.html

sudo apt-get install libapr1.0-dev libaprutil1.0-dev zip


Haven't found anything *yet* like on stackoverflow, etc.

-- 
Kelly Beard

Re: Unit tests fail after log4cxx build on Raspberry Pi

Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Kelly Beard,
am Montag, 23. Februar 2015 um 20:19 schrieben Sie:

> I am attempting to build log4cxx 0.10.0 on a Raspberry Pi from
> current Apache sources.

If possible you should give trunk a try, though it's no official
release yet, it contains really a lot of bug fixes since 0.10.0.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail: Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow