Compiling error on 0.4 (protobuf)

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
Post Reply
User avatar
aP|Nelg
Match Winner
Posts: 621
Joined: Wed Oct 22, 2014 10:22 pm
Contact:

Compiling error on 0.4 (protobuf)

Post by aP|Nelg »

I'm getting a bunch of errors when trying to compile 0.4
protobuf (libprotoc 2.1.0)

Code: Select all

make  all-recursive
make[1]: Entering directory '/home/administrator/0.4'
Making all in src
make[2]: Entering directory '/home/administrator/0.4/src'
Making all in first
make[3]: Entering directory '/home/administrator/0.4/src/first'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/administrator/0.4/src/first'
Making all in protobuf
make[3]: Entering directory '/home/administrator/0.4/src/protobuf'
/usr/bin/protoc tColor.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc tCoord.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc tFunction.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc tPolynomial.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc nAuthentication.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc nNetwork.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc nNetObject.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc nNetObjectPrivate.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc nServerInfo.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc nConfig.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc eTeam.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc ePlayer.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc eNetGameObject.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc eVoter.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc eEventNotification.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc eLagCompensation.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc eTimer.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc zZone.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc zShape.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc gGame.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc gCycle.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc gWall.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc gZone.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
/usr/bin/protoc gAIBase.proto --cpp_out=./ --proto_path=. 2>&1 | sed -e "s,^\(.*\).proto,./\1.proto,"
g++ -DHAVE_CONFIG_H -I. -I../..   -I/usr/include/libxml2 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/libpng12 -I/usr/include/FTGL -I/usr/include/freetype2  -I/usr/include/freetype2  -I. -I./ -O2 -pthread -MT libprotobuf_a-tColor.pb.o -MD -MP -MF .deps/libprotobuf_a-tColor.pb.Tpo -c -o libprotobuf_a-tColor.pb.o `test -f 'tColor.pb.cc' || echo './'`tColor.pb.cc
g++ -DHAVE_CONFIG_H -I. -I../..   -I/usr/include/libxml2 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/libpng12 -I/usr/include/FTGL -I/usr/include/freetype2  -I/usr/include/freetype2  -I. -I./ -O2 -pthread -MT libprotobuf_a-tCoord.pb.o -MD -MP -MF .deps/libprotobuf_a-tCoord.pb.Tpo -c -o libprotobuf_a-tCoord.pb.o `test -f 'tCoord.pb.cc' || echo './'`tCoord.pb.cc
g++ -DHAVE_CONFIG_H -I. -I../..   -I/usr/include/libxml2 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/libpng12 -I/usr/include/FTGL -I/usr/include/freetype2  -I/usr/include/freetype2  -I. -I./ -O2 -pthread -MT libprotobuf_a-tFunction.pb.o -MD -MP -MF .deps/libprotobuf_a-tFunction.pb.Tpo -c -o libprotobuf_a-tFunction.pb.o `test -f 'tFunction.pb.cc' || echo './'`tFunction.pb.cc
In file included from tColor.pb.cc:3:0:
tColor.pb.h:11:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^
tColor.pb.h:12:2: error: #error incompatible with your Protocol Buffer headers. Please update
 #error incompatible with your Protocol Buffer headers.  Please update
  ^
tColor.pb.h:13:2: error: #error your headers.
 #error your headers.
  ^
In file included from tCoord.pb.cc:3:0:
tCoord.pb.h:11:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^
tCoord.pb.h:12:2: error: #error incompatible with your Protocol Buffer headers. Please update
 #error incompatible with your Protocol Buffer headers.  Please update
  ^
tCoord.pb.h:13:2: error: #error your headers.
 #error your headers.
  ^
In file included from tFunction.pb.cc:3:0:
tFunction.pb.h:11:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^
tFunction.pb.h:12:2: error: #error incompatible with your Protocol Buffer headers. Please update
 #error incompatible with your Protocol Buffer headers.  Please update
  ^
tFunction.pb.h:13:2: error: #error your headers.
 #error your headers.
  ^
