You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Simon Heath (JIRA)" <lo...@logging.apache.org> on 2017/07/06 13:57:00 UTC
[jira] [Commented] (LOGCXX-489) log4cxx-0.10.0 -
socketoutputstream.cpp:52: error: 'memcpy' was not declared in this scope
[ https://issues.apache.org/jira/browse/LOGCXX-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16076535#comment-16076535 ]
Simon Heath commented on LOGCXX-489:
------------------------------------
Sorry for the duplicate in that case! I tried to search existing bugs but couldn't find it.
Though I don't appear to be able to check out the source repo based on instructions on https://svn.apache.org/repos/asf/logging/site/trunk/docs/log4cxx/source-repository.html:
$ svn checkout http://svn.apache.org/repos/asf/logging/log4cxx/trunk apache-log4cxx
svn: E170000: URL 'http://svn.apache.org/repos/asf/logging/log4cxx/trunk' doesn't exist
It's also not findable under http://svn.apache.org/viewvc/logging/ (the direct HTTP link on the source repository page is broken.).
> log4cxx-0.10.0 - socketoutputstream.cpp:52: error: 'memcpy' was not declared in this scope
> ------------------------------------------------------------------------------------------
>
> Key: LOGCXX-489
> URL: https://issues.apache.org/jira/browse/LOGCXX-489
> Project: Log4cxx
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.10.0
> Environment: CentOS 6, CentOS 7, Debian 9
> Reporter: Simon Heath
> Fix For: 0.11.0
>
>
> Attempting to build log4cxx 0.10.0 from source fails on make with the following error on CentOS 6, CentOS 7, Debian 9:
> ```
> g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -MT socketoutputstream.lo -MD -MP -MF .deps/socketoutputstream.Tpo -c socketoutputstream.cpp -fPIC -DPIC -o .libs/socketoutputstream.o
> socketoutputstream.cpp: In member function 'virtual void log4cxx::helpers::SocketOutputStream::write(log4cxx::helpers::ByteBuffer&, log4cxx::helpers::Pool&)':
> socketoutputstream.cpp:52: error: 'memcpy' was not declared in this scope
> ```
> Adding "#include <string.h>" to the top of src/main/cpp/inputstreamreader.cpp fixes the problem.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)