chai2010 | 29 Jul 09:59 2015
Picon

notepad++ for Protobuf

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Seth Axen | 25 Jul 15:05 2015
Picon

Error while compiling protobuf 2.6.1 on Red Hat

Hello,
   I am attempting to install protobuf 2.6.1 on Red Hat, and I am having difficulties compiling. I am using GCC 5.1.1 and libtool 2.4.6. Does anyone have any insights as to what I'm missing? Here is the output when I attempt to compile:

 cd . && /bin/sh /netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/missing --run automake-1.11 --foreign

CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/missing --run autoconf

/bin/sh ./config.status --recheck

running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=/netapp/home/saxen/software/protobuf --no-create --no-recursion

checking whether to disable maintainer-specific portions of Makefiles... yes

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking target system type... x86_64-unknown-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking how to create a ustar tar archive... gnutar

checking for gcc... gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables... 

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

checking for style of include used by make... GNU

checking dependency style of gcc... gcc3

checking for g++... g++

checking whether we are using the GNU C++ compiler... yes

checking whether g++ accepts -g... yes

checking dependency style of g++... gcc3

checking how to run the C++ preprocessor... g++ -E

checking for grep that handles long lines and -e... /bin/grep

checking for egrep... /bin/grep -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking minix/config.h usability... no

checking minix/config.h presence... no

checking for minix/config.h... no

checking whether it is safe to define __EXTENSIONS__... yes

checking C++ compiler flags...... use default: -O2  -g -DNDEBUG

checking whether __SUNPRO_CC is declared... no

checking how to print strings... printf

checking for a sed that does not truncate output... /bin/sed

checking for fgrep... /bin/grep -F

checking for ld used by gcc... /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... yes

checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B

checking the name lister (/usr/bin/nm -B) interface... BSD nm

checking whether ln -s works... yes

checking the maximum length of command line arguments... 1966080

checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop

checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop

checking for /usr/bin/ld option to reload object files... -r

checking for objdump... objdump

checking how to recognize dependent libraries... pass_all

checking for dlltool... no

checking how to associate runtime and link libraries... printf %s\n

checking for ar... ar

checking for archiver <at> FILE support... <at>

checking for strip... strip

checking for ranlib... ranlib

checking command to parse /usr/bin/nm -B output from gcc object... ok

checking for sysroot... no

checking for a working dd... /bin/dd

checking how to truncate binary pipes... /bin/dd bs=4096 count=1

checking for mt... no

checking if : is a manifest tool... no

checking for dlfcn.h... yes

checking for objdir... .libs

checking if gcc supports -fno-rtti -fno-exceptions... no

checking for gcc option to produce PIC... -fPIC -DPIC

checking if gcc PIC flag -fPIC -DPIC works... yes

checking if gcc static flag -static works... yes

checking if gcc supports -c -o file.o... yes

checking if gcc supports -c -o file.o... (cached) yes

checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes

checking whether -lc should be explicitly linked in... no

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... yes

checking how to run the C++ preprocessor... g++ -E

checking for ld used by g++... /usr/bin/ld -m elf_x86_64

checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes

checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes

checking for g++ option to produce PIC... -fPIC -DPIC

checking if g++ PIC flag -fPIC -DPIC works... yes

checking if g++ static flag -static works... yes

checking if g++ supports -c -o file.o... yes

checking if g++ supports -c -o file.o... (cached) yes

checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes

checking dynamic linker characteristics... (cached) GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking for ANSI C header files... (cached) yes

checking fcntl.h usability... yes

checking fcntl.h presence... yes

checking for fcntl.h... yes

checking for inttypes.h... (cached) yes

checking limits.h usability... yes

checking limits.h presence... yes

checking for limits.h... yes

checking for stdlib.h... (cached) yes

checking for unistd.h... (cached) yes

checking for working memcmp... yes

checking for working strtod... yes

checking for ftruncate... yes

checking for memset... yes

checking for mkdir... yes

checking for strchr... yes

checking for strerror... yes

checking for strtol... yes

checking zlib version... ok (1.2.0.4 or later)

checking for library containing zlibVersion... -lz

checking for the pthreads library -lpthreads... no

checking whether pthreads work without any flags... no

checking whether pthreads work with -Kthread... no

checking whether pthreads work with -kthread... no

checking for the pthreads library -llthread... no

checking whether pthreads work with -pthread... yes

checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE

checking if more special flags are required for pthreads... no

