[mosh-users] why i failed to build mosh? i haveinstalledprotobuf, but configure said it cannot find it, why?

wowmailman wowmailman at qq.com
Fri Jun 13 02:46:29 EDT 2014


seems it's more close to success now, but still failed




make clean
export protobuf_CFLAGS=-I/home/bigforest/ins_t/include
export protobuf_LIBS=-L/home/bigforest/ins_t/lib
export PKG_CONFIG_PATH=/home/bigforest/ins_t/lib/pkgconfig
./configure --prefix=$HOME/ins_t
make


now i am compiling code of 1.2.4


/home/bigforest/ins_t/include/google/protobuf/stubs/once.h:127: undefined reference to `google::protobuf::GoogleOnceInitImpl(int*, google::protobuf::Closure*)'
/home/bigforest/ins_t/include/google/protobuf/stubs/once.h:127: undefined reference to `google::protobuf::internal::FunctionClosure0::~FunctionClosure0()'
../protobufs/libmoshprotos.a(transportinstruction.pb.o): In function `TransportBuffers::Instruction::Clear()':
/home/bigforest/code/mosh/src/protobufs/transportinstruction.pb.cc:143: undefined reference to `google::protobuf::internal::empty_string_'
../protobufs/libmoshprotos.a(transportinstruction.pb.o): In function `GoogleOnceInit':
/home/bigforest/ins_t/include/google/protobuf/stubs/once.h:125: undefined reference to `google::protobuf::internal::empty_string_once_init_'
../protobufs/libmoshprotos.a(transportinstruction.pb.o): In function `FunctionClosure0':
/home/bigforest/ins_t/include/google/protobuf/stubs/common.h:869: undefined reference to `vtable for google::protobuf::internal::FunctionClosure0'
/home/bigforest/ins_t/include/google/protobuf/stubs/common.h:869: undefined reference to `google::protobuf::internal::InitEmptyString()'
../protobufs/libmoshprotos.a(transportinstruction.pb.o): In function `GoogleOnceInit':
/home/bigforest/ins_t/include/google/protobuf/stubs/once.h:127: undefined reference to `google::protobuf::GoogleOnceInitImpl(int*, google::protobuf::Closure*)'
/home/bigforest/ins_t/include/google/protobuf/stubs/once.h:127: undefined reference to `google::protobuf::internal::FunctionClosure0::~FunctionClosure0()'
../protobufs/libmoshprotos.a(transportinstruction.pb.o): In function `TransportBuffers::Instruction::Clear()':
/home/bigforest/code/mosh/src/protobufs/transportinstruction.pb.cc:138: undefined reference to `google::protobuf::internal::empty_string_'
../protobufs/libmoshprotos.a(transportinstruction.pb.o): In function `GetEmptyString':
/home/bigforest/ins_t/include/google/protobuf/stubs/once.h:127: undefined reference to `google::protobuf::internal::FunctionClosure0::~FunctionClosure0()'
../protobufs/libmoshprotos.a(transportinstruction.pb.o):(.data.rel.ro._ZTVN16TransportBuffers11InstructionE[vtable for TransportBuffers::Instruction]+0x20): undefined reference to `google::protobuf::MessageLite::InitializationErrorString() const'
../protobufs/libmoshprotos.a(transportinstruction.pb.o):(.data.rel.ro._ZTVN16TransportBuffers11InstructionE[vtable for TransportBuffers::Instruction]+0x34): undefined reference to `google::protobuf::MessageLite::SerializeWithCachedSizesToArray(unsigned char*) const'
../protobufs/libmoshprotos.a(transportinstruction.pb.o):(.data.rel.ro._ZTIN16TransportBuffers11InstructionE[typeinfo for TransportBuffers::Instruction]+0x8): undefined reference to `typeinfo for google::protobuf::MessageLite'
collect2: ld returned 1 exit status
make[3]: *** [mosh-client] Error 1
make[3]: Leaving directory `/home/bigforest/code/mosh/src/frontend'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/bigforest/code/mosh/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bigforest/code/mosh'
make: *** [all] Error 2







------------------ Original ------------------
From:  "Anders Kaseorg";<andersk at MIT.EDU>;
Send time: Friday, Jun 13, 2014 2:40 PM
To: "wowmailman"<wowmailman at qq.com>; 
Cc: "mosh-users"<mosh-users at mit.edu>; 
Subject:  Re:  ?????? [mosh-users] why i failed to build mosh? i haveinstalledprotobuf, but configure said it cannot find it, why?



On Fri, 13 Jun 2014, wowmailman wrote:
> nice, but something absurd happens, don't know whether it is bug,  it is 
> the CODESET staff, as this github issue described

That looks like https://github.com/keithw/mosh/issues/502, which has a 
patch available (not yet merged upstream).

Anders
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/mosh-users/attachments/20140613/4c344174/attachment.htm


More information about the mosh-users mailing list