In file included from tColor.pb.cc:3:0:
tColor.pb.h:74:8: error: conflicting return type specified for 'virtual void Tools::ShortColor::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const'
   void SerializeWithCachedSizes(
        ^
In file included from /usr/local/include/google/protobuf/generated_message_reflection.h:43:0,
                 from tColor.pb.h:21,
                 from tColor.pb.cc:3:
/usr/local/include/google/protobuf/message.h:347:16: error:   overriding 'virtual bool google::protobuf::Message::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const'
   virtual bool SerializeWithCachedSizes(io::CodedOutputStream* output) const;
                ^
In file included from tColor.pb.cc:3:0:
tColor.pb.h:185:8: error: conflicting return type specified for 'virtual void Tools::Color::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const'
   void SerializeWithCachedSizes(
        ^
In file included from /usr/local/include/google/protobuf/generated_message_reflection.h:43:0,
                 from tColor.pb.h:21,
                 from tColor.pb.cc:3:
/usr/local/include/google/protobuf/message.h:347:16: error:   overriding 'virtual bool google::protobuf::Message::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const'
   virtual bool SerializeWithCachedSizes(io::CodedOutputStream* output) const;
                ^
In file included from tCoord.pb.cc:3:0:
tCoord.pb.h:74:8: error: conflicting return type specified for 'virtual void Tools::Position::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const'
   void SerializeWithCachedSizes(
        ^
In file included from /usr/local/include/google/protobuf/generated_message_reflection.h:43:0,
                 from tCoord.pb.h:21,
                 from tCoord.pb.cc:3:
/usr/local/include/google/protobuf/message.h:347:16: error:   overriding 'virtual bool google::protobuf::Message::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const'
   virtual bool SerializeWithCachedSizes(io::CodedOutputStream* output) const;
                ^
In file included from tCoord.pb.cc:3:0:
tCoord.pb.h:177:8: error: conflicting return type specified for 'virtual void Tools::Direction::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const'
   void SerializeWithCachedSizes(
        ^
In file included from /usr/local/include/google/protobuf/generated_message_reflection.h:43:0,
                 from tCoord.pb.h:21,
                 from tCoord.pb.cc:3:
/usr/local/include/google/protobuf/message.h:347:16: error:   overriding 'virtual bool google::protobuf::Message::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const'
   virtual bool SerializeWithCachedSizes(io::CodedOutputStream* output) const;
                ^
tCoord.pb.cc: In function 'void Tools::protobuf_AssignDesc_tCoord_2eproto()':
tCoord.pb.cc:46:23: error: no matching function for call to 'google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::Descriptor*&, Tools::Position*&, const int [3], long int, long int, int, const google::protobuf::DescriptorPool*, google::protobuf::MessageFactory*, long unsigned int)'
       sizeof(Position));
                       ^
tCoord.pb.cc:46:23: note: candidates are:
In file included from tCoord.pb.h:8:0,
                 from tCoord.pb.cc:3:
/usr/local/include/google/protobuf/generated_message_reflection.h:330:3: note: google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::internal::GeneratedMessageReflection&)
   GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(GeneratedMessageReflection);
   ^
/usr/local/include/google/protobuf/generated_message_reflection.h:330:3: note:   candidate expects 1 argument, 9 provided
In file included from tCoord.pb.h:21:0,
                 from tCoord.pb.cc:3:
/usr/local/include/google/protobuf/generated_message_reflection.h:121:3: note: google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::Descriptor*, const google::protobuf::Message*, const int*, int, int, int, const google::protobuf::DescriptorPool*, int)
   GeneratedMessageReflection(const Descriptor* descriptor,
   ^
/usr/local/include/google/protobuf/generated_message_reflection.h:121:3: note:   candidate expects 8 arguments, 9 provided
tCoord.pb.cc:63:24: error: no matching function for call to 'google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::Descriptor*&, Tools::Direction*&, const int [3], long int, long int, int, const google::protobuf::DescriptorPool*, google::protobuf::MessageFactory*, long unsigned int)'
       sizeof(Direction));
                        ^
tCoord.pb.cc:63:24: note: candidates are:
In file included from tCoord.pb.h:8:0,
                 from tCoord.pb.cc:3:
/usr/local/include/google/protobuf/generated_message_reflection.h:330:3: note: google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::internal::GeneratedMessageReflection&)
   GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(GeneratedMessageReflection);
   ^
/usr/local/include/google/protobuf/generated_message_reflection.h:330:3: note:   candidate expects 1 argument, 9 provided
In file included from tCoord.pb.h:21:0,
                 from tCoord.pb.cc:3:
