Install or build apr 1.x, apr-util 1.x, gzip and zip.
$ cd apache-log4cxx-0.10.0 $ ./configure $ make $ make check $ sudo make install
SMTP and ODBC options can depend on libraries that that have different licenses. You should review the corresponding licenses and understand the implications before redistribution.
APR, APR-Util and zip may be installed by:
$ sudo apt-get install libapr1.0-dev libaprutil1.0-dev zip
APR, APR-Util and zip may be installed from the ports collection by:
# cd /usr/ports/archivers/zip # make # make install # cd /usr/ports/devel/apr # make # make install
Install zip (used by RollingFileAppender) and sed (used to normalize output files for comparison in the unit tests). The prepackaged APR currently available from Cygwin has APR_HAS_THREADS == 0. Some appenders will not be available and some may operate with reduced functionality. There have been reports of building APR on Cygwin with threads enabled.
Recent APR 1.2.x releases fail ./configure with a error of "decision on anonymous shared memory failed". That issue has been fixed in the current APR SVN HEAD. The follow sequence worked with MSYS (with Python on Path):
$ cd expat-2.0.1 $ ./configure $ make install $ cd .. $ svn co https://svn.apache.org/repos/asf/apr/apr/trunk apr $ cd apr $ ./buildconf.sh $ ./configure $ make install $ cd .. $ svn co \ https://svn.apache.org/repos/asf/apr/apr-util/trunk \ apr-util $ cd apr-util $ ./buildconf.sh $ ./configure --with-apr=/usr/local --with-expat=/usr/local $ make install $ cd ../apache-log4cxx-0.10.0 $ ./configure --with-apr=/usr/local \ --with-apr-util=/usr/local --with-logchar=wchar_t $ make install
Running "make check" was observed to fail with unexpected exceptions in streamtestcase and datetimedateformattestcase. See LOGCXX-244.