More about the compiling issue:
libtool: link: ( cd ".libs" && rm -f "
libprotoc.la" && ln -s
"../
libprotoc.la" "
libprotoc.la" )
/bin/bash ../libtool --tag=CXX --mode=link g++ -pthread -Wall
-Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG
-pthread -o protoc main.o
libprotobuf.la libprotoc.la -lz
libtool: link: g++ -pthread -Wall -Wwrite-strings -Woverloaded-virtual
-Wno-sign-compare -O2 -g -DNDEBUG -pthread -o .libs/protoc main.o
./.libs/libprotobuf.so ./.libs/libprotoc.so -lz -pthread
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::Subprocess::Communicate(google::protobuf::Message
const&, google::protobuf::Message*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >*)'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::Subprocess::~Subprocess()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::CodeGeneratorRequest::_default_parameter_'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::ZipWriter::Write(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::Subprocess::Start(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
google::protobuf::compiler::Subprocess::SearchMode)'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::ZipWriter::ZipWriter(google::protobuf::io::ZeroCopyOutputStream*)'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::CodeGeneratorResponse::CodeGeneratorResponse()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::Subprocess::Subprocess()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::CodeGeneratorRequest::CodeGeneratorRequest()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::CodeGeneratorRequest::~CodeGeneratorRequest()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::ZipWriter::WriteDirectory()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::CodeGeneratorResponse::~CodeGeneratorResponse()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::ZipWriter::~ZipWriter()'