checking whether to check for GCC pthread/shared inconsistencies... yes

checking whether -pthread is sufficient with -shared... yes

checking whether what we have so far is sufficient with -nostdlib... no

checking whether -lpthread saves the day... yes

checking the location of hash_map... <tr1/unordered_map>

checking for library containing sched_yield... none required

configure: creating ./config.status

 /bin/sh ./config.status

config.status: creating Makefile

config.status: creating src/Makefile

config.status: creating conformance/Makefile

config.status: creating protobuf.pc

config.status: creating protobuf-lite.pc

config.status: creating config.h

config.status: config.h is unchanged

config.status: executing depfiles commands

config.status: executing libtool commands

(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/missing --run autoheader)

rm -f stamp-h1

touch config.h.in

cd . && /bin/sh ./config.status config.h

config.status: creating config.h

config.status: config.h is unchanged

make  all-recursive

make[1]: Entering directory `/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master'

Making all in .

make[2]: Entering directory `/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master'

make[2]: Leaving directory `/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master'

Making all in src

make[2]: Entering directory `/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src'

/bin/sh ../libtool --tag=CXX   --mode=link g++ -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -pthread  -o protoc google/protobuf/compiler/main.o -lpthread libprotobuf.la libprotoc.la -lz 

libtool: link: g++ -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -pthread -o .libs/protoc google/protobuf/compiler/main.o  ./.libs/libprotobuf.so ./.libs/libprotoc.so /netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/.libs/libprotobuf.so -lpthread -lz -pthread -Wl,-rpath -Wl,/netapp/home/saxen/software/protobuf/lib

google/protobuf/compiler/main.o: In function `main':

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:45: undefined reference to `google::protobuf::compiler::CommandLineInterface::AllowPlugins(std::string const&)'

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:50: undefined reference to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)'

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:55: undefined reference to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)'

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:61: undefined reference to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)'

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:66: undefined reference to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)'

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:71: undefined reference to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)'

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:76: undefined reference to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)'

google/protobuf/compiler/main.o:/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:81: more undefined references to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)' follow

./.libs/libprotoc.so: undefined reference to `google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*)'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf16MethodDescriptor11DebugStringB5cxx11Ev'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf15FieldDescriptor11DebugStringB5cxx11Ev'

./.libs/libprotoc.so: undefined reference to `google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::StringPiece::AppendToString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::DescriptorPool::FindEnumTypeByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'

./.libs/libprotoc.so: undefined reference to `google::protobuf::io::Printer::Print(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf10SimpleItoaB5cxx11El'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf8internal13empty_string_B5cxx11E'

./.libs/libprotoc.so: undefined reference to `google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::StrAppend(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::io::CodedInputStream::ReadString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, int)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf7Message11GetTypeNameB5cxx11Ev'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::WebSafeBase64Unescape(google::protobuf::StringPiece, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::StrAppend(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&)'

./.libs/libprotoc.so: undefined reference to `_ZN6google8protobuf7strings10SubstituteB5cxx11EPKcRKNS1_8internal13SubstituteArgES7_S7_S7_S7_S7_S7_S7_S7_S7_'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf7Message25InitializationErrorStringB5cxx11Ev'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::io::Printer::Print(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf10SimpleItoaB5cxx11Ei'

./.libs/libprotoc.so: undefined reference to `google::protobuf::MessageLite::SerializeToString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::safe_strtou64(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long*)'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf15FieldDescriptor22DebugStringWithOptionsB5cxx11ERKNS0_18DebugStringOptionsE'

./.libs/libprotoc.so: undefined reference to `google::protobuf::StripString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, char const*, char)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf12StringPrintfB5cxx11EPKcz'

./.libs/libprotobuf.so: undefined reference to `_ZNK6google8protobuf7Message16ShortDebugStringB5cxx11Ev'

