msgpack/msgpack-rpc — Issue #44: cpp: make check libcclog.a missing
Author: schouwla
Created: 2012-02-05 21:33:04+00:00
State: open

When I do a 'make check' in cpp I get an error because libcclog.a is missing.

libtool: link: g++ -O4 -Wall -g -DCCLOG_LEVEL=10 -msgpack -o .libs/sync_call sync_call.o ../src/cclog/.libs/libcclog.a ../src/msgpack/rpc/.libs/libmsgpack-rpc.so /usr/local/lib/libmpio.so /usr/local/lib/libmsgpack.so -lz -lpthread -lstdc++ -Wl,-rpath -Wl,/usr/local/lib
g++: error: ../src/cclog/.libs/libcclog.a: No such file or directory

I can see that the Makefile in cclog has some commented out lines:
#lib_LTLIBRARIES = libcclog.la
#libcclog_la_includedir = $(includedir)/cclog
#libcclog_la_SOURCES = \
# cclog.cc \
# cclog_null.cc \
# cclog_ostream.cc \
# cclog_syslog.cc \
# cclog_tty.cc

#libcclog_la_include_HEADERS = \
# cclog.h \
# cclog_null.h \
# cclog_ostream.h \
# cclog_syslog.h \
# cclog_tty.h

#EXTRA_DIST = \
# cclog.hmpl

But when I uncomment them I get a build error:

make[2]: Entering directory `/home/las/dev/msgpack-rpc/cpp/test'
/bin/sh ../libtool --tag=CXX --mode=link g++ -O4 -Wall -g -DCCLOG_LEVEL=10 ../src/cclog/libcclog.la ../src/msgpack/rpc/libmsgpack-rpc.la -lmpio -msgpack -o sync_call sync_call.o -lmpio -lmsgpack -lz -lpthread -lstdc++
libtool: link: g++ -O4 -Wall -g -DCCLOG_LEVEL=10 -msgpack -o .libs/sync_call sync_call.o ../src/cclog/.libs/libcclog.a ../src/msgpack/rpc/.libs/libmsgpack-rpc.so /usr/local/lib/libmpio.so /usr/local/lib/libmsgpack.so -lz -lpthread -lstdc++ -Wl,-rpath -Wl,/usr/local/lib
sync_call.o: In function `main':
/home/las/dev/msgpack-rpc/cpp/test/sync_call.cc:9: undefined reference to `cclog_tty::cclog_tty(cclog::level, std::basic_ostream >&)'
/home/las/dev/msgpack-rpc/cpp/test/sync_call.cc:9: undefined reference to `cclog::reset(cclog*)'