02-08-2016, 05:08 AM
----Fix-for-error---memove---------Potential Pitfall---------------------------------
[Potential Pitfall]: RHEL 6.3 gave me the following build
[prompt]$ make inputstreamreader.cpp:66: error: 'memmove' was not declared in this scope
make[3]: *** [inputstreamreader.lo] Error 1
Edit the following three files to fix this error:
File: apache-log4cxx-0.10.0/src/main/cpp/inputstreamreader.cpp
Add the include file: #include <string.h>
Change from:
#include <log4cxx/logstring.h>
#include <log4cxx/helpers/inputstreamreader.h>
#include <log4cxx/helpers/exception.h>
#include <log4cxx/helpers/pool.h>
#include <log4cxx/helpers/bytebuffer.h>
to:
#include <string.h>
#include <log4cxx/logstring.h>
#include <log4cxx/helpers/inputstreamreader.h>
#include <log4cxx/helpers/exception.h>
#include <log4cxx/helpers/pool.h>
#include <log4cxx/helpers/bytebuffer.h>
File: apache-log4cxx-0.10.0/src/main/cpp/socketoutputstream.cpp
Add the include file: #include <string.h>
File: apache-log4cxx-0.10.0/src/examples/cpp/console.cpp
Add the include files:
#include <stdio.h>
#include <string.h>
--------------------------------Potential Pitfall-------------------------------
did you add the includes, and these files are right off barunson servers nothing removed ......

