Open leonanu opened 9 years ago
I try to run: libtoolize --force --copy
and re-configure ducter. After run "make" I got this:
dcmd_agent-dcmd_agent.pb.o:/usr/local/src/ducter-server-1.0.2/agent/../cmn/dcmd_agent.pb.cc:2177: more undefined references to google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)' follow dcmd_agent-dcmd_agent.pb.o: In function
GetEmptyStringAlreadyInited':
/usr/local/protobuf/include/google/protobuf/generated_message_util.h:80: undefined reference to google::protobuf::internal::empty_string_' /usr/local/protobuf/include/google/protobuf/generated_message_util.h:80: undefined reference to
google::protobuf::internal::emptystring'
/usr/local/protobuf/include/google/protobuf/generated_message_util.h:80: undefined reference to google::protobuf::internal::empty_string_' /usr/local/protobuf/include/google/protobuf/generated_message_util.h:80: undefined reference to
google::protobuf::internal::emptystring'
/usr/local/protobuf/include/google/protobuf/generated_message_util.h:80: undefined reference to google::protobuf::internal::empty_string_' dcmd_agent-dcmd_agent.pb.o:/usr/local/protobuf/include/google/protobuf/generated_message_util.h:80: more undefined references to
google::protobuf::internal::emptystring' follow
collect2: ld returned 1 exit status
make: *\ [dcmd_agent] Error 1
I got the similar error during compiling ducter center,did you solve this case
export ECHO=echo
OS: CentOS release 6.6 (Final) gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
When compiling ducter agent with: ./configure --prefix=/usr/local/app/ducter/agent --with-cwinux=/usr/local/cwinux/include --with-protobuf=/usr/local/protobuf/include
I got following error:
/bin/sh ./libtool --tag=CXX --mode=link g++ -g -O2 -std=c++0x -o dcmd_agent dcmd_agent-dcmd_agent_app.o dcmd_agent-dcmd_agent.o dcmd_agent-dcmd_agent_config.o dcmd_agent-dcmd_agent_def.o dcmd_agent-dcmd_process.o dcmd_agent-dcmd_def.o dcmd_agent-dcmd_cmn.pb.o dcmd_agent-dcmd_agent.pb.o dcmd_agent-dcmd_tss.o -lcwxapp -lcwxnet -lcwxcmn -lprotobuf -lpthread -lz -ldl -lrt ./libtool: line 807: X--tag=CXX: command not found ./libtool: line 840: libtool: ignoring unknown tag : command not found ./libtool: line 807: X--mode=link: command not found ./libtool: line 973: * Warning: inferring the mode of operation is deprecated.: command not found ./libtool: line 974: * Future versions of Libtool will require --mode=MODE be specified.: command not found gcc: no input files gcc: no input files gcc: no input files gcc: no input files ./libtool: line 2200: X-g: command not found ./libtool: line 2200: X-O2: command not found ./libtool: line 2200: X-std=c++0x: command not found ./libtool: line 2369: Xdcmd_agent: command not found ./libtool: line 2374: X:/usr/local/cwinux/lib/:/usr/local/cwinux/lib/:/usr/local/cwinux/lib/:/usr/local/cwinux/lib/: No such file or directory ./libtool: line 2381: Xdcmd_agent: command not found ./libtool: line 2516: X-lcwxapp: command not found ./libtool: line 2516: X-lcwxnet: command not found ./libtool: line 2516: X-lcwxcmn: command not found ./libtool: line 2516: X-lprotobuf: command not found ./libtool: line 2516: X-lpthread: command not found ./libtool: line 2516: X-lz: command not found ./libtool: line 2516: X-ldl: command not found ./libtool: line 2516: X-lrt: command not found ./libtool: line 2516: X-lcwxapp: command not found ./libtool: line 2516: X-lcwxnet: command not found ./libtool: line 2516: X-lcwxcmn: command not found ./libtool: line 2516: X-lprotobuf: command not found ./libtool: line 2516: X-lpthread: command not found ./libtool: line 2516: X-lz: command not found ./libtool: line 2516: X-ldl: command not found ./libtool: line 2516: X-lrt: command not found ./libtool: line 2516: X-lcwxapp: command not found ./libtool: line 2516: X-lcwxnet: command not found ./libtool: line 2516: X-lcwxcmn: command not found ./libtool: line 2516: X-lprotobuf: command not found ./libtool: line 2516: X-lpthread: command not found ./libtool: line 2516: X-lz: command not found ./libtool: line 2516: X-ldl: command not found ./libtool: line 2516: X-lrt: command not found ./libtool: line 5124: Xg++ "" "" "" -o @OUTPUT@ dcmd_agent-dcmd_agent_app.o dcmd_agent-dcmd_agent.o dcmd_agent-dcmd_agent_config.o dcmd_agent-dcmd_agent_def.o dcmd_agent-dcmd_process.o dcmd_agent-dcmd_def.o dcmd_agent-dcmd_cmn.pb.o dcmd_agent-dcmd_agent.pb.o dcmd_agent-dcmd_tss.o -lcwxapp -lcwxnet -lcwxcmn -lprotobuf -lpthread -lz -ldl -lrt: command not found ./libtool: line 5125: Xg++ "" "" "" -o @OUTPUT@ dcmd_agent-dcmd_agent_app.o dcmd_agent-dcmd_agent.o dcmd_agent-dcmd_agent_config.o dcmd_agent-dcmd_agent_def.o dcmd_agent-dcmd_process.o dcmd_agent-dcmd_def.o dcmd_agent-dcmd_cmn.pb.o dcmd_agent-dcmd_agent.pb.o dcmd_agent-dcmd_tss.o -lcwxapp -lcwxnet -lcwxcmn -lprotobuf -lpthread -lz -ldl -lrt: command not found ./libtool: line 5130: X: command not found ./libtool: line 5134: : command not found