./.libs/libprotoc.so: undefined reference to `google::protobuf::io::Printer::Print(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::io::StringOutputStream::StringOutputStream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_S4_S4_S4_'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::internal::WireFormatLite::WriteBytes(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::internal::ParseTime(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long*, int*)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf10SimpleItoaB5cxx11Ej'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf10SimpleFtoaB5cxx11Ef'

./.libs/libprotoc.so: undefined reference to `google::protobuf::GlobalReplaceSubstring(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::Descriptor::FindFieldByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'

./.libs/libprotoc.so: undefined reference to `google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const*, google::protobuf::internal::ArenaStringPtr)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::safe_strto64(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::Descriptor::FindFieldByCamelcaseName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf11MessageLite17SerializeAsStringB5cxx11Ev'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::internal::LogMessage::operator<<(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf15OneofDescriptor22DebugStringWithOptionsB5cxx11ERKNS0_18DebugStringOptionsE'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_S4_S4_'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::safe_strto32(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::compiler::DiskSourceTree::VirtualFileToDiskFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::compiler::Importer::AddUnusedImportTrackFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::safe_strtou32(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::io::Printer::Print(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_S4_'

./.libs/libprotoc.so: undefined reference to `google::protobuf::StrAppend(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, google::protobuf::strings::AlphaNum const&)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::WebSafeBase64EscapeWithPadding(google::protobuf::StringPiece, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::StringReplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::JoinStrings(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `_ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_S4_S4_S4_S4_S4_'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::io::Printer::PrintRaw(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf8internal10FormatTimeB5cxx11Eli'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf19EnumValueDescriptor11DebugStringB5cxx11Ev'

./.libs/libprotoc.so: undefined reference to `_ZN6google8protobuf8internal13VersionStringB5cxx11Ei'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf10SimpleDtoaB5cxx11Ed'

./.libs/libprotoc.so: undefined reference to `google::protobuf::SplitStringUsing(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >*)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::DescriptorPool::FindMessageTypeByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::WebSafeBase64Escape(google::protobuf::StringPiece, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::compiler::DiskSourceTree::MapPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf10SimpleItoaB5cxx11Em'

./.libs/libprotoc.so: undefined reference to `google::protobuf::strings::CHexEscape(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf8internal10NameOfEnumB5cxx11EPKNS0_14EnumDescriptorEi'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::internal::ParseAnyTypeUrl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::StringAppendF(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, char const*, ...)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::Base64Unescape(google::protobuf::StringPiece, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::io::Printer::Print(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, char const*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'

./.libs/libprotoc.so: undefined reference to `google::protobuf::compiler::DiskSourceTree::DiskFileToVirtualFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::CEscape(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::compiler::Importer::Import(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::SplitStringAllowEmpty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::TextFormat::PrintFieldValueToString(google::protobuf::Message const&, google::protobuf::FieldDescriptor const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

collect2: error: ld returned 1 exit status

make[2]: *** [protoc] Error 1

make[2]: Leaving directory `/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master'

make: *** [all] Error 2

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Seth Axen | 25 Jul 16:43 2015
Picon

Error compiling protobuf 2.6.1 on Red Hat

Hello,
   I am attempting to compile protobuf 2.6.1 to a custom directory on Red Hat with GCC 5.1.1 and libtool 2.4.6. However, I am having difficulties when compiling. Does anyone have any insight into the problem? Here is the output of the compilation:

make  all-recursive

make[1]: Entering directory `/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master'

Making all in .

make[2]: Entering directory `/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master'

make[2]: Leaving directory `/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master'

Making all in src

make[2]: Entering directory `/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src'

/bin/sh ../libtool --tag=CXX   --mode=link g++ -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -pthread  -o protoc google/protobuf/compiler/main.o -lpthread libprotobuf.la libprotoc.la -lz 

libtool: link: g++ -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -pthread -o .libs/protoc google/protobuf/compiler/main.o  ./.libs/libprotobuf.so ./.libs/libprotoc.so /netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/.libs/libprotobuf.so -lpthread -lz -pthread -Wl,-rpath -Wl,/netapp/home/saxen/software/protobuf/lib

google/protobuf/compiler/main.o: In function `main':

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:45: undefined reference to `google::protobuf::compiler::CommandLineInterface::AllowPlugins(std::string const&)'

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:50: undefined reference to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)'

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:55: undefined reference to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)'

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:61: undefined reference to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)'

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:66: undefined reference to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)'

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:71: undefined reference to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)'

/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:76: undefined reference to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)'

google/protobuf/compiler/main.o:/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src/google/protobuf/compiler/main.cc:81: more undefined references to `google::protobuf::compiler::CommandLineInterface::RegisterGenerator(std::string const&, google::protobuf::compiler::CodeGenerator*, std::string const&)' follow

./.libs/libprotoc.so: undefined reference to `google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*)'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf16MethodDescriptor11DebugStringB5cxx11Ev'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf15FieldDescriptor11DebugStringB5cxx11Ev'

