I am trying to cross-compile log4cxx for ARM from a x86_64 machine. During compilation, there is an error saying 'memmove' was not declared in this scope
.
I am using a Linaro GCC cross-compiler version 4.9.4. In order to prevent a different issue with the cross-compilation, I am giving CPPFLAGS=-DAPR_IOVEC_DEFINED
to the configure command. This is version 0.10.0 of the log4cxx source, as downloaded from the Apache Logging Services website.
The full error message is below:
inputstreamreader.cpp:66:64: error: 'memmove' was not declared in this scope
memmove(buf.data(), buf.current(), buf.remaining());
I know that the "not declared" error usually indicates that the file with the declaration was not included, but it seems unlikely that this would be an issue in the released code.