/usr/local/include/google/protobuf/generated_message_reflection.h:121:3: note: google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::Descriptor*, const google::protobuf::Message*, const int*, int, int, int, const google::protobuf::DescriptorPool*, int)
   GeneratedMessageReflection(const Descriptor* descriptor,
   ^
/usr/local/include/google/protobuf/generated_message_reflection.h:121:3: note:   candidate expects 8 arguments, 9 provided
tCoord.pb.cc: In function 'void Tools::protobuf_AddDesc_tCoord_2eproto()':
tCoord.pb.cc:97:3: error: 'InternalAddGeneratedFile' is not a member of 'google::protobuf::DescriptorPool'
   ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
   ^
tCoord.pb.cc:103:3: error: 'InternalRegisterGeneratedFile' is not a member of 'google::protobuf::MessageFactory'
   ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
   ^
tCoord.pb.cc:109:3: error: 'OnShutdown' is not a member of 'google::protobuf::internal'
   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_tCoord_2eproto);
   ^
tCoord.pb.cc: In member function 'virtual void Tools::Position::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const':
tCoord.pb.cc:248:51: error: 'class google::protobuf::io::CodedOutputStream' has no member named 'GetDirectBufferForNBytesAndAdvance'
   ::google::protobuf::uint8* raw_buffer = output->GetDirectBufferForNBytesAndAdvance(_cached_size_);
                                                   ^
tCoord.pb.cc: In member function 'google::protobuf::uint8* Tools::Position::SerializeWithCachedSizesToArray(google::protobuf::uint8*) const':
tCoord.pb.cc:279:14: error: 'WriteFloatToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteFloatToArray(1, this->x(), target);
              ^
tCoord.pb.cc:284:14: error: 'WriteFloatToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteFloatToArray(2, this->y(), target);
              ^
tCoord.pb.cc:289:14: error: 'WriteBoolToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteBoolToArray(20000, this->legacy_message_end_marker(), target);
              ^
tCoord.pb.cc:293:14: error: 'SerializeUnknownFieldsToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
              ^
tCoord.pb.cc: In member function 'virtual void Tools::Direction::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const':
tCoord.pb.cc:521:51: error: 'class google::protobuf::io::CodedOutputStream' has no member named 'GetDirectBufferForNBytesAndAdvance'
   ::google::protobuf::uint8* raw_buffer = output->GetDirectBufferForNBytesAndAdvance(_cached_size_);
                                                   ^
tCoord.pb.cc: In member function 'google::protobuf::uint8* Tools::Direction::SerializeWithCachedSizesToArray(google::protobuf::uint8*) const':
tCoord.pb.cc:552:14: error: 'WriteFloatToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteFloatToArray(1, this->x(), target);
              ^
tCoord.pb.cc:557:14: error: 'WriteFloatToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteFloatToArray(2, this->y(), target);
              ^
tCoord.pb.cc:562:14: error: 'WriteBoolToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteBoolToArray(20000, this->legacy_message_end_marker(), target);
              ^
tCoord.pb.cc:566:14: error: 'SerializeUnknownFieldsToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
              ^
tColor.pb.cc: In function 'void Tools::protobuf_AssignDesc_tColor_2eproto()':
tColor.pb.cc:47:25: error: no matching function for call to 'google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::Descriptor*&, Tools::ShortColor*&, const int [4], long int, long int, int, const google::protobuf::DescriptorPool*, google::protobuf::MessageFactory*, long unsigned int)'
       sizeof(ShortColor));
                         ^
tColor.pb.cc:47:25: note: candidates are:
In file included from tColor.pb.h:8:0,
                 from tColor.pb.cc:3:
/usr/local/include/google/protobuf/generated_message_reflection.h:330:3: note: google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::internal::GeneratedMessageReflection&)
   GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(GeneratedMessageReflection);
   ^
/usr/local/include/google/protobuf/generated_message_reflection.h:330:3: note:   candidate expects 1 argument, 9 provided
In file included from tColor.pb.h:21:0,
                 from tColor.pb.cc:3:
/usr/local/include/google/protobuf/generated_message_reflection.h:121:3: note: google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::Descriptor*, const google::protobuf::Message*, const int*, int, int, int, const google::protobuf::DescriptorPool*, int)
   GeneratedMessageReflection(const Descriptor* descriptor,
   ^
/usr/local/include/google/protobuf/generated_message_reflection.h:121:3: note:   candidate expects 8 arguments, 9 provided
tColor.pb.cc:66:20: error: no matching function for call to 'google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::Descriptor*&, Tools::Color*&, const int [5], long int, long int, int, const google::protobuf::DescriptorPool*, google::protobuf::MessageFactory*, long unsigned int)'
       sizeof(Color));
                    ^
