I downloadd protobuf 2.3.0 and tried to compile it on linux 2.4, I receive the following errors:
OS: Linux version 2.4.21-4.ELsmp ([email protected]) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)) #1 SMP Fri Oct 3 17:52:56 EDT 2003 Compiler: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man -- infodir=/usr/share/info --enable-shared --enable-threads=posix -- disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386- redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20) Error Message: libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -Wall -Wwrite- strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -MT extension_set.lo -MD -MP -MF .deps/extension_set.Tpo -c google/ protobuf/extension_set.cc -fPIC -DPIC -o .libs/extension_set.o google/protobuf/repeated_field.h: In member function `void google::protobuf::internal::RepeatedPtrFieldBase::MergeFrom(const google::protobuf::internal::RepeatedPtrFieldBase&) [with TypeHandler = google::protobuf::RepeatedPtrField<std::string>::TypeHandler<std::string>]': google/protobuf/repeated_field.h:845: instantiated from `void google::protobuf::RepeatedPtrField<Element>::MergeFrom(const google::protobuf::RepeatedPtrField<Element>&) [with Element = std::string]' google/protobuf/extension_set.cc:618: instantiated from here google/protobuf/repeated_field.h:678: no matching function for call to ` google::protobuf::internal::RepeatedPtrFieldBase::Get(int&) const' make[2]: *** [extension_set.lo] Error 1 make[2]: Leaving directory `/amd/galaxy/vol/vol0/users5/nirbe/ cpprotobuf/Linux_2.4/protobuf-2.3.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/amd/galaxy/vol/vol0/users5/nirbe/ cpprotobuf/Linux_2.4/protobuf-2.3.0' make: *** [all] Error 2 6.950u 0.460s 0:08.00 92.6% 0+0k 0+0io 15012pf+0w I think it is a gcc problem. Is there any patch for this? Thanks, Nir -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
