Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
log4cxx problem at FreeBSD 10
jubatus/server/cmd/jubaconv.cpp.1.o: In function `disable_log4cxx()':
/usr/home/hiroki/jubatus/jubatus/build/../jubatus/server/cmd/jubaconv.cpp:125: u
ndefined reference to `log4cxx::PatternLayout::PatternLayout(std::string const&)
'
/usr/home/hiroki/jubatus/jubatus/build/../jubatus/server/cmd/jubaconv.cpp:127: u
ndefined reference to `log4cxx::FileAppender::FileAppender(log4cxx::helpers::Obj
ectPtrT<log4cxx::Layout> const&, std::string const&)'
jubatus/server/common/logger/libjubaserv_common_logger.so: undefined reference t
o `log4cxx::MDC::put(std::string const&, std::string const&)'
jubatus/server/common/logger/libjubaserv_common_logger.so: undefined reference t
o `log4cxx::Logger::forcedLog(log4cxx::helpers::ObjectPtrT<log4cxx::Level> const
&, std::string const&, log4cxx::spi::LocationInfo const&) const'
jubatus/server/common/logger/libjubaserv_common_logger.so: undefined reference t
o `log4cxx::xml::DOMConfigurator::configure(std::string const&)'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/usr/home/hiroki/jubatus/jubatus/build'
Build failed
-> task failed (exit status 1):
{task 34459014544: cxxprogram jubaconv.cpp.1.o -> jubaconv}
['g++48', 'jubatus/server/cmd/jubaconv.cpp.1.o', '-o', '/usr/home/hiroki/jubatus
/jubatus/build/jubatus/server/cmd/jubaconv', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-
Ljubatus/server/fv_converter', '-Ljubatus/server/common/logger', '-Ljubatus/serv
er/common', '-L/usr/local/lib', '-L/usr/local/lib', '-ljubaserv_common', '-ljuba
serv_common_logger', '-ljubaserv_fv_converter', '-ljubatus_core', '-lmsgpack', '
-ljubatus_util_concurrent', '-ljubatus_util_data', '-ljubatus_util_lang', '-ljub
atus_util_math', '-ljubatus_util_system', '-ljubatus_util_text', '-llog4cxx', '-
pthread', '-L/usr/local/lib']
hiroki@amd64:~/jubatus/jubatus % pkg info -f log4cxx
log4cxx-0.10.0_7
Name : log4cxx
Version : 0.10.0_7
Installed on : Wed Apr 20 17:17:34 2016 JST
Origin : devel/log4cxx
Architecture : freebsd:10:x86:64
Prefix : /usr/local
Categories : devel
Licenses : APACHE20
Maintainer : ports@FreeBSD.org
WWW : http://logging.apache.org/log4cxx/
Comment : C++ port of the Log4j project
Options :
BOOST : off
DOXYGEN : off
Shared Libs required:
libaprutil-1.so.0
libexpat.so.1
libgdbm.so.4
libdb-5.3.so.0
libapr-1.so.0
Shared Libs provided:
liblog4cxx.so.10
Annotations :
repo_type : binary
repository : FreeBSD
Flat size : 9.44MiB
Description :
Log4cxx is a C++ port of the Log4j project.
The goal is to have the same functionality and interfaces as log4j.
WWW: http://logging.apache.org/log4cxx/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.