=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for protobuf-c-1.3.3nb3 GEN t/test-full.pb.h GEN t/test-full.pb.cc [libprotobuf WARNING google/protobuf/compiler/parser.cc:645] No syntax specified for the proto file: t/test-full.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) [libprotobuf WARNING google/protobuf/compiler/parser.cc:645] No syntax specified for the proto file: t/test-full.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.) CXX protoc-c/protoc_gen_c-c_bytes_field.o CXX protoc-c/protoc_gen_c-c_enum.o CXX protoc-c/protoc_gen_c-c_enum_field.o CXX protoc-c/protoc_gen_c-c_extension.o In file included from protoc-c/c_extension.cc:63:0: ./protoc-c/c_extension.h:88:37: error: 'string' does not name a type; did you mean 'stdin'? const string& dllexport_decl); ^~~~~~ stdin ./protoc-c/c_extension.h:99:3: error: 'string' does not name a type; did you mean 'stdin'? string type_traits_; ^~~~~~ stdin ./protoc-c/c_extension.h:100:3: error: 'string' does not name a type; did you mean 'stdin'? string dllexport_decl_; ^~~~~~ stdin In file included from ./protoc-c/c_bytes_field.h:68:0, from protoc-c/c_bytes_field.cc:63: ./protoc-c/c_field.h:94:11: error: 'string' does not name a type; did you mean 'stdin'? virtual string GetDefaultValue() const = 0; ^~~~~~ stdin In file included from protoc-c/c_enum.cc:66:0: ./protoc-c/c_enum.h:84:32: error: 'string' does not name a type; did you mean 'stdin'? const string& dllexport_decl); ^~~~~~ stdin ./protoc-c/c_field.h:103:51: error: 'string' does not name a type; did you mean 'stdin'? const string &type_macro, ^~~~~~ stdin ./protoc-c/c_enum.h:108:3: error: 'string' does not name a type; did you mean 'stdin'? string dllexport_decl_; ^~~~~~ stdin ./protoc-c/c_field.h:104:51: error: 'string' does not name a type; did you mean 'stdin'? const string &descriptor_addr) const; ^~~~~~ stdin In file included from protoc-c/c_bytes_field.cc:63:0: ./protoc-c/c_bytes_field.h:85:3: error: 'string' does not name a type; did you mean 'stdin'? string GetDefaultValue(void) const; ^~~~~~ stdin ./protoc-c/c_bytes_field.h:89:12: error: 'string' was not declared in this scope std::map variables_; ^~~~~~ ./protoc-c/c_bytes_field.h:89:12: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_bytes_field.h:66, from protoc-c/c_bytes_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' In file included from protoc-c/c_bytes_field.cc:63:0: ./protoc-c/c_bytes_field.h:89:20: error: 'string' was not declared in this scope std::map variables_; ^~~~~~ ./protoc-c/c_bytes_field.h:89:20: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_bytes_field.h:66, from protoc-c/c_bytes_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' In file included from protoc-c/c_bytes_field.cc:63:0: ./protoc-c/c_bytes_field.h:89:26: error: template argument 1 is invalid std::map variables_; ^ ./protoc-c/c_bytes_field.h:89:26: error: template argument 2 is invalid ./protoc-c/c_bytes_field.h:89:26: error: template argument 3 is invalid ./protoc-c/c_bytes_field.h:89:26: error: template argument 4 is invalid In file included from ./protoc-c/c_enum_field.h:68:0, from protoc-c/c_enum_field.cc:63: ./protoc-c/c_field.h:94:11: error: 'string' does not name a type; did you mean 'stdin'? virtual string GetDefaultValue() const = 0; ^~~~~~ stdin ./protoc-c/c_field.h:103:51: error: 'string' does not name a type; did you mean 'stdin'? const string &type_macro, ^~~~~~ stdin ./protoc-c/c_field.h:104:51: error: 'string' does not name a type; did you mean 'stdin'? const string &descriptor_addr) const; ^~~~~~ stdin In file included from protoc-c/c_enum_field.cc:63:0: ./protoc-c/c_enum_field.h:83:3: error: 'string' does not name a type; did you mean 'stdin'? string GetDefaultValue(void) const; ^~~~~~ stdin ./protoc-c/c_enum_field.h:87:12: error: 'string' was not declared in this scope std::map variables_; ^~~~~~ ./protoc-c/c_enum_field.h:87:12: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_enum_field.h:66, from protoc-c/c_enum_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' In file included from protoc-c/c_enum_field.cc:63:0: ./protoc-c/c_enum_field.h:87:20: error: 'string' was not declared in this scope std::map variables_; ^~~~~~ ./protoc-c/c_enum_field.h:87:20: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_enum_field.h:66, from protoc-c/c_enum_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' In file included from protoc-c/c_enum_field.cc:63:0: ./protoc-c/c_enum_field.h:87:26: error: template argument 1 is invalid std::map variables_; ^ ./protoc-c/c_enum_field.h:87:26: error: template argument 2 is invalid ./protoc-c/c_enum_field.h:87:26: error: template argument 3 is invalid ./protoc-c/c_enum_field.h:87:26: error: template argument 4 is invalid In file included from protoc-c/c_enum.cc:67:0: ./protoc-c/c_helpers.h:86:1: error: 'string' does not name a type; did you mean 'stdin'? string ClassName(const Descriptor* descriptor, bool qualified); ^~~~~~ stdin ./protoc-c/c_helpers.h:87:1: error: 'string' does not name a type; did you mean 'stdin'? string ClassName(const EnumDescriptor* enum_descriptor, bool qualified); ^~~~~~ stdin ./protoc-c/c_helpers.h:90:23: error: 'string' does not name a type; did you mean 'stdin'? template string SimpleItoa(T n) { ^~~~~~ stdin ./protoc-c/c_helpers.h:96:1: error: 'string' does not name a type; did you mean 'stdin'? string SimpleFtoa(float f); ^~~~~~ stdin ./protoc-c/c_helpers.h:97:1: error: 'string' does not name a type; did you mean 'stdin'? string SimpleDtoa(double f); ^~~~~~ stdin ./protoc-c/c_helpers.h:98:29: error: 'string' does not name a type; did you mean 'stdin'? void SplitStringUsing(const string &str, const char *delim, std::vector *out); ^~~~~~ stdin ./protoc-c/c_helpers.h:98:73: error: 'string' was not declared in this scope void SplitStringUsing(const string &str, const char *delim, std::vector *out); ^~~~~~ ./protoc-c/c_helpers.h:98:73: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from protoc-c/c_enum.cc:64: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' In file included from protoc-c/c_enum.cc:67:0: ./protoc-c/c_helpers.h:98:79: error: template argument 1 is invalid void SplitStringUsing(const string &str, const char *delim, std::vector *out); ^ ./protoc-c/c_helpers.h:98:79: error: template argument 2 is invalid ./protoc-c/c_helpers.h:99:1: error: 'string' does not name a type; did you mean 'stdin'? string CEscape(const string& src); ^~~~~~ stdin ./protoc-c/c_helpers.h:100:1: error: 'string' does not name a type; did you mean 'stdin'? string StringReplace(const string& s, const string& oldsub, const string& newsub, bool replace_all); ^~~~~~ stdin ./protoc-c/c_helpers.h:101:35: error: 'string' does not name a type; did you mean 'stdin'? inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~~~ stdin ./protoc-c/c_helpers.h:101:54: error: 'string' does not name a type; did you mean 'stdin'? inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~~~ stdin ./protoc-c/c_helpers.h: In function 'bool google::protobuf::compiler::c::HasSuffixString(const int&, const int&)': ./protoc-c/c_helpers.h:101:83: error: request for member 'size' in 'str', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ ./protoc-c/c_helpers.h:101:100: error: request for member 'size' in 'suffix', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ ./protoc-c/c_helpers.h:101:114: error: request for member 'compare' in 'str', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~~~~ ./protoc-c/c_helpers.h:101:126: error: request for member 'size' in 'str', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ In file included from protoc-c/c_enum.cc:67:0: ./protoc-c/c_helpers.h:101:142: error: request for member 'size' in 'suffix', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ ./protoc-c/c_helpers.h:101:157: error: request for member 'size' in 'suffix', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ ./protoc-c/c_helpers.h: At global scope: ./protoc-c/c_helpers.h:102:8: error: 'string' does not name a type; did you mean 'stdin'? inline string StripSuffixString(const string& str, const string& suffix) { if (HasSuffixString(str, suffix)) { return str.substr(0, str.size() - suffix.size()); } else { return str; } } ^~~~~~ stdin ./protoc-c/c_helpers.h:110:1: error: 'string' does not name a type; did you mean 'stdin'? string FieldName(const FieldDescriptor* field); ^~~~~~ stdin ./protoc-c/c_helpers.h:113:1: error: 'string' does not name a type; did you mean 'stdin'? string FieldDeprecated(const FieldDescriptor* field); ^~~~~~ stdin ./protoc-c/c_helpers.h:124:1: error: 'string' does not name a type; did you mean 'stdin'? string CamelToUpper(const string &class_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:125:1: error: 'string' does not name a type; did you mean 'stdin'? string CamelToLower(const string &class_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:128:1: error: 'string' does not name a type; did you mean 'stdin'? string ToCamel(const string &name); ^~~~~~ stdin ./protoc-c/c_helpers.h:131:1: error: 'string' does not name a type; did you mean 'stdin'? string ToLower(const string &class_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:132:1: error: 'string' does not name a type; did you mean 'stdin'? string ToUpper(const string &class_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:135:1: error: 'string' does not name a type; did you mean 'stdin'? string FullNameToLower(const string &full_name); ^~~~~~ stdin In file included from protoc-c/c_bytes_field.cc:64:0: ./protoc-c/c_helpers.h:86:1: error: 'string' does not name a type; did you mean 'stdin'? string ClassName(const Descriptor* descriptor, bool qualified); ^~~~~~ stdin ./protoc-c/c_helpers.h:136:1: error: 'string' does not name a type; did you mean 'stdin'? string FullNameToUpper(const string &full_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:87:1: error: 'string' does not name a type; did you mean 'stdin'? string ClassName(const EnumDescriptor* enum_descriptor, bool qualified); ^~~~~~ stdin ./protoc-c/c_helpers.h:139:1: error: 'string' does not name a type; did you mean 'stdin'? string FullNameToC(const string &class_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:142:42: error: 'string' has not been declared void PrintComment (io::Printer* printer, string comment); ^~~~~~ ./protoc-c/c_helpers.h:90:23: error: 'string' does not name a type; did you mean 'stdin'? template string SimpleItoa(T n) { ^~~~~~ stdin ./protoc-c/c_helpers.h:145:1: error: 'string' does not name a type; did you mean 'stdin'? string ConvertToSpaces(const string &input); ^~~~~~ stdin ./protoc-c/c_helpers.h:96:1: error: 'string' does not name a type; did you mean 'stdin'? string SimpleFtoa(float f); ^~~~~~ stdin ./protoc-c/c_helpers.h:148:1: error: 'string' does not name a type; did you mean 'stdin'? string StripProto(const string& filename); ^~~~~~ stdin ./protoc-c/c_helpers.h:97:1: error: 'string' does not name a type; did you mean 'stdin'? string SimpleDtoa(double f); ^~~~~~ stdin ./protoc-c/c_helpers.h:162:1: error: 'string' does not name a type; did you mean 'stdin'? string FilenameIdentifier(const string& filename); ^~~~~~ stdin ./protoc-c/c_helpers.h:98:29: error: 'string' does not name a type; did you mean 'stdin'? void SplitStringUsing(const string &str, const char *delim, std::vector *out); ^~~~~~ stdin ./protoc-c/c_helpers.h:98:73: error: 'string' was not declared in this scope void SplitStringUsing(const string &str, const char *delim, std::vector *out); ^~~~~~ ./protoc-c/c_helpers.h:98:73: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_bytes_field.h:66, from protoc-c/c_bytes_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' ./protoc-c/c_helpers.h:165:1: error: 'string' does not name a type; did you mean 'stdin'? string GlobalBuildDescriptorsName(const string& filename); ^~~~~~ stdin In file included from protoc-c/c_bytes_field.cc:64:0: ./protoc-c/c_helpers.h:98:79: error: template argument 1 is invalid void SplitStringUsing(const string &str, const char *delim, std::vector *out); ^ ./protoc-c/c_helpers.h:98:79: error: template argument 2 is invalid ./protoc-c/c_helpers.h:168:1: error: 'string' does not name a type; did you mean 'stdin'? string GetLabelName(FieldDescriptor::Label label); ^~~~~~ stdin ./protoc-c/c_helpers.h:99:1: error: 'string' does not name a type; did you mean 'stdin'? string CEscape(const string& src); ^~~~~~ stdin ./protoc-c/c_helpers.h:173:86: error: 'string' does not name a type; did you mean 'stdin'? unsigned WriteIntRanges(io::Printer* printer, int n_values, const int *values, const string &name); ^~~~~~ stdin ./protoc-c/c_helpers.h:100:1: error: 'string' does not name a type; did you mean 'stdin'? string StringReplace(const string& s, const string& oldsub, const string& newsub, bool replace_all); ^~~~~~ stdin ./protoc-c/c_helpers.h:101:35: error: 'string' does not name a type; did you mean 'stdin'? inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~~~ stdin protoc-c/c_enum.cc:76:36: error: 'string' does not name a type; did you mean 'stdin'? const string& dllexport_decl) ^~~~~~ stdin protoc-c/c_enum.cc: In constructor 'google::protobuf::compiler::c::EnumGenerator::EnumGenerator(const google::protobuf::EnumDescriptor*, const int&)': protoc-c/c_enum.cc:78:5: error: class 'google::protobuf::compiler::c::EnumGenerator' does not have any field named 'dllexport_decl_' dllexport_decl_(dllexport_decl) { ^~~~~~~~~~~~~~~ protoc-c/c_enum.cc: In member function 'void google::protobuf::compiler::c::EnumGenerator::GenerateDefinition(google::protobuf::io::Printer*)': protoc-c/c_enum.cc:84:12: error: 'string' was not declared in this scope std::map vars; ^~~~~~ protoc-c/c_enum.cc:84:12: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from protoc-c/c_enum.cc:64: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ ./protoc-c/c_helpers.h:101:54: error: 'string' does not name a type; did you mean 'stdin'? inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~~~ stdin /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' ./protoc-c/c_helpers.h: In function 'bool google::protobuf::compiler::c::HasSuffixString(const int&, const int&)': ./protoc-c/c_helpers.h:101:83: error: request for member 'size' in 'str', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ protoc-c/c_enum.cc:84:26: error: template argument 1 is invalid std::map vars; ^ ./protoc-c/c_helpers.h:101:100: error: request for member 'size' in 'suffix', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ protoc-c/c_enum.cc:84:26: error: type/value mismatch at argument 2 in template parameter list for 'template class std::map' ./protoc-c/c_helpers.h:101:114: error: request for member 'compare' in 'str', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~~~~ protoc-c/c_enum.cc:84:26: note: expected a type, got 'string' ./protoc-c/c_helpers.h:101:126: error: request for member 'size' in 'str', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ protoc-c/c_enum.cc:84:26: error: template argument 3 is invalid In file included from protoc-c/c_bytes_field.cc:64:0: ./protoc-c/c_helpers.h:101:142: error: request for member 'size' in 'suffix', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ protoc-c/c_enum.cc:84:26: error: template argument 4 is invalid ./protoc-c/c_helpers.h:101:157: error: request for member 'size' in 'suffix', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ protoc-c/c_enum.cc:85:23: error: 'FullNameToC' was not declared in this scope vars["classname"] = FullNameToC(descriptor_->full_name()); ^~~~~~~~~~~ ./protoc-c/c_helpers.h: At global scope: ./protoc-c/c_helpers.h:102:8: error: 'string' does not name a type; did you mean 'stdin'? inline string StripSuffixString(const string& str, const string& suffix) { if (HasSuffixString(str, suffix)) { return str.substr(0, str.size() - suffix.size()); } else { return str; } } ^~~~~~ stdin ./protoc-c/c_helpers.h:110:1: error: 'string' does not name a type; did you mean 'stdin'? string FieldName(const FieldDescriptor* field); ^~~~~~ stdin protoc-c/c_enum.cc:86:41: error: assignment of read-only location '"shortname"[vars]' vars["shortname"] = descriptor_->name(); ^ protoc-c/c_enum.cc:86:41: error: cannot convert 'const string {aka const std::__cxx11::basic_string}' to 'const char' in assignment protoc-c/c_enum.cc:87:21: error: 'FullNameToUpper' was not declared in this scope vars["uc_name"] = FullNameToUpper(descriptor_->full_name()); ^~~~~~~~~~~~~~~ ./protoc-c/c_helpers.h:113:1: error: 'string' does not name a type; did you mean 'stdin'? string FieldDeprecated(const FieldDescriptor* field); ^~~~~~ stdin ./protoc-c/c_helpers.h:124:1: error: 'string' does not name a type; did you mean 'stdin'? string CamelToUpper(const string &class_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:125:1: error: 'string' does not name a type; did you mean 'stdin'? string CamelToLower(const string &class_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:128:1: error: 'string' does not name a type; did you mean 'stdin'? string ToCamel(const string &name); ^~~~~~ stdin ./protoc-c/c_helpers.h:131:1: error: 'string' does not name a type; did you mean 'stdin'? string ToLower(const string &class_name); ^~~~~~ stdin protoc-c/c_enum.cc:91:52: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'int' for argument '2' to 'void google::protobuf::compiler::c::PrintComment(google::protobuf::io::Printer*, int)' PrintComment (printer, sourceLoc.leading_comments); ^ protoc-c/c_enum.cc:93:55: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [29])' printer->Print(vars, "typedef enum _$classname$ {\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: ./protoc-c/c_helpers.h:132:1: error: 'string' does not name a type; did you mean 'stdin'? string ToUpper(const string &class_name); ^~~~~~ stdin protoc-c/c_enum.cc:93:55: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print(vars, "typedef enum _$classname$ {\n"); ^ protoc-c/c_enum.cc:100:23: error: assignment of read-only location '"opt_comma"[vars]' vars["opt_comma"] = ","; ^~~ protoc-c/c_enum.cc:100:23: error: invalid conversion from 'const char*' to 'char' [-fpermissive] protoc-c/c_enum.cc:103:48: error: assignment of read-only location '"name"[vars]' vars["name"] = descriptor_->value(i)->name(); ^ protoc-c/c_enum.cc:103:48: error: cannot convert 'const string {aka const std::__cxx11::basic_string}' to 'const char' in assignment ./protoc-c/c_helpers.h:135:1: error: 'string' does not name a type; did you mean 'stdin'? string FullNameToLower(const string &full_name); ^~~~~~ stdin protoc-c/c_enum.cc:104:64: error: assignment of read-only location '"number"[vars]' vars["number"] = SimpleItoa(descriptor_->value(i)->number()); ^ protoc-c/c_enum.cc:104:64: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char' in assignment protoc-c/c_enum.cc:106:27: error: assignment of read-only location '"opt_comma"[vars]' vars["opt_comma"] = ""; ^~ protoc-c/c_enum.cc:106:27: error: invalid conversion from 'const char*' to 'char' [-fpermissive] protoc-c/c_enum.cc:111:57: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'int' for argument '2' to 'void google::protobuf::compiler::c::PrintComment(google::protobuf::io::Printer*, int)' PrintComment (printer, valSourceLoc.leading_comments); ^ protoc-c/c_enum.cc:112:58: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'int' for argument '2' to 'void google::protobuf::compiler::c::PrintComment(google::protobuf::io::Printer*, int)' PrintComment (printer, valSourceLoc.trailing_comments); ^ ./protoc-c/c_helpers.h:136:1: error: 'string' does not name a type; did you mean 'stdin'? string FullNameToUpper(const string &full_name); ^~~~~~ stdin protoc-c/c_enum.cc:113:66: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [38])' printer->Print(vars, "$prefix$$name$ = $number$$opt_comma$\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ ./protoc-c/c_helpers.h:139:1: error: 'string' does not name a type; did you mean 'stdin'? string FullNameToC(const string &class_name); ^~~~~~ stdin /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: ./protoc-c/c_helpers.h:142:42: error: 'string' has not been declared void PrintComment (io::Printer* printer, string comment); ^~~~~~ protoc-c/c_enum.cc:113:66: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print(vars, "$prefix$$name$ = $number$$opt_comma$\n"); ^ protoc-c/c_enum.cc:123:78: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [52])' printer->Print(vars, " PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE($uc_name$)\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: ./protoc-c/c_helpers.h:145:1: error: 'string' does not name a type; did you mean 'stdin'? string ConvertToSpaces(const string &input); ^~~~~~ stdin protoc-c/c_enum.cc:123:78: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print(vars, " PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE($uc_name$)\n"); ^ protoc-c/c_enum.cc:125:42: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [16])' printer->Print(vars, "} $classname$;\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: ./protoc-c/c_helpers.h:148:1: error: 'string' does not name a type; did you mean 'stdin'? string StripProto(const string& filename); ^~~~~~ stdin protoc-c/c_enum.cc:125:42: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print(vars, "} $classname$;\n"); ^ protoc-c/c_enum.cc: In member function 'void google::protobuf::compiler::c::EnumGenerator::GenerateDescriptorDeclarations(google::protobuf::io::Printer*)': protoc-c/c_enum.cc:129:12: error: 'string' was not declared in this scope std::map vars; ^~~~~~ protoc-c/c_enum.cc:129:12: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from protoc-c/c_enum.cc:64: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' protoc-c/c_enum.cc:129:26: error: template argument 1 is invalid std::map vars; ^ protoc-c/c_enum.cc:129:26: error: type/value mismatch at argument 2 in template parameter list for 'template class std::map' ./protoc-c/c_helpers.h:162:1: error: 'string' does not name a type; did you mean 'stdin'? string FilenameIdentifier(const string& filename); ^~~~~~ stdin protoc-c/c_enum.cc:129:26: note: expected a type, got 'string' protoc-c/c_enum.cc:129:26: error: template argument 3 is invalid protoc-c/c_enum.cc:129:26: error: template argument 4 is invalid protoc-c/c_enum.cc:130:7: error: 'dllexport_decl_' was not declared in this scope if (dllexport_decl_.empty()) { ^~~~~~~~~~~~~~~ ./protoc-c/c_helpers.h:165:1: error: 'string' does not name a type; did you mean 'stdin'? string GlobalBuildDescriptorsName(const string& filename); ^~~~~~ stdin ./protoc-c/c_helpers.h:168:1: error: 'string' does not name a type; did you mean 'stdin'? string GetLabelName(FieldDescriptor::Label label); ^~~~~~ stdin ./protoc-c/c_helpers.h:173:86: error: 'string' does not name a type; did you mean 'stdin'? unsigned WriteIntRanges(io::Printer* printer, int n_values, const int *values, const string &name); ^~~~~~ stdin protoc-c/c_enum.cc:131:25: error: assignment of read-only location '"dllexport"[vars]' vars["dllexport"] = ""; ^~ protoc-c/c_enum.cc:131:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive] protoc-c/c_enum.cc:135:23: error: 'FullNameToC' was not declared in this scope vars["classname"] = FullNameToC(descriptor_->full_name()); ^~~~~~~~~~~ protoc-c/c_bytes_field.cc:77:34: error: 'string' was not declared in this scope std::map* variables) { ^~~~~~ protoc-c/c_bytes_field.cc:77:34: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_bytes_field.h:66, from protoc-c/c_bytes_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' protoc-c/c_bytes_field.cc:77:42: error: 'string' was not declared in this scope std::map* variables) { ^~~~~~ protoc-c/c_bytes_field.cc:77:42: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_bytes_field.h:66, from protoc-c/c_bytes_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' protoc-c/c_bytes_field.cc:77:48: error: template argument 1 is invalid std::map* variables) { ^ protoc-c/c_bytes_field.cc:77:48: error: template argument 2 is invalid protoc-c/c_bytes_field.cc:77:48: error: template argument 3 is invalid protoc-c/c_bytes_field.cc:77:48: error: template argument 4 is invalid protoc-c/c_bytes_field.cc: In function 'void google::protobuf::compiler::c::SetBytesVariables(const google::protobuf::FieldDescriptor*, int*)': protoc-c/c_bytes_field.cc:78:26: error: 'FieldName' was not declared in this scope (*variables)["name"] = FieldName(descriptor); ^~~~~~~~~ protoc-c/c_enum.cc:136:25: error: 'FullNameToLower' was not declared in this scope vars["lcclassname"] = FullNameToLower(descriptor_->full_name()); ^~~~~~~~~~~~~~~ protoc-c/c_bytes_field.cc:78:26: note: suggested alternative: 'FieldScope' (*variables)["name"] = FieldName(descriptor); ^~~~~~~~~ FieldScope protoc-c/c_bytes_field.cc:80:58: error: assignment of read-only location '"default"[(* variables)]' "\"" + CEscape(descriptor->default_value_string()) + "\""; ^~~~ protoc-c/c_bytes_field.cc:80:58: error: cannot convert 'std::__cxx11::basic_string' to 'const char' in assignment protoc-c/c_bytes_field.cc:81:32: error: 'FieldDeprecated' was not declared in this scope (*variables)["deprecated"] = FieldDeprecated(descriptor); ^~~~~~~~~~~~~~~ protoc-c/c_bytes_field.cc:81:32: note: suggested alternative: 'FieldGenerator' (*variables)["deprecated"] = FieldDeprecated(descriptor); ^~~~~~~~~~~~~~~ FieldGenerator protoc-c/c_bytes_field.cc: In constructor 'google::protobuf::compiler::c::BytesFieldGenerator::BytesFieldGenerator(const google::protobuf::FieldDescriptor*)': protoc-c/c_bytes_field.cc:91:33: error: 'GetDefaultValue' was not declared in this scope ? GetDefaultValue() ^~~~~~~~~~~~~~~ protoc-c/c_enum.cc:139:86: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [79])' "extern $dllexport$const ProtobufCEnumDescriptor $lcclassname$__descriptor;\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum.cc:139:86: note: cannot convert 'vars' (type 'int') to type 'const char*' "extern $dllexport$const ProtobufCEnumDescriptor $lcclassname$__descriptor;\n"); ^ protoc-c/c_enum.cc: In member function 'void google::protobuf::compiler::c::EnumGenerator::GenerateValueInitializer(google::protobuf::io::Printer*, int)': protoc-c/c_enum.cc:152:12: error: 'string' was not declared in this scope std::map vars; ^~~~~~ protoc-c/c_enum.cc:152:12: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from protoc-c/c_enum.cc:64: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' protoc-c/c_enum.cc:152:26: error: template argument 1 is invalid std::map vars; ^ protoc-c/c_enum.cc:152:26: error: type/value mismatch at argument 2 in template parameter list for 'template class std::map' protoc-c/c_enum.cc:152:26: note: expected a type, got 'string' protoc-c/c_enum.cc:152:26: error: template argument 3 is invalid protoc-c/c_enum.cc:152:26: error: template argument 4 is invalid protoc-c/c_enum.cc:156:38: error: assignment of read-only location '"enum_value_name"[vars]' vars["enum_value_name"] = vd->name(); ^ protoc-c/c_enum.cc:156:38: error: cannot convert 'const string {aka const std::__cxx11::basic_string}' to 'const char' in assignment protoc-c/c_enum.cc:157:31: error: 'FullNameToUpper' was not declared in this scope vars["c_enum_value_name"] = FullNameToUpper(descriptor_->full_name()) + "__" + vd->name(); ^~~~~~~~~~~~~~~ protoc-c/c_bytes_field.cc:92:12: error: 'string' was not declared in this scope : string("{0,NULL}"); ^~~~~~ protoc-c/c_bytes_field.cc:92:12: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_bytes_field.h:66, from protoc-c/c_bytes_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' protoc-c/c_bytes_field.cc: In member function 'virtual void google::protobuf::compiler::c::BytesFieldGenerator::GenerateStructMembers(google::protobuf::io::Printer*) const': protoc-c/c_bytes_field.cc:101:77: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [41])' printer->Print(variables_, "ProtobufCBinaryData $name$$deprecated$;\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_bytes_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_bytes_field.cc:101:22: note: cannot convert '((const google::protobuf::compiler::c::BytesFieldGenerator*)this)->google::protobuf::compiler::c::BytesFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "ProtobufCBinaryData $name$$deprecated$;\n"); ^~~~~~~~~~ protoc-c/c_bytes_field.cc:105:82: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [44])' printer->Print(variables_, "protobuf_c_boolean has_$name$$deprecated$;\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_bytes_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_bytes_field.cc:105:24: note: cannot convert '((const google::protobuf::compiler::c::BytesFieldGenerator*)this)->google::protobuf::compiler::c::BytesFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "protobuf_c_boolean has_$name$$deprecated$;\n"); ^~~~~~~~~~ protoc-c/c_enum.cc:158:42: error: assignment of read-only location '"value"[vars]' vars["value"] = SimpleItoa(vd->number()); ^ protoc-c/c_bytes_field.cc:106:77: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [41])' printer->Print(variables_, "ProtobufCBinaryData $name$$deprecated$;\n"); ^ protoc-c/c_enum.cc:158:42: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char' in assignment In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_bytes_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ protoc-c/c_enum.cc:160:72: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [44])' printer->Print(vars, " { NULL, NULL, $value$ }, /* CODE_SIZE */\n"); ^ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ protoc-c/c_bytes_field.cc:106:22: note: cannot convert '((const google::protobuf::compiler::c::BytesFieldGenerator*)this)->google::protobuf::compiler::c::BytesFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "ProtobufCBinaryData $name$$deprecated$;\n"); ^~~~~~~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_bytes_field.cc:109:66: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [30])' printer->Print(variables_, "size_t n_$name$$deprecated$;\n"); ^ protoc-c/c_enum.cc:160:72: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print(vars, " { NULL, NULL, $value$ }, /* CODE_SIZE */\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_bytes_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ protoc-c/c_enum.cc:163:75: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [60])' " { \"$enum_value_name$\", \"$c_enum_value_name$\", $value$ },\n"); ^ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ protoc-c/c_bytes_field.cc:109:22: note: cannot convert '((const google::protobuf::compiler::c::BytesFieldGenerator*)this)->google::protobuf::compiler::c::BytesFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "size_t n_$name$$deprecated$;\n"); ^~~~~~~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_bytes_field.cc:110:78: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [42])' printer->Print(variables_, "ProtobufCBinaryData *$name$$deprecated$;\n"); ^ In file included from protoc-c/c_extension.cc:64:0: ./protoc-c/c_helpers.h:86:1: error: 'string' does not name a type; did you mean 'stdin'? string ClassName(const Descriptor* descriptor, bool qualified); ^~~~~~ stdin protoc-c/c_enum.cc:163:75: note: cannot convert 'vars' (type 'int') to type 'const char*' " { \"$enum_value_name$\", \"$c_enum_value_name$\", $value$ },\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_bytes_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ protoc-c/c_enum.cc: In member function 'void google::protobuf::compiler::c::EnumGenerator::GenerateEnumDescriptor(google::protobuf::io::Printer*)': protoc-c/c_enum.cc:185:12: error: 'string' was not declared in this scope std::map vars; ^~~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum.cc:185:12: note: suggested alternatives: protoc-c/c_bytes_field.cc:110:22: note: cannot convert '((const google::protobuf::compiler::c::BytesFieldGenerator*)this)->google::protobuf::compiler::c::BytesFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "ProtobufCBinaryData *$name$$deprecated$;\n"); ^~~~~~~~~~ ./protoc-c/c_helpers.h:87:1: error: 'string' does not name a type; did you mean 'stdin'? string ClassName(const EnumDescriptor* enum_descriptor, bool qualified); ^~~~~~ stdin In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from protoc-c/c_enum.cc:64: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ protoc-c/c_bytes_field.cc: In member function 'virtual void google::protobuf::compiler::c::BytesFieldGenerator::GenerateDefaultValueDeclarations(google::protobuf::io::Printer*) const': protoc-c/c_bytes_field.cc:116:12: error: 'string' was not declared in this scope std::map vars; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' protoc-c/c_bytes_field.cc:116:12: note: suggested alternatives: protoc-c/c_enum.cc:185:26: error: template argument 1 is invalid std::map vars; ^ In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_bytes_field.h:66, from protoc-c/c_bytes_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ protoc-c/c_enum.cc:185:26: error: type/value mismatch at argument 2 in template parameter list for 'template class std::map' ./protoc-c/c_helpers.h:90:23: error: 'string' does not name a type; did you mean 'stdin'? template string SimpleItoa(T n) { ^~~~~~ stdin protoc-c/c_enum.cc:185:26: note: expected a type, got 'string' protoc-c/c_enum.cc:185:26: error: template argument 3 is invalid protoc-c/c_enum.cc:185:26: error: template argument 4 is invalid protoc-c/c_enum.cc:186:45: error: assignment of read-only location '"fullname"[vars]' vars["fullname"] = descriptor_->full_name(); ^ protoc-c/c_enum.cc:186:45: error: cannot convert 'const string {aka const std::__cxx11::basic_string}' to 'const char' in assignment ./protoc-c/c_helpers.h:96:1: error: 'string' does not name a type; did you mean 'stdin'? string SimpleFtoa(float f); ^~~~~~ stdin protoc-c/c_enum.cc:187:25: error: 'FullNameToLower' was not declared in this scope vars["lcclassname"] = FullNameToLower(descriptor_->full_name()); ^~~~~~~~~~~~~~~ ./protoc-c/c_helpers.h:97:1: error: 'string' does not name a type; did you mean 'stdin'? string SimpleDtoa(double f); ^~~~~~ stdin /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' protoc-c/c_bytes_field.cc:116:26: error: template argument 1 is invalid std::map vars; ^ protoc-c/c_bytes_field.cc:116:26: error: type/value mismatch at argument 2 in template parameter list for 'template class std::map' ./protoc-c/c_helpers.h:98:29: error: 'string' does not name a type; did you mean 'stdin'? void SplitStringUsing(const string &str, const char *delim, std::vector *out); ^~~~~~ stdin protoc-c/c_bytes_field.cc:116:26: note: expected a type, got 'string' ./protoc-c/c_helpers.h:98:73: error: 'string' was not declared in this scope void SplitStringUsing(const string &str, const char *delim, std::vector *out); ^~~~~~ protoc-c/c_bytes_field.cc:116:26: error: template argument 3 is invalid ./protoc-c/c_helpers.h:98:73: note: suggested alternatives: protoc-c/c_bytes_field.cc:116:26: error: template argument 4 is invalid In file included from /usr/include/g++/string:39:0, from ./protoc-c/c_extension.h:66, from protoc-c/c_extension.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ protoc-c/c_bytes_field.cc:117:32: error: 'FullNameToLower' was not declared in this scope vars["default_value_data"] = FullNameToLower(descriptor_->full_name()) ^~~~~~~~~~~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' In file included from protoc-c/c_extension.cc:64:0: ./protoc-c/c_helpers.h:98:79: error: template argument 1 is invalid void SplitStringUsing(const string &str, const char *delim, std::vector *out); ^ ./protoc-c/c_helpers.h:98:79: error: template argument 2 is invalid ./protoc-c/c_helpers.h:99:1: error: 'string' does not name a type; did you mean 'stdin'? string CEscape(const string& src); ^~~~~~ stdin ./protoc-c/c_helpers.h:100:1: error: 'string' does not name a type; did you mean 'stdin'? string StringReplace(const string& s, const string& oldsub, const string& newsub, bool replace_all); ^~~~~~ stdin protoc-c/c_enum.cc:188:19: error: 'FullNameToC' was not declared in this scope vars["cname"] = FullNameToC(descriptor_->full_name()); ^~~~~~~~~~~ ./protoc-c/c_helpers.h:101:35: error: 'string' does not name a type; did you mean 'stdin'? inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~~~ stdin protoc-c/c_bytes_field.cc:119:66: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [40])' printer->Print(vars, "extern uint8_t $default_value_data$[];\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_bytes_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: ./protoc-c/c_helpers.h:101:54: error: 'string' does not name a type; did you mean 'stdin'? inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~~~ stdin protoc-c/c_bytes_field.cc:119:66: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print(vars, "extern uint8_t $default_value_data$[];\n"); ^ ./protoc-c/c_helpers.h: In function 'bool google::protobuf::compiler::c::HasSuffixString(const int&, const int&)': ./protoc-c/c_helpers.h:101:83: error: request for member 'size' in 'str', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ protoc-c/c_bytes_field.cc: In member function 'virtual void google::protobuf::compiler::c::BytesFieldGenerator::GenerateDefaultValueImplementations(google::protobuf::io::Printer*) const': protoc-c/c_bytes_field.cc:124:12: error: 'string' was not declared in this scope std::map vars; ^~~~~~ ./protoc-c/c_helpers.h:101:100: error: request for member 'size' in 'suffix', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ protoc-c/c_bytes_field.cc:124:12: note: suggested alternatives: In file included from protoc-c/c_enum_field.cc:64:0: ./protoc-c/c_helpers.h:86:1: error: 'string' does not name a type; did you mean 'stdin'? string ClassName(const Descriptor* descriptor, bool qualified); ^~~~~~ stdin ./protoc-c/c_helpers.h:101:114: error: request for member 'compare' in 'str', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~~~~ In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_bytes_field.h:66, from protoc-c/c_bytes_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ protoc-c/c_enum.cc:189:41: error: assignment of read-only location '"shortname"[vars]' vars["shortname"] = descriptor_->name(); ^ ./protoc-c/c_helpers.h:101:126: error: request for member 'size' in 'str', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ protoc-c/c_enum.cc:189:41: error: cannot convert 'const string {aka const std::__cxx11::basic_string}' to 'const char' in assignment /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' In file included from protoc-c/c_extension.cc:64:0: ./protoc-c/c_helpers.h:101:142: error: request for member 'size' in 'suffix', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ ./protoc-c/c_helpers.h:87:1: error: 'string' does not name a type; did you mean 'stdin'? string ClassName(const EnumDescriptor* enum_descriptor, bool qualified); ^~~~~~ stdin protoc-c/c_enum.cc:190:54: error: assignment of read-only location '"packagename"[vars]' vars["packagename"] = descriptor_->file()->package(); ^ ./protoc-c/c_helpers.h:101:157: error: request for member 'size' in 'suffix', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ protoc-c/c_bytes_field.cc:124:26: error: template argument 1 is invalid std::map vars; ^ protoc-c/c_enum.cc:190:54: error: cannot convert 'const string {aka const std::__cxx11::basic_string}' to 'const char' in assignment protoc-c/c_bytes_field.cc:124:26: error: type/value mismatch at argument 2 in template parameter list for 'template class std::map' protoc-c/c_enum.cc:191:62: error: assignment of read-only location '"value_count"[vars]' vars["value_count"] = SimpleItoa(descriptor_->value_count()); ^ protoc-c/c_bytes_field.cc:124:26: note: expected a type, got 'string' ./protoc-c/c_helpers.h:90:23: error: 'string' does not name a type; did you mean 'stdin'? template string SimpleItoa(T n) { ^~~~~~ stdin protoc-c/c_enum.cc:191:62: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char' in assignment protoc-c/c_bytes_field.cc:124:26: error: template argument 3 is invalid ./protoc-c/c_helpers.h: At global scope: ./protoc-c/c_helpers.h:102:8: error: 'string' does not name a type; did you mean 'stdin'? inline string StripSuffixString(const string& str, const string& suffix) { if (HasSuffixString(str, suffix)) { return str.substr(0, str.size() - suffix.size()); } else { return str; } } ^~~~~~ stdin protoc-c/c_bytes_field.cc:124:26: error: template argument 4 is invalid protoc-c/c_bytes_field.cc:125:32: error: 'FullNameToLower' was not declared in this scope vars["default_value_data"] = FullNameToLower(descriptor_->full_name()) ^~~~~~~~~~~~~~~ protoc-c/c_enum.cc:227:58: error: assignment of read-only location '"unique_value_count"[vars]' vars["unique_value_count"] = SimpleItoa(n_unique_values); ^ ./protoc-c/c_helpers.h:96:1: error: 'string' does not name a type; did you mean 'stdin'? string SimpleFtoa(float f); ^~~~~~ stdin protoc-c/c_enum.cc:227:58: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char' in assignment protoc-c/c_enum.cc:230:12: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [96])' "{\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ ./protoc-c/c_helpers.h:110:1: error: 'string' does not name a type; did you mean 'stdin'? string FieldName(const FieldDescriptor* field); ^~~~~~ stdin /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: ./protoc-c/c_helpers.h:97:1: error: 'string' does not name a type; did you mean 'stdin'? string SimpleDtoa(double f); ^~~~~~ stdin protoc-c/c_enum.cc:230:12: note: cannot convert 'vars' (type 'int') to type 'const char*' "{\n"); ^ protoc-c/c_enum.cc:239:30: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [4])' printer->Print(vars, "};\n"); ^ ./protoc-c/c_helpers.h:113:1: error: 'string' does not name a type; did you mean 'stdin'? string FieldDeprecated(const FieldDescriptor* field); ^~~~~~ stdin In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' ./protoc-c/c_helpers.h:98:29: error: 'string' does not name a type; did you mean 'stdin'? void SplitStringUsing(const string &str, const char *delim, std::vector *out); ^~~~~~ stdin /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ ./protoc-c/c_helpers.h:98:73: error: 'string' was not declared in this scope void SplitStringUsing(const string &str, const char *delim, std::vector *out); ^~~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: ./protoc-c/c_helpers.h:98:73: note: suggested alternatives: protoc-c/c_enum.cc:239:30: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print(vars, "};\n"); ^ In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_enum_field.h:66, from protoc-c/c_enum_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ protoc-c/c_enum.cc:240:92: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [66])' printer->Print(vars, "static const ProtobufCIntRange $lcclassname$__value_ranges[] = {\n"); ^ ./protoc-c/c_helpers.h:124:1: error: 'string' does not name a type; did you mean 'stdin'? string CamelToUpper(const string &class_name); ^~~~~~ stdin /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ In file included from protoc-c/c_enum_field.cc:64:0: ./protoc-c/c_helpers.h:98:79: error: template argument 1 is invalid void SplitStringUsing(const string &str, const char *delim, std::vector *out); ^ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' ./protoc-c/c_helpers.h:98:79: error: template argument 2 is invalid /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ protoc-c/c_bytes_field.cc:127:64: error: assignment of read-only location '"escaped"[vars]' vars["escaped"] = CEscape(descriptor_->default_value_string()); ^ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_bytes_field.cc:127:64: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char' in assignment ./protoc-c/c_helpers.h:125:1: error: 'string' does not name a type; did you mean 'stdin'? string CamelToLower(const string &class_name); ^~~~~~ stdin protoc-c/c_enum.cc:240:92: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print(vars, "static const ProtobufCIntRange $lcclassname$__value_ranges[] = {\n"); ^ ./protoc-c/c_helpers.h:99:1: error: 'string' does not name a type; did you mean 'stdin'? string CEscape(const string& src); ^~~~~~ stdin protoc-c/c_bytes_field.cc:128:75: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [47])' printer->Print(vars, "uint8_t $default_value_data$[] = \"$escaped$\";\n"); ^ protoc-c/c_enum.cc:253:67: error: assignment of read-only location '"range_start_value"[vars]' vars["range_start_value"] = SimpleItoa(range_start_value); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_bytes_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ protoc-c/c_enum.cc:253:67: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char' in assignment /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' protoc-c/c_enum.cc:254:54: error: assignment of read-only location '"orig_index"[vars]' vars["orig_index"] = SimpleItoa(range_start); ^ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ ./protoc-c/c_helpers.h:128:1: error: 'string' does not name a type; did you mean 'stdin'? string ToCamel(const string &name); ^~~~~~ stdin ./protoc-c/c_helpers.h:100:1: error: 'string' does not name a type; did you mean 'stdin'? string StringReplace(const string& s, const string& oldsub, const string& newsub, bool replace_all); ^~~~~~ stdin /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum.cc:254:54: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char' in assignment protoc-c/c_bytes_field.cc:128:75: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print(vars, "uint8_t $default_value_data$[] = \"$escaped$\";\n"); ^ protoc-c/c_enum.cc:255:71: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [37])' printer->Print (vars, "{$range_start_value$, $orig_index$},"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' ./protoc-c/c_helpers.h:101:35: error: 'string' does not name a type; did you mean 'stdin'? inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~~~ stdin ./protoc-c/c_helpers.h:131:1: error: 'string' does not name a type; did you mean 'stdin'? string ToLower(const string &class_name); ^~~~~~ stdin /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ protoc-c/c_bytes_field.cc: At global scope: protoc-c/c_bytes_field.cc:130:1: error: 'string' does not name a type; did you mean 'stdin'? string BytesFieldGenerator::GetDefaultValue(void) const ^~~~~~ stdin /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum.cc:255:71: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print (vars, "{$range_start_value$, $orig_index$},"); ^ protoc-c/c_bytes_field.cc: In member function 'virtual void google::protobuf::compiler::c::BytesFieldGenerator::GenerateStaticInit(google::protobuf::io::Printer*) const': protoc-c/c_bytes_field.cc:142:51: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [16])' printer->Print(variables_, "$default_value$"); ^ protoc-c/c_enum.cc:265:63: error: assignment of read-only location '"range_start_value"[vars]' vars["range_start_value"] = SimpleItoa(range_start_value); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_bytes_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ ./protoc-c/c_helpers.h:101:54: error: 'string' does not name a type; did you mean 'stdin'? inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~~~ stdin ./protoc-c/c_helpers.h:132:1: error: 'string' does not name a type; did you mean 'stdin'? string ToUpper(const string &class_name); ^~~~~~ stdin ./protoc-c/c_helpers.h: In function 'bool google::protobuf::compiler::c::HasSuffixString(const int&, const int&)': ./protoc-c/c_helpers.h:101:83: error: request for member 'size' in 'str', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' protoc-c/c_enum.cc:265:63: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char' in assignment ./protoc-c/c_helpers.h:101:100: error: request for member 'size' in 'suffix', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ protoc-c/c_enum.cc:266:50: error: assignment of read-only location '"orig_index"[vars]' vars["orig_index"] = SimpleItoa(range_start); ^ ./protoc-c/c_helpers.h:101:114: error: request for member 'compare' in 'str', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum.cc:266:50: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char' in assignment ./protoc-c/c_helpers.h:135:1: error: 'string' does not name a type; did you mean 'stdin'? string FullNameToLower(const string &full_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:101:126: error: request for member 'size' in 'str', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ protoc-c/c_enum.cc:267:67: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [37])' printer->Print (vars, "{$range_start_value$, $orig_index$},"); ^ In file included from protoc-c/c_enum_field.cc:64:0: ./protoc-c/c_helpers.h:101:142: error: request for member 'size' in 'suffix', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ protoc-c/c_bytes_field.cc:142:22: note: cannot convert '((const google::protobuf::compiler::c::BytesFieldGenerator*)this)->google::protobuf::compiler::c::BytesFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "$default_value$"); ^~~~~~~~~~ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ protoc-c/c_bytes_field.cc:146:41: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [4])' printer->Print(variables_, "0, "); ^ ./protoc-c/c_helpers.h:101:157: error: request for member 'size' in 'suffix', which is of non-class type 'const int' inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; } ^~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_bytes_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ ./protoc-c/c_helpers.h:136:1: error: 'string' does not name a type; did you mean 'stdin'? string FullNameToUpper(const string &full_name); ^~~~~~ stdin /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ ./protoc-c/c_helpers.h: At global scope: ./protoc-c/c_helpers.h:102:8: error: 'string' does not name a type; did you mean 'stdin'? inline string StripSuffixString(const string& str, const string& suffix) { if (HasSuffixString(str, suffix)) { return str.substr(0, str.size() - suffix.size()); } else { return str; } } ^~~~~~ stdin protoc-c/c_enum.cc:267:67: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print (vars, "{$range_start_value$, $orig_index$},"); ^ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum.cc:272:47: error: assignment of read-only location '"range_start_value"[vars]' vars["range_start_value"] = SimpleItoa(0); ^ protoc-c/c_bytes_field.cc:146:24: note: cannot convert '((const google::protobuf::compiler::c::BytesFieldGenerator*)this)->google::protobuf::compiler::c::BytesFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "0, "); ^~~~~~~~~~ ./protoc-c/c_helpers.h:139:1: error: 'string' does not name a type; did you mean 'stdin'? string FullNameToC(const string &class_name); ^~~~~~ stdin protoc-c/c_enum.cc:272:47: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char' in assignment protoc-c/c_bytes_field.cc:147:51: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [16])' printer->Print(variables_, "$default_value$"); ^ protoc-c/c_enum.cc:273:50: error: assignment of read-only location '"orig_index"[vars]' vars["orig_index"] = SimpleItoa(range_start); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_bytes_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ protoc-c/c_enum.cc:273:50: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char' in assignment /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' protoc-c/c_enum.cc:274:72: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [40])' printer->Print (vars, "{$range_start_value$, $orig_index$}\n};\n"); ^ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ ./protoc-c/c_helpers.h:142:42: error: 'string' has not been declared void PrintComment (io::Printer* printer, string comment); ^~~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' protoc-c/c_bytes_field.cc:147:22: note: cannot convert '((const google::protobuf::compiler::c::BytesFieldGenerator*)this)->google::protobuf::compiler::c::BytesFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "$default_value$"); ^~~~~~~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_bytes_field.cc: In member function 'virtual void google::protobuf::compiler::c::BytesFieldGenerator::GenerateDescriptorInitializer(google::protobuf::io::Printer*) const': protoc-c/c_bytes_field.cc:157:70: error: invalid conversion from 'const char*' to 'int' [-fpermissive] GenerateDescriptorInitializerGeneric(printer, true, "BYTES", "NULL"); ^ protoc-c/c_enum.cc:274:72: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print (vars, "{$range_start_value$, $orig_index$}\n};\n"); ^ In file included from ./protoc-c/c_bytes_field.h:68:0, from protoc-c/c_bytes_field.cc:63: ./protoc-c/c_field.h:101:8: note: initializing argument 3 of 'void google::protobuf::compiler::c::FieldGenerator::GenerateDescriptorInitializerGeneric(google::protobuf::io::Printer*, bool, const int&, const int&) const' void GenerateDescriptorInitializerGeneric(io::Printer* printer, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ protoc-c/c_enum.cc:277:41: error: assignment of read-only location '"n_ranges"[vars]' vars["n_ranges"] = SimpleItoa(n_ranges); ^ ./protoc-c/c_helpers.h:145:1: error: 'string' does not name a type; did you mean 'stdin'? string ConvertToSpaces(const string &input); ^~~~~~ stdin protoc-c/c_bytes_field.cc:157:70: error: invalid conversion from 'const char*' to 'int' [-fpermissive] GenerateDescriptorInitializerGeneric(printer, true, "BYTES", "NULL"); ^ protoc-c/c_enum.cc:277:41: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char' in assignment In file included from ./protoc-c/c_bytes_field.h:68:0, from protoc-c/c_bytes_field.cc:63: ./protoc-c/c_field.h:101:8: note: initializing argument 4 of 'void google::protobuf::compiler::c::FieldGenerator::GenerateDescriptorInitializerGeneric(google::protobuf::io::Printer*, bool, const int&, const int&) const' void GenerateDescriptorInitializerGeneric(io::Printer* printer, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ protoc-c/c_enum.cc:284:14: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [92])' "{\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: ./protoc-c/c_helpers.h:148:1: error: 'string' does not name a type; did you mean 'stdin'? string StripProto(const string& filename); ^~~~~~ stdin protoc-c/c_enum.cc:284:14: note: cannot convert 'vars' (type 'int') to type 'const char*' "{\n"); ^ protoc-c/c_enum.cc:286:60: error: assignment of read-only location '"index"[vars]' vars["index"] = SimpleItoa(value_index[j].final_index); ^ protoc-c/c_enum.cc:286:60: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string}' to 'const char' in assignment protoc-c/c_enum.cc:287:37: error: assignment of read-only location '"name"[vars]' vars["name"] = value_index[j].name; ^~~~ protoc-c/c_enum.cc:287:37: error: invalid conversion from 'const char*' to 'char' [-fpermissive] vars["name"] = value_index[j].name; ~~~~~~~~~~~~~~~^~~~ protoc-c/c_enum.cc:288:59: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [26])' printer->Print (vars, " { \"$name$\", $index$ },\n"); ^ ./protoc-c/c_helpers.h:162:1: error: 'string' does not name a type; did you mean 'stdin'? string FilenameIdentifier(const string& filename); ^~~~~~ stdin In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum.cc:288:59: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print (vars, " { \"$name$\", $index$ },\n"); ^ protoc-c/c_enum.cc:290:32: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [4])' printer->Print(vars, "};\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ ./protoc-c/c_helpers.h:165:1: error: 'string' does not name a type; did you mean 'stdin'? string GlobalBuildDescriptorsName(const string& filename); ^~~~~~ stdin /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum.cc:290:32: note: cannot convert 'vars' (type 'int') to type 'const char*' printer->Print(vars, "};\n"); ^ protoc-c/c_enum.cc:305:15: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [321])' "};\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' ./protoc-c/c_helpers.h:168:1: error: 'string' does not name a type; did you mean 'stdin'? string GetLabelName(FieldDescriptor::Label label); ^~~~~~ stdin /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum.cc:305:15: note: cannot convert 'vars' (type 'int') to type 'const char*' "};\n"); ^ protoc-c/c_enum.cc:322:15: error: no matching function for call to 'google::protobuf::io::Printer::Print(int&, const char [375])' "};\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum.cc:67: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: ./protoc-c/c_helpers.h:173:86: error: 'string' does not name a type; did you mean 'stdin'? unsigned WriteIntRanges(io::Printer* printer, int n_values, const int *values, const string &name); ^~~~~~ stdin protoc-c/c_enum.cc:322:15: note: cannot convert 'vars' (type 'int') to type 'const char*' "};\n"); ^ protoc-c/c_extension.cc:73:46: error: 'string' does not name a type; did you mean 'stdin'? const string& dllexport_decl) ^~~~~~ stdin ./protoc-c/c_helpers.h:110:1: error: 'string' does not name a type; did you mean 'stdin'? string FieldName(const FieldDescriptor* field); ^~~~~~ stdin protoc-c/c_extension.cc: In constructor 'google::protobuf::compiler::c::ExtensionGenerator::ExtensionGenerator(const google::protobuf::FieldDescriptor*, const int&)': protoc-c/c_extension.cc:75:5: error: class 'google::protobuf::compiler::c::ExtensionGenerator' does not have any field named 'dllexport_decl_' dllexport_decl_(dllexport_decl) { ^~~~~~~~~~~~~~~ ./protoc-c/c_helpers.h:113:1: error: 'string' does not name a type; did you mean 'stdin'? string FieldDeprecated(const FieldDescriptor* field); ^~~~~~ stdin ./protoc-c/c_helpers.h:124:1: error: 'string' does not name a type; did you mean 'stdin'? string CamelToUpper(const string &class_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:125:1: error: 'string' does not name a type; did you mean 'stdin'? string CamelToLower(const string &class_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:128:1: error: 'string' does not name a type; did you mean 'stdin'? string ToCamel(const string &name); ^~~~~~ stdin ./protoc-c/c_helpers.h:131:1: error: 'string' does not name a type; did you mean 'stdin'? string ToLower(const string &class_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:132:1: error: 'string' does not name a type; did you mean 'stdin'? string ToUpper(const string &class_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:135:1: error: 'string' does not name a type; did you mean 'stdin'? string FullNameToLower(const string &full_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:136:1: error: 'string' does not name a type; did you mean 'stdin'? string FullNameToUpper(const string &full_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:139:1: error: 'string' does not name a type; did you mean 'stdin'? string FullNameToC(const string &class_name); ^~~~~~ stdin ./protoc-c/c_helpers.h:142:42: error: 'string' has not been declared void PrintComment (io::Printer* printer, string comment); ^~~~~~ ./protoc-c/c_helpers.h:145:1: error: 'string' does not name a type; did you mean 'stdin'? string ConvertToSpaces(const string &input); ^~~~~~ stdin ./protoc-c/c_helpers.h:148:1: error: 'string' does not name a type; did you mean 'stdin'? string StripProto(const string& filename); ^~~~~~ stdin ./protoc-c/c_helpers.h:162:1: error: 'string' does not name a type; did you mean 'stdin'? string FilenameIdentifier(const string& filename); ^~~~~~ stdin ./protoc-c/c_helpers.h:165:1: error: 'string' does not name a type; did you mean 'stdin'? string GlobalBuildDescriptorsName(const string& filename); ^~~~~~ stdin ./protoc-c/c_helpers.h:168:1: error: 'string' does not name a type; did you mean 'stdin'? string GetLabelName(FieldDescriptor::Label label); ^~~~~~ stdin ./protoc-c/c_helpers.h:173:86: error: 'string' does not name a type; did you mean 'stdin'? unsigned WriteIntRanges(io::Printer* printer, int n_values, const int *values, const string &name); ^~~~~~ stdin protoc-c/c_enum_field.cc:78:32: error: 'string' was not declared in this scope std::map* variables) { ^~~~~~ protoc-c/c_enum_field.cc:78:32: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_enum_field.h:66, from protoc-c/c_enum_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' protoc-c/c_enum_field.cc:78:40: error: 'string' was not declared in this scope std::map* variables) { ^~~~~~ protoc-c/c_enum_field.cc:78:40: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_enum_field.h:66, from protoc-c/c_enum_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' protoc-c/c_enum_field.cc:78:46: error: template argument 1 is invalid std::map* variables) { ^ protoc-c/c_enum_field.cc:78:46: error: template argument 2 is invalid protoc-c/c_enum_field.cc:78:46: error: template argument 3 is invalid protoc-c/c_enum_field.cc:78:46: error: template argument 4 is invalid protoc-c/c_enum_field.cc: In function 'void google::protobuf::compiler::c::SetEnumVariables(const google::protobuf::FieldDescriptor*, int*)': protoc-c/c_enum_field.cc:80:26: error: 'FieldName' was not declared in this scope (*variables)["name"] = FieldName(descriptor); ^~~~~~~~~ protoc-c/c_enum_field.cc:80:26: note: suggested alternative: 'FieldScope' (*variables)["name"] = FieldName(descriptor); ^~~~~~~~~ FieldScope protoc-c/c_enum_field.cc:81:26: error: 'FullNameToC' was not declared in this scope (*variables)["type"] = FullNameToC(descriptor->enum_type()->full_name()); ^~~~~~~~~~~ protoc-c/c_enum_field.cc:83:29: error: 'FullNameToUpper' was not declared in this scope (*variables)["default"] = FullNameToUpper(default_value->type()->full_name()) ^~~~~~~~~~~~~~~ protoc-c/c_enum_field.cc:85:32: error: 'FieldDeprecated' was not declared in this scope (*variables)["deprecated"] = FieldDeprecated(descriptor); ^~~~~~~~~~~~~~~ protoc-c/c_enum_field.cc:85:32: note: suggested alternative: 'FieldGenerator' (*variables)["deprecated"] = FieldDeprecated(descriptor); ^~~~~~~~~~~~~~~ FieldGenerator protoc-c/c_enum_field.cc: In member function 'virtual void google::protobuf::compiler::c::EnumFieldGenerator::GenerateStructMembers(google::protobuf::io::Printer*) const': protoc-c/c_enum_field.cc:103:64: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [28])' printer->Print(variables_, "$type$ $name$$deprecated$;\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum_field.cc:103:22: note: cannot convert '((const google::protobuf::compiler::c::EnumFieldGenerator*)this)->google::protobuf::compiler::c::EnumFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "$type$ $name$$deprecated$;\n"); ^~~~~~~~~~ protoc-c/c_enum_field.cc:107:82: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [44])' printer->Print(variables_, "protobuf_c_boolean has_$name$$deprecated$;\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum_field.cc:107:24: note: cannot convert '((const google::protobuf::compiler::c::EnumFieldGenerator*)this)->google::protobuf::compiler::c::EnumFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "protobuf_c_boolean has_$name$$deprecated$;\n"); ^~~~~~~~~~ protoc-c/c_enum_field.cc:108:64: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [28])' printer->Print(variables_, "$type$ $name$$deprecated$;\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum_field.cc:108:22: note: cannot convert '((const google::protobuf::compiler::c::EnumFieldGenerator*)this)->google::protobuf::compiler::c::EnumFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "$type$ $name$$deprecated$;\n"); ^~~~~~~~~~ protoc-c/c_enum_field.cc:111:66: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [30])' printer->Print(variables_, "size_t n_$name$$deprecated$;\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum_field.cc:111:22: note: cannot convert '((const google::protobuf::compiler::c::EnumFieldGenerator*)this)->google::protobuf::compiler::c::EnumFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "size_t n_$name$$deprecated$;\n"); ^~~~~~~~~~ protoc-c/c_enum_field.cc:112:65: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [29])' printer->Print(variables_, "$type$ *$name$$deprecated$;\n"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum_field.cc:112:22: note: cannot convert '((const google::protobuf::compiler::c::EnumFieldGenerator*)this)->google::protobuf::compiler::c::EnumFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "$type$ *$name$$deprecated$;\n"); ^~~~~~~~~~ protoc-c/c_enum_field.cc: At global scope: protoc-c/c_enum_field.cc:117:1: error: 'string' does not name a type; did you mean 'stdin'? string EnumFieldGenerator::GetDefaultValue(void) const ^~~~~~ stdin protoc-c/c_enum_field.cc: In member function 'virtual void google::protobuf::compiler::c::EnumFieldGenerator::GenerateStaticInit(google::protobuf::io::Printer*) const': protoc-c/c_enum_field.cc:125:45: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [10])' printer->Print(variables_, "$default$"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum_field.cc:125:22: note: cannot convert '((const google::protobuf::compiler::c::EnumFieldGenerator*)this)->google::protobuf::compiler::c::EnumFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "$default$"); ^~~~~~~~~~ protoc-c/c_enum_field.cc:129:41: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [4])' printer->Print(variables_, "0, "); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum_field.cc:129:24: note: cannot convert '((const google::protobuf::compiler::c::EnumFieldGenerator*)this)->google::protobuf::compiler::c::EnumFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "0, "); ^~~~~~~~~~ protoc-c/c_enum_field.cc:130:45: error: no matching function for call to 'google::protobuf::io::Printer::Print(const int&, const char [10])' printer->Print(variables_, "$default$"); ^ In file included from ./protoc-c/c_helpers.h:71:0, from protoc-c/c_enum_field.cc:64: /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: candidate: void google::protobuf::io::Printer::Print(const std::map, std::__cxx11::basic_string >&, const char*) void Print(const std::map& variables, ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:248:8: note: no known conversion for argument 1 from 'const int' to 'const std::map, std::__cxx11::basic_string >&' /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: candidate: template void google::protobuf::io::Printer::Print(const char*, const Args& ...) void Print(const char* text, const Args&... args) { ^~~~~ /tmp/devel/protobuf-c/work/.buildlink/include/google/protobuf/io/printer.h:253:8: note: template argument deduction/substitution failed: protoc-c/c_enum_field.cc:130:22: note: cannot convert '((const google::protobuf::compiler::c::EnumFieldGenerator*)this)->google::protobuf::compiler::c::EnumFieldGenerator::variables_' (type 'const int') to type 'const char*' printer->Print(variables_, "$default$"); ^~~~~~~~~~ protoc-c/c_enum_field.cc: In member function 'virtual void google::protobuf::compiler::c::EnumFieldGenerator::GenerateDescriptorInitializer(google::protobuf::io::Printer*) const': protoc-c/c_enum_field.cc:141:3: error: 'string' was not declared in this scope string addr = "&" + FullNameToLower(descriptor_->enum_type()->full_name()) + "__descriptor"; ^~~~~~ protoc-c/c_enum_field.cc:141:3: note: suggested alternatives: In file included from /usr/include/g++/string:39:0, from /usr/include/g++/stdexcept:39, from /usr/include/g++/array:39, from /usr/include/g++/tuple:39, from /usr/include/g++/bits/stl_map.h:63, from /usr/include/g++/map:61, from ./protoc-c/c_enum_field.h:66, from protoc-c/c_enum_field.cc:63: /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' typedef basic_string string; ^~~~~~ /usr/include/g++/bits/stringfwd.h:74:33: note: 'std::__cxx11::string' protoc-c/c_enum_field.cc:142:63: error: 'addr' was not declared in this scope GenerateDescriptorInitializerGeneric(printer, true, "ENUM", addr); ^~~~ gmake: *** [Makefile:1458: protoc-c/protoc_gen_c-c_bytes_field.o] Error 1 gmake: *** Waiting for unfinished jobs.... gmake: *** [Makefile:1472: protoc-c/protoc_gen_c-c_enum.o] Error 1 gmake: *** [Makefile:1500: protoc-c/protoc_gen_c-c_extension.o] Error 1 gmake: *** [Makefile:1486: protoc-c/protoc_gen_c-c_enum_field.o] Error 1 *** Error code 2 Stop. make[1]: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/devel/protobuf-c *** Error code 1 Stop. make: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/devel/protobuf-c