I am trying to build protocol buffers 2.3.0 on solaris using CC: Sun C++ 5.7 2005/03/01.
I get a fair way through on the compilation but then get the unexpected type errors as above, even though I am using stlport4 - my error output is:
libtool: compile: CC -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -O3 -m32 -g -DNDEBUG -fno-exceptions -library=stlport4 -xlibmil -xdepend -xbuiltin -mt -compat=5 -library=Crun -template=no%extdef -c google/protobuf/descriptor.cc
CC: Warning: Option -m32 passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -fno-exceptions passed to ld, if ld is invoked, ignored otherwise
"./google/protobuf/descriptor.h", line 324: Warning: Identifier expected instead of "}".
"./google/protobuf/descriptor.h", line 343: Warning: Identifier expected instead of "}".
"./google/protobuf/descriptor.h", line 354: Warning: Identifier expected instead of "}".
"./google/protobuf/descriptor.pb.h", line 87: Error: Unexpected type name "google::protobuf::FieldDescriptorProto_Type" encountered.
"./google/protobuf/descriptor.pb.h", line 107: Error: Unexpected type name "google::protobuf::FieldDescriptorProto_Label" encountered.
"./google/protobuf/descriptor.pb.h", line 127: Error: Unexpected type name "google::protobuf::FileOptions_OptimizeMode" encountered.
"./google/protobuf/descriptor.pb.h", line 147: Error: Unexpected type name "google::protobuf::FieldOptions_CType" encountered.
"./google/protobuf/wire_format_lite.h", line 95: Warning: Identifier expected instead of "}".
"./google/protobuf/wire_format_lite.h", line 118: Warning: Identifier expected instead of "}".
"./google/protobuf/wire_format_lite.h", line 133: Warning: Identifier expected instead of "}".
"./google/protobuf/wire_format.h", line 227: Warning: Identifier expected instead of "}".
"./google/protobuf/stubs/once.h", line 115: Warning (Anachronism): Formal argument 2 of type extern "C" void(*)() in call to pthread_once(_once*, extern "C" void(*)()) is being passed void(*)().
4 Error(s) and 8 Warning(s) detected.
*** Error code 1
make: Fatal error: Command failed for target `descriptor.lo'
Can anyone offer any ideas on what I need to do to get this sorted out?
Thanks.