tColor.pb.cc:66:20: note: candidates are:
In file included from tColor.pb.h:8:0,
                 from tColor.pb.cc:3:
/usr/local/include/google/protobuf/generated_message_reflection.h:330:3: note: google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::internal::GeneratedMessageReflection&)
   GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(GeneratedMessageReflection);
   ^
/usr/local/include/google/protobuf/generated_message_reflection.h:330:3: note:   candidate expects 1 argument, 9 provided
In file included from tColor.pb.h:21:0,
                 from tColor.pb.cc:3:
/usr/local/include/google/protobuf/generated_message_reflection.h:121:3: note: google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::Descriptor*, const google::protobuf::Message*, const int*, int, int, int, const google::protobuf::DescriptorPool*, int)
   GeneratedMessageReflection(const Descriptor* descriptor,
   ^
/usr/local/include/google/protobuf/generated_message_reflection.h:121:3: note:   candidate expects 8 arguments, 9 provided
tColor.pb.cc: In function 'void Tools::protobuf_AddDesc_tColor_2eproto()':
tColor.pb.cc:100:3: error: 'InternalAddGeneratedFile' is not a member of 'google::protobuf::DescriptorPool'
   ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
   ^
tColor.pb.cc:106:3: error: 'InternalRegisterGeneratedFile' is not a member of 'google::protobuf::MessageFactory'
   ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
   ^
tColor.pb.cc:112:3: error: 'OnShutdown' is not a member of 'google::protobuf::internal'
   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_tColor_2eproto);
   ^
tColor.pb.cc: In member function 'virtual void Tools::ShortColor::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const':
tColor.pb.cc:268:51: error: 'class google::protobuf::io::CodedOutputStream' has no member named 'GetDirectBufferForNBytesAndAdvance'
   ::google::protobuf::uint8* raw_buffer = output->GetDirectBufferForNBytesAndAdvance(_cached_size_);
                                                   ^
tColor.pb.cc: In member function 'google::protobuf::uint8* Tools::ShortColor::SerializeWithCachedSizesToArray(google::protobuf::uint8*) const':
tColor.pb.cc:304:14: error: 'WriteUInt32ToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteUInt32ToArray(1, this->r(), target);
              ^
tColor.pb.cc:309:14: error: 'WriteUInt32ToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteUInt32ToArray(2, this->g(), target);
              ^
tColor.pb.cc:314:14: error: 'WriteUInt32ToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteUInt32ToArray(3, this->b(), target);
              ^
tColor.pb.cc:319:14: error: 'WriteBoolToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteBoolToArray(20000, this->legacy_message_end_marker(), target);
              ^
tColor.pb.cc:323:14: error: 'SerializeUnknownFieldsToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
              ^
tColor.pb.cc: In member function 'virtual void Tools::Color::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const':
tColor.pb.cc:600:51: error: 'class google::protobuf::io::CodedOutputStream' has no member named 'GetDirectBufferForNBytesAndAdvance'
   ::google::protobuf::uint8* raw_buffer = output->GetDirectBufferForNBytesAndAdvance(_cached_size_);
                                                   ^
tColor.pb.cc: In member function 'google::protobuf::uint8* Tools::Color::SerializeWithCachedSizesToArray(google::protobuf::uint8*) const':
tColor.pb.cc:641:14: error: 'WriteFloatToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteFloatToArray(1, this->r(), target);
              ^
tColor.pb.cc:646:14: error: 'WriteFloatToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteFloatToArray(2, this->g(), target);
              ^
tColor.pb.cc:651:14: error: 'WriteFloatToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteFloatToArray(3, this->b(), target);
              ^
tColor.pb.cc:656:14: error: 'WriteFloatToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteFloatToArray(4, this->a(), target);
              ^
tColor.pb.cc:661:14: error: 'WriteBoolToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteBoolToArray(20000, this->legacy_message_end_marker(), target);
              ^
tColor.pb.cc:665:14: error: 'SerializeUnknownFieldsToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
              ^
