You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by ts...@apache.org on 2014/02/09 19:08:41 UTC

svn commit: r1566338 - in /incubator/log4cxx/trunk/src: changes/changes.xml examples/cpp/console.cpp main/cpp/inputstreamreader.cpp main/cpp/socketoutputstream.cpp

Author: tschoening
Date: Sun Feb  9 18:08:41 2014
New Revision: 1566338

URL: http://svn.apache.org/r1566338
Log:
LOGCXX-367: Build fails on Linux with g++ 4.4

Modified:
    incubator/log4cxx/trunk/src/changes/changes.xml
    incubator/log4cxx/trunk/src/examples/cpp/console.cpp
    incubator/log4cxx/trunk/src/main/cpp/inputstreamreader.cpp
    incubator/log4cxx/trunk/src/main/cpp/socketoutputstream.cpp

Modified: incubator/log4cxx/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/incubator/log4cxx/trunk/src/changes/changes.xml?rev=1566338&r1=1566337&r2=1566338&view=diff
==============================================================================
--- incubator/log4cxx/trunk/src/changes/changes.xml (original)
+++ incubator/log4cxx/trunk/src/changes/changes.xml Sun Feb  9 18:08:41 2014
@@ -58,6 +58,7 @@
 			<action issue="LOGCXX-351" type="fix">Download page does not have link to KEYS file</action>
 			<action issue="LOGCXX-365" type="fix">Unit tests fail on system dates later than 2009-12-31.</action>
 			<action issue="LOGCXX-366" type="fix">Errors when compile log4cxx 0.10.0 under Win7 x64 with Visual Studio 2010 (due to Christian Boos and Feng Nan)</action>
+			<action issue="LOGCXX-367" type="fix">Build fails on Linux with g++ 4.4</action>
 			<action issue="LOGCXX-413" type="fix">log4cxx doesn't compile on openembedded (due to Alex Zbarcea)</action>
 			<action issue="LOGCXX-414" type="fix">possibly wrong use of autotools docdir (due to Alex Zbarcea)</action>
 			<action issue="LOGCXX-415" type="fix">Empty XML configuration file causes crash</action>

Modified: incubator/log4cxx/trunk/src/examples/cpp/console.cpp
URL: http://svn.apache.org/viewvc/incubator/log4cxx/trunk/src/examples/cpp/console.cpp?rev=1566338&r1=1566337&r2=1566338&view=diff
==============================================================================
--- incubator/log4cxx/trunk/src/examples/cpp/console.cpp (original)
+++ incubator/log4cxx/trunk/src/examples/cpp/console.cpp Sun Feb  9 18:08:41 2014
@@ -16,6 +16,8 @@
  */
 
 #include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
 #include <log4cxx/logger.h>
 #include <log4cxx/consoleappender.h>
 #include <log4cxx/simplelayout.h>

Modified: incubator/log4cxx/trunk/src/main/cpp/inputstreamreader.cpp
URL: http://svn.apache.org/viewvc/incubator/log4cxx/trunk/src/main/cpp/inputstreamreader.cpp?rev=1566338&r1=1566337&r2=1566338&view=diff
==============================================================================
--- incubator/log4cxx/trunk/src/main/cpp/inputstreamreader.cpp (original)
+++ incubator/log4cxx/trunk/src/main/cpp/inputstreamreader.cpp Sun Feb  9 18:08:41 2014
@@ -21,6 +21,7 @@
 #include <log4cxx/helpers/pool.h>
 #include <log4cxx/helpers/bytebuffer.h>
 #include <cstring>
+#include <string.h>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;
@@ -34,7 +35,7 @@ InputStreamReader::InputStreamReader(con
    }
 }
 
-InputStreamReader::InputStreamReader(const InputStreamPtr& in1, const CharsetDecoderPtr &dec1) 
+InputStreamReader::InputStreamReader(const InputStreamPtr& in1, const CharsetDecoderPtr &dec1)
     : in(in1), dec(dec1) {
     if (in1 == 0) {
        throw NullPointerException(LOG4CXX_STR("in parameter may not be null."));

Modified: incubator/log4cxx/trunk/src/main/cpp/socketoutputstream.cpp
URL: http://svn.apache.org/viewvc/incubator/log4cxx/trunk/src/main/cpp/socketoutputstream.cpp?rev=1566338&r1=1566337&r2=1566338&view=diff
==============================================================================
--- incubator/log4cxx/trunk/src/main/cpp/socketoutputstream.cpp (original)
+++ incubator/log4cxx/trunk/src/main/cpp/socketoutputstream.cpp Sun Feb  9 18:08:41 2014
@@ -20,6 +20,7 @@
 #include <log4cxx/helpers/socket.h>
 #include <log4cxx/helpers/bytebuffer.h>
 #include <cstring>
+#include <string.h>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;