./.libs/libprotoc.so: undefined reference to `google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::StringPiece::AppendToString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::DescriptorPool::FindEnumTypeByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'

./.libs/libprotoc.so: undefined reference to `google::protobuf::io::Printer::Print(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf10SimpleItoaB5cxx11El'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf8internal13empty_string_B5cxx11E'

./.libs/libprotoc.so: undefined reference to `google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::StrAppend(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::io::CodedInputStream::ReadString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, int)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf7Message11GetTypeNameB5cxx11Ev'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::WebSafeBase64Unescape(google::protobuf::StringPiece, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::StrAppend(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, google::protobuf::strings::AlphaNum const&, google::protobuf::strings::AlphaNum const&)'

./.libs/libprotoc.so: undefined reference to `_ZN6google8protobuf7strings10SubstituteB5cxx11EPKcRKNS1_8internal13SubstituteArgES7_S7_S7_S7_S7_S7_S7_S7_S7_'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf7Message25InitializationErrorStringB5cxx11Ev'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::io::Printer::Print(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf10SimpleItoaB5cxx11Ei'

./.libs/libprotoc.so: undefined reference to `google::protobuf::MessageLite::SerializeToString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::safe_strtou64(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long*)'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf15FieldDescriptor22DebugStringWithOptionsB5cxx11ERKNS0_18DebugStringOptionsE'

./.libs/libprotoc.so: undefined reference to `google::protobuf::StripString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, char const*, char)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf12StringPrintfB5cxx11EPKcz'

./.libs/libprotobuf.so: undefined reference to `_ZNK6google8protobuf7Message16ShortDebugStringB5cxx11Ev'

./.libs/libprotoc.so: undefined reference to `google::protobuf::io::Printer::Print(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::io::StringOutputStream::StringOutputStream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_S4_S4_S4_'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::internal::WireFormatLite::WriteBytes(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::internal::ParseTime(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long*, int*)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf10SimpleItoaB5cxx11Ej'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf10SimpleFtoaB5cxx11Ef'

./.libs/libprotoc.so: undefined reference to `google::protobuf::GlobalReplaceSubstring(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::Descriptor::FindFieldByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'

./.libs/libprotoc.so: undefined reference to `google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const*, google::protobuf::internal::ArenaStringPtr)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::safe_strto64(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::Descriptor::FindFieldByCamelcaseName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf11MessageLite17SerializeAsStringB5cxx11Ev'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::internal::LogMessage::operator<<(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf15OneofDescriptor22DebugStringWithOptionsB5cxx11ERKNS0_18DebugStringOptionsE'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_S4_S4_'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::safe_strto32(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::compiler::DiskSourceTree::VirtualFileToDiskFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::compiler::Importer::AddUnusedImportTrackFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::safe_strtou32(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::io::Printer::Print(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_S4_'

./.libs/libprotoc.so: undefined reference to `google::protobuf::StrAppend(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, google::protobuf::strings::AlphaNum const&)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::WebSafeBase64EscapeWithPadding(google::protobuf::StringPiece, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::StringReplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::JoinStrings(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `_ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_S4_S4_S4_S4_S4_'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::io::Printer::PrintRaw(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf8internal10FormatTimeB5cxx11Eli'

./.libs/libprotoc.so: undefined reference to `_ZNK6google8protobuf19EnumValueDescriptor11DebugStringB5cxx11Ev'

./.libs/libprotoc.so: undefined reference to `_ZN6google8protobuf8internal13VersionStringB5cxx11Ei'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::io::CodedOutputStream*)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf10SimpleDtoaB5cxx11Ed'

./.libs/libprotoc.so: undefined reference to `google::protobuf::SplitStringUsing(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >*)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::DescriptorPool::FindMessageTypeByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::WebSafeBase64Escape(google::protobuf::StringPiece, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::compiler::DiskSourceTree::MapPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf10SimpleItoaB5cxx11Em'

./.libs/libprotoc.so: undefined reference to `google::protobuf::strings::CHexEscape(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `_ZN6google8protobuf8internal10NameOfEnumB5cxx11EPKNS0_14EnumDescriptorEi'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::internal::ParseAnyTypeUrl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::StringAppendF(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, char const*, ...)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::Base64Unescape(google::protobuf::StringPiece, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::io::Printer::Print(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, char const*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'

./.libs/libprotoc.so: undefined reference to `google::protobuf::compiler::DiskSourceTree::DiskFileToVirtualFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::CEscape(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::MessageLite::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::compiler::Importer::Import(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::SplitStringAllowEmpty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >*)'

./.libs/libprotoc.so: undefined reference to `google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'

./.libs/libprotobuf.so: undefined reference to `google::protobuf::TextFormat::PrintFieldValueToString(google::protobuf::Message const&, google::protobuf::FieldDescriptor const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

collect2: error: ld returned 1 exit status

make[2]: *** [protoc] Error 1

make[2]: Leaving directory `/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master/src'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/netapp/home/saxen/keiser_rotation_spring2015/protobuf-master'

make: *** [all] Error 2

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Smisi David | 27 Jul 05:33 2015
Picon

"unexpected wire type 6 for unexpected 8 field

i got an error when using pb, which show unexpected wire type 6 for unexpected 8 field, in php . Is there any one come accross this problem ? Waiting on Line .Thx

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Qiliang Zhu | 27 Jul 19:47 2015
Picon

C++ fail to parse int64 field set by Java

version : 2.6.1

I compile the same .proto file to both c++ version and java version.   At client I use c++ while at server I use Java.

for a field whose type is int64, for example, I use  Long.parse("12134953")  at server using Java,  c++ fail to parse message.  It work well without this field(without any int64 field),   but when I try to add this field, it fail

any ideas?

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
David Rogers | 23 Jul 22:47 2015
Picon

Yet Another Protocol Buffers Implementation for C

sprotoc - short for stack protocol buffer compiler is a C-code generator for protocol buffers.
It lives at: https://github.com/frobnitzem/sprotoc

I coded it up a year ago and have been using it happily since.
What makes it unique is the ability to write your own copy in/out functions
for each message type so that you aren't stuck with creating a copy of a large recursive data structure.
It generates example copy functions so you can get going without reading excessive documentation.

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Winton Roseland | 24 Jul 21:58 2015
Picon

Protocol Buffers VS2010 C++

This is my first use of protocol buffers and I am using version 3.0 with either "option cc_enable_arenas = false" or true, I get a tremendous amount of heap usage with every message I create. I want to use the code to return data from a web service but the heap usage is too great. I have working code that creates JSON objects, converts them to strings and sends to client. I just adapted it to use protocol buffers instead. I can transfer the protocol buffer data and use it at client, but I don't understand the heap usage. When I call ShutdownProtobufLibrary() before program exit and use the _CrtDumpMemoryLeaks() nothing of significance is reported. Can anyone help?
Thanks
Winton

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
watersanke42 | 22 Jul 22:32 2015
Picon

AIX build failed

Download Protocol Buffers 2.6.1. Run ./configure CXX=xlC successfully but immediately run gmake failed:

bash-2.05a# gmake
gmake  all-recursive
gmake[1]: Entering directory `/home/dyang/protobuf/protobuf-2.6.1'
Making all in .
gmake[2]: Entering directory `/home/dyang/protobuf/protobuf-2.6.1'
gmake[2]: Leaving directory `/home/dyang/protobuf/protobuf-2.6.1'
Making all in src
gmake[2]: Entering directory `/home/dyang/protobuf/protobuf-2.6.1/src'
source='google/protobuf/stubs/atomicops_internals_x86_gcc.cc' object='google/protobuf/stubs/atomicops_internals_x86_gcc.
lo' libtool=yes \
DEPDIR=.deps depmode=xlc /bin/sh ../depcomp \
/bin/sh ../libtool  --tag=CXX   --mode=compile xlC -DHAVE_CONFIG_H -I. -I..    -D_THREAD_SAFE   -DNDEBUG -c -o google/pr
otobuf/stubs/atomicops_internals_x86_gcc.lo google/protobuf/stubs/atomicops_internals_x86_gcc.cc
libtool: compile:  xlC -DHAVE_CONFIG_H -I. -I.. -D_THREAD_SAFE -DNDEBUG -c google/protobuf/stubs/atomicops_internals_x86
_gcc.cc -Wp,-qmakedep=gcc,-MFgoogle/protobuf/stubs/.deps/atomicops_internals_x86_gcc.TPlo  -DPIC -o google/protobuf/stub
s/.libs/atomicops_internals_x86_gcc.o
"./google/protobuf/stubs/atomicops.h", line 214.1: 1540-0825 (W) The character "#" is not allowed.
"./google/protobuf/stubs/platform_macros.h", line 90.1: 1540-0825 (W) The character "#" is not allowed.
"./google/protobuf/stubs/platform_macros.h", line 90.1: 1540-0040 (S) The text ""Host platform was not detected as suppo
rted by protobuf"" is unexpected.  "error" may be undeclared or ambiguous.
gmake[2]: *** [google/protobuf/stubs/atomicops_internals_x86_gcc.lo] Error 1
gmake[2]: Leaving directory `/home/dyang/protobuf/protobuf-2.6.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/dyang/protobuf/protobuf-2.6.1'
gmake: *** [all] Error 2

Anyone successfully build on AIX? Thank you.

Dannis

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
watersanke42 | 22 Jul 22:19 2015
Picon

Protocol Buffers 2.6.0 or 2.6.0 Unable to build on AIX 5.3x6 xlC compiler using gmake

Per install instruction, I run ./configure CXX=xlC successfully but immediate gmake failed as following:

bash-2.05a# gmake
gmake  all-recursive
gmake[1]: Entering directory `/home/dyang/protobuf/protobuf-2.6.1'
Making all in .
gmake[2]: Entering directory `/home/dyang/protobuf/protobuf-2.6.1'
gmake[2]: Leaving directory `/home/dyang/protobuf/protobuf-2.6.1'
Making all in src
gmake[2]: Entering directory `/home/dyang/protobuf/protobuf-2.6.1/src'
source='google/protobuf/stubs/atomicops_internals_x86_gcc.cc' object='google/protobuf/stubs/atomicops_internals_x86_gcc.
lo' libtool=yes \
DEPDIR=.deps depmode=xlc /bin/sh ../depcomp \
/bin/sh ../libtool  --tag=CXX   --mode=compile xlC -DHAVE_CONFIG_H -I. -I..    -D_THREAD_SAFE   -DNDEBUG -c -o google/pr
otobuf/stubs/atomicops_internals_x86_gcc.lo google/protobuf/stubs/atomicops_internals_x86_gcc.cc
libtool: compile:  xlC -DHAVE_CONFIG_H -I. -I.. -D_THREAD_SAFE -DNDEBUG -c google/protobuf/stubs/atomicops_internals_x86
_gcc.cc -Wp,-qmakedep=gcc,-MFgoogle/protobuf/stubs/.deps/atomicops_internals_x86_gcc.TPlo  -DPIC -o google/protobuf/stub
s/.libs/atomicops_internals_x86_gcc.o
"./google/protobuf/stubs/atomicops.h", line 214.1: 1540-0825 (W) The character "#" is not allowed.
"./google/protobuf/stubs/platform_macros.h", line 90.1: 1540-0825 (W) The character "#" is not allowed.
"./google/protobuf/stubs/platform_macros.h", line 90.1: 1540-0040 (S) The text ""Host platform was not detected as suppo
rted by protobuf"" is unexpected.  "error" may be undeclared or ambiguous.
gmake[2]: *** [google/protobuf/stubs/atomicops_internals_x86_gcc.lo] Error 1
gmake[2]: Leaving directory `/home/dyang/protobuf/protobuf-2.6.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/dyang/protobuf/protobuf-2.6.1'
gmake: *** [all] Error 2

Has anyone successfully built Protocol Buffers on AIX? 

Thank you

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Brian Silverman | 21 Jul 23:09 2015
Picon

DynamicMessageTest.Oneof triggers asan failure

Hi,

I'm running the protobuf tests under AddressSanitizer using the Bazel BUILD file, and DynamicMessageTest.Oneof triggers a heap-use-after-free failure. It looks like the issue is half-implemented ctype=CORD support for strings in C++. DynamicMessage doesn't look like it even attempts to handle cords.

Commenting out all of the uses of bar_cord in src/google/protobuf/test_util.cc makes the tests pass. I know use-after-free is not correct behavior, but I don't know what the desired behavior is. Should the open source protobuf compiler completely reject ctype=CORD or are there just a few pieces which need to be fixed to make it work?

Thanks,
Brian Silverman

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Ben Davies | 21 Jul 20:42 2015
Picon

golang protoc compiler - additional golang tags

Hi!

Not sure if this is the right forum, if not please let me know and I will direct my question there.

I've been experimenting with protobufs and grpc in Go and love it! however, I have a question: is it possible to add additional golang tags to the output golang code via the proto file? Maybe as a extension? The reason I ask is that I'd like to add some additional tags that will make it easier to export the members as XML (much like the JSON tags do) or to add an additional layer of validation (to ensure that a string is a valid URL or ISO-3166-A2 2 letter country code).

I'd like to do this on the proto file side that way I can continue to generate the go code without having to keep adding back my additional tags.

Any thoughts?

Cheers!
Ben

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Gmane