In file included from tFunction.pb.cc:3:0:
tFunction.pb.h:73:8: error: conflicting return type specified for 'virtual void Tools::Function::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const'
   void SerializeWithCachedSizes(
        ^
In file included from /usr/local/include/google/protobuf/generated_message_reflection.h:43:0,
                 from tFunction.pb.h:21,
                 from tFunction.pb.cc:3:
/usr/local/include/google/protobuf/message.h:347:16: error:   overriding 'virtual bool google::protobuf::Message::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const'
   virtual bool SerializeWithCachedSizes(io::CodedOutputStream* output) const;
                ^
Makefile:511: recipe for target 'libprotobuf_a-tCoord.pb.o' failed
make[3]: *** [libprotobuf_a-tCoord.pb.o] Error 1
make[3]: *** Waiting for unfinished jobs....
Makefile:497: recipe for target 'libprotobuf_a-tColor.pb.o' failed
make[3]: *** [libprotobuf_a-tColor.pb.o] Error 1
tFunction.pb.cc: In function 'void Tools::protobuf_AssignDesc_tFunction_2eproto()':
tFunction.pb.cc:44:23: error: no matching function for call to 'google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::Descriptor*&, Tools::Function*&, const int [4], long int, long int, int, const google::protobuf::DescriptorPool*, google::protobuf::MessageFactory*, long unsigned int)'
       sizeof(Function));
                       ^
tFunction.pb.cc:44:23: note: candidates are:
In file included from tFunction.pb.h:8:0,
                 from tFunction.pb.cc:3:
/usr/local/include/google/protobuf/generated_message_reflection.h:330:3: note: google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::internal::GeneratedMessageReflection&)
   GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(GeneratedMessageReflection);
   ^
/usr/local/include/google/protobuf/generated_message_reflection.h:330:3: note:   candidate expects 1 argument, 9 provided
In file included from tFunction.pb.h:21:0,
                 from tFunction.pb.cc:3:
/usr/local/include/google/protobuf/generated_message_reflection.h:121:3: note: google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(const google::protobuf::Descriptor*, const google::protobuf::Message*, const int*, int, int, int, const google::protobuf::DescriptorPool*, int)
   GeneratedMessageReflection(const Descriptor* descriptor,
   ^
/usr/local/include/google/protobuf/generated_message_reflection.h:121:3: note:   candidate expects 8 arguments, 9 provided
tFunction.pb.cc: In function 'void Tools::protobuf_AddDesc_tFunction_2eproto()':
tFunction.pb.cc:74:3: error: 'InternalAddGeneratedFile' is not a member of 'google::protobuf::DescriptorPool'
   ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
   ^
tFunction.pb.cc:78:3: error: 'InternalRegisterGeneratedFile' is not a member of 'google::protobuf::MessageFactory'
   ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
   ^
tFunction.pb.cc:82:3: error: 'OnShutdown' is not a member of 'google::protobuf::internal'
   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_tFunction_2eproto);
   ^
tFunction.pb.cc: In member function 'virtual void Tools::Function::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const':
tFunction.pb.cc:238:51: error: 'class google::protobuf::io::CodedOutputStream' has no member named 'GetDirectBufferForNBytesAndAdvance'
   ::google::protobuf::uint8* raw_buffer = output->GetDirectBufferForNBytesAndAdvance(_cached_size_);
                                                   ^
tFunction.pb.cc: In member function 'google::protobuf::uint8* Tools::Function::SerializeWithCachedSizesToArray(google::protobuf::uint8*) const':
tFunction.pb.cc:274:14: error: 'WriteFloatToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteFloatToArray(1, this->offset(), target);
              ^
tFunction.pb.cc:279:14: error: 'WriteFloatToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteFloatToArray(2, this->slope(), target);
              ^
tFunction.pb.cc:284:14: error: 'WriteUInt32ToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteUInt32ToArray(16, this->id(), target);
              ^
tFunction.pb.cc:289:14: error: 'WriteBoolToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::WriteBoolToArray(20000, this->legacy_message_end_marker(), target);
              ^
tFunction.pb.cc:293:14: error: 'SerializeUnknownFieldsToArray' is not a member of 'google::protobuf::internal::WireFormat'
     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
              ^
Makefile:525: recipe for target 'libprotobuf_a-tFunction.pb.o' failed
make[3]: *** [libprotobuf_a-tFunction.pb.o] Error 1
make[3]: Leaving directory '/home/administrator/0.4/src/protobuf'
Makefile:4135: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/administrator/0.4/src'
Makefile:758: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/administrator/0.4'
Makefile:549: recipe for target 'all' failed
make: *** [all] Error 2
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Re: Compiling error on 0.4 (protobuf)

Post by Lucifer »

You need to upgrade your protoc installation. Somehow something got out of sync, I'm guessing. But the relevant line is here:
Build output wrote: tColor.pb.h:11:2: error: #error This file was generated by a newer version of protoc which is
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
Post Reply