I am getting below compilation error.
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/dynamic_message.lo -MD -MP -MF google/protobuf/.deps/dynamic_message.Tpo -c google/protobuf/dynamic_message.cc -fPIC -DPIC -o google/protobuf/.libs/dynamic_message.o
./google/protobuf/stubs/hash.h: In instantiation of 'google::protobuf::hash':
./google/protobuf/map.h:839: instantiated from here
./google/protobuf/stubs/hash.h:269: error: invalid use of undefined type 'struct std::tr1::hash'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/functional:1101: error: declaration of 'struct std::tr1::hash'
./google/protobuf/map.h: In member function 'size_t google::protobuf::hashgoogle::protobuf::MapKey::operator()(const google::protobuf::MapKey&) const':
./google/protobuf/map.h:839: error: no match for call to '(google::protobuf::hash) (google::protobuf::int64)'
./google/protobuf/stubs/hash.h: At global scope:
./google/protobuf/stubs/hash.h: In instantiation of 'google::protobuf::hash':
./google/protobuf/map.h:843: instantiated from here
./google/protobuf/stubs/hash.h:269: error: invalid use of undefined type 'struct std::tr1::hash'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/functional:1101: error: declaration of 'struct std::tr1::hash'
./google/protobuf/map.h: In member function 'size_t google::protobuf::hashgoogle::protobuf::MapKey::operator()(const google::protobuf::MapKey&) const':
./google/protobuf/map.h:843: error: no match for call to '(google::protobuf::hash) (google::protobuf::uint64)'
./google/protobuf/map_field.h: In member function 'void google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::Swap(google::protobuf::internal::MapFieldLite<Key, T, kKeyFieldType, kValueFieldType, default_enum_value>)':
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field'
./google/protobuf/map_field_inl.h:335: error: from this location
./google/protobuf/map_field.h:149: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::state_'
./google/protobuf/map_field_inl.h:337: error: from this location
./google/protobuf/map_field.h: In member function 'void google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::SetEntryDescriptor(const google::protobuf::Descriptor__)':
./google/protobuf/map_field.h:144: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::entry_descriptor_'
./google/protobuf/map_field_inl.h:348: error: from this location
./google/protobuf/map_field.h: In member function 'void google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::SetAssignDescriptorCallback(void ()())':
./google/protobuf/map_field.h:145: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::assign_descriptor_callback'
./google/protobuf/map_field_inl.h:358: error: from this location
./google/protobuf/map_field.h: In member function 'void google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::SyncRepeatedFieldWithMapNoLock() const':
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:388: error: from this location
./google/protobuf/map_field.h:137: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::arena_'
./google/protobuf/map_field_inl.h:389: error: from this location
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:390: error: from this location
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:392: error: from this location
./google/protobuf/map_field.h:137: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::arena_'
./google/protobuf/map_field_inl.h:394: error: from this location
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:400: error: from this location
./google/protobuf/map_field.h:137: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::arena_'
./google/protobuf/map_field_inl.h:409: error: from this location
./google/protobuf/map_field.h: In member function 'void google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::SyncMapWithRepeatedFieldNoLock() const':
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:426: error: from this location
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:427: error: from this location
./google/protobuf/map_field.h: In member function 'int google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::SpaceUsedExcludingSelfNoLock() const':
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:448: error: from this location
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:449: error: from this location
./google/protobuf/map_field.h: In member function 'void google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::InitDefaultEntryOnce() const':
./google/protobuf/map_field.h:144: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::entry_descriptor_'
./google/protobuf/map_field_inl.h:471: error: from this location
./google/protobuf/map_field.h:144: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::entry_descriptor_'
./google/protobuf/map_field_inl.h:474: error: from this location
make[2]: *** [google/protobuf/dynamic_message.lo] Error 1
Please help me to build protobuf-3.0.0
Thanks.
I am getting below compilation error.
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/dynamic_message.lo -MD -MP -MF google/protobuf/.deps/dynamic_message.Tpo -c google/protobuf/dynamic_message.cc -fPIC -DPIC -o google/protobuf/.libs/dynamic_message.o
./google/protobuf/stubs/hash.h: In instantiation of 'google::protobuf::hash':
./google/protobuf/map.h:839: instantiated from here
./google/protobuf/stubs/hash.h:269: error: invalid use of undefined type 'struct std::tr1::hash'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/functional:1101: error: declaration of 'struct std::tr1::hash'
./google/protobuf/map.h: In member function 'size_t google::protobuf::hashgoogle::protobuf::MapKey::operator()(const google::protobuf::MapKey&) const':
./google/protobuf/map.h:839: error: no match for call to '(google::protobuf::hash) (google::protobuf::int64)'
./google/protobuf/stubs/hash.h: At global scope:
./google/protobuf/stubs/hash.h: In instantiation of 'google::protobuf::hash':
./google/protobuf/map.h:843: instantiated from here
./google/protobuf/stubs/hash.h:269: error: invalid use of undefined type 'struct std::tr1::hash'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/functional:1101: error: declaration of 'struct std::tr1::hash'
./google/protobuf/map.h: In member function 'size_t google::protobuf::hashgoogle::protobuf::MapKey::operator()(const google::protobuf::MapKey&) const':
./google/protobuf/map.h:843: error: no match for call to '(google::protobuf::hash) (google::protobuf::uint64)'
./google/protobuf/map_field.h: In member function 'void google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::Swap(google::protobuf::internal::MapFieldLite<Key, T, kKeyFieldType, kValueFieldType, default_enum_value>)':
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field'
./google/protobuf/map_field_inl.h:335: error: from this location
./google/protobuf/map_field.h:149: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::state_'
./google/protobuf/map_field_inl.h:337: error: from this location
./google/protobuf/map_field.h: In member function 'void google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::SetEntryDescriptor(const google::protobuf::Descriptor__)':
./google/protobuf/map_field.h:144: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::entry_descriptor_'
./google/protobuf/map_field_inl.h:348: error: from this location
./google/protobuf/map_field.h: In member function 'void google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::SetAssignDescriptorCallback(void ()())':
./google/protobuf/map_field.h:145: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::assign_descriptor_callback'
./google/protobuf/map_field_inl.h:358: error: from this location
./google/protobuf/map_field.h: In member function 'void google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::SyncRepeatedFieldWithMapNoLock() const':
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:388: error: from this location
./google/protobuf/map_field.h:137: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::arena_'
./google/protobuf/map_field_inl.h:389: error: from this location
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:390: error: from this location
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:392: error: from this location
./google/protobuf/map_field.h:137: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::arena_'
./google/protobuf/map_field_inl.h:394: error: from this location
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:400: error: from this location
./google/protobuf/map_field.h:137: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::arena_'
./google/protobuf/map_field_inl.h:409: error: from this location
./google/protobuf/map_field.h: In member function 'void google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::SyncMapWithRepeatedFieldNoLock() const':
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:426: error: from this location
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:427: error: from this location
./google/protobuf/map_field.h: In member function 'int google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::SpaceUsedExcludingSelfNoLock() const':
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:448: error: from this location
./google/protobuf/map_field.h:138: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::repeated_field_'
./google/protobuf/map_field_inl.h:449: error: from this location
./google/protobuf/map_field.h: In member function 'void google::protobuf::internal::MapField<Key, T, key_wire_type, value_wire_type, default_enum_value>::InitDefaultEntryOnce() const':
./google/protobuf/map_field.h:144: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::entry_descriptor_'
./google/protobuf/map_field_inl.h:471: error: from this location
./google/protobuf/map_field.h:144: error: object missing in reference to 'google::protobuf::internal::MapFieldBase::entry_descriptor_'
./google/protobuf/map_field_inl.h:474: error: from this location
make[2]: *** [google/protobuf/dynamic_message.lo] Error 1
Please help me to build protobuf-3.0.0
Thanks.