=> 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.5.0nb10 GEN protobuf-c/protobuf-c.pb.cc GEN protobuf-c/protobuf-c.pb.h GEN t/test-full.pb.cc GEN t/test-full.pb.h CXX protoc-c/protoc_gen_c-c_enum.o CXX protoc-c/protoc_gen_c-c_bytes_field.o CXX protoc-c/protoc_gen_c-c_enum_field.o CXX protoc-c/protoc_gen_c-c_extension.o CXX protoc-c/protoc_gen_c-c_field.o CXX protoc-c/protoc_gen_c-c_file.o CXX protoc-c/protoc_gen_c-c_generator.o CXX protoc-c/protoc_gen_c-c_helpers.o protoc-c/c_enum.cc: In member function 'void google::protobuf::compiler::c::EnumGenerator::GenerateDefinition(google::protobuf::io::Printer*)': protoc-c/c_enum.cc:85:57: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 85 | vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file()); | ~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_enum.cc:67: ./protoc-c/c_helpers.h:128:44: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToC(const string&, const google::protobuf::FileDescriptor*)' 128 | std::string FullNameToC(const std::string &class_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ protoc-c/c_enum.cc:87:59: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 87 | vars["uc_name"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file()); | ~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_enum.cc:67: ./protoc-c/c_helpers.h:125:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToUpper(const string&, const google::protobuf::FileDescriptor*)' 125 | std::string FullNameToUpper(const std::string &full_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ protoc-c/c_enum.cc:101:58: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 101 | vars["prefix"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file()) + "__"; | ~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_enum.cc:67: ./protoc-c/c_helpers.h:125:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToUpper(const string&, const google::protobuf::FileDescriptor*)' 125 | std::string FullNameToUpper(const std::string &full_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ protoc-c/c_enum.cc: In member function 'void google::protobuf::compiler::c::EnumGenerator::GenerateDescriptorDeclarations(google::protobuf::io::Printer*)': protoc-c/c_enum.cc:135:57: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 135 | vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file()); | ~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_enum.cc:67: ./protoc-c/c_helpers.h:128:44: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToC(const string&, const google::protobuf::FileDescriptor*)' 128 | std::string FullNameToC(const std::string &class_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ protoc-c/c_enum.cc:136:63: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 136 | vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file()); | ~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_enum.cc:67: ./protoc-c/c_helpers.h:124:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToLower(const string&, const google::protobuf::FileDescriptor*)' 124 | std::string FullNameToLower(const std::string &full_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ 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:157:69: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 157 | vars["c_enum_value_name"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file()) + "__" + vd->name(); | ~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_enum.cc:67: ./protoc-c/c_helpers.h:125:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToUpper(const string&, const google::protobuf::FileDescriptor*)' 125 | std::string FullNameToUpper(const std::string &full_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ protoc-c/c_enum.cc: In member function 'void google::protobuf::compiler::c::EnumGenerator::GenerateEnumDescriptor(google::protobuf::io::Printer*)': protoc-c/c_enum.cc:187:63: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 187 | vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file()); | ~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_enum.cc:67: ./protoc-c/c_helpers.h:124:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToLower(const string&, const google::protobuf::FileDescriptor*)' 124 | std::string FullNameToLower(const std::string &full_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ protoc-c/c_enum.cc:188:53: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 188 | vars["cname"] = FullNameToC(descriptor_->full_name(), descriptor_->file()); | ~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_enum.cc:67: ./protoc-c/c_helpers.h:128:44: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToC(const string&, const google::protobuf::FileDescriptor*)' 128 | std::string FullNameToC(const std::string &class_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ protoc-c/c_enum.cc:204:37: error: 'using string_view = using string_view = class std::basic_string_view' {aka 'class std::basic_string_view'} has no member named 'c_str'; did you mean 'const char* std::basic_string_view::_M_str'? (not accessible from this context) 204 | name_index[j].name = vd->name().c_str(); | ^~~~~ In file included from /usr/pkg/gcc10/include/c++/bits/basic_string.h:48, from /usr/pkg/gcc10/include/c++/string:55, from ./protoc-c/c_enum.h:66, from protoc-c/c_enum.cc:66: /usr/pkg/gcc10/include/c++/string_view:472:21: note: declared private here 472 | const _CharT* _M_str; | ^~~~~~ protoc-c/c_enum.cc:207:38: error: 'using string_view = using string_view = class std::basic_string_view' {aka 'class std::basic_string_view'} has no member named 'c_str'; did you mean 'const char* std::basic_string_view::_M_str'? (not accessible from this context) 207 | value_index[j].name = vd->name().c_str(); | ^~~~~ In file included from /usr/pkg/gcc10/include/c++/bits/basic_string.h:48, from /usr/pkg/gcc10/include/c++/string:55, from ./protoc-c/c_enum.h:66, from protoc-c/c_enum.cc:66: /usr/pkg/gcc10/include/c++/string_view:472:21: note: declared private here 472 | const _CharT* _M_str; | ^~~~~~ protoc-c/c_file.cc: In member function 'void google::protobuf::compiler::c::FileGenerator::GenerateHeader(google::protobuf::io::Printer*)': protoc-c/c_file.cc:118:67: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 118 | std::string filename_identifier = FilenameIdentifier(file_->name()); | ~~~~~~~~~~~^~ In file included from protoc-c/c_file.cc:68: ./protoc-c/c_helpers.h:151:51: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FilenameIdentifier(const string&)' 151 | std::string FilenameIdentifier(const std::string& filename); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ protoc-c/c_file.cc:158:53: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 158 | "dependency", StripProto(file_->dependency(i)->name())); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_file.cc:68: ./protoc-c/c_helpers.h:137:43: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::StripProto(const string&)' 137 | std::string StripProto(const std::string& filename); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ protoc-c/c_file.cc: In member function 'void google::protobuf::compiler::c::FileGenerator::GenerateSource(google::protobuf::io::Printer*)': protoc-c/c_file.cc:242:39: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 242 | "basename", StripProto(file_->name())); | ~~~~~~~~~~~^~ In file included from protoc-c/c_file.cc:68: ./protoc-c/c_helpers.h:137:43: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::StripProto(const string&)' 137 | std::string StripProto(const std::string& filename); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ protoc-c/c_bytes_field.cc: In function 'void google::protobuf::compiler::c::SetBytesVariables(const google::protobuf::FieldDescriptor*, std::map, std::__cxx11::basic_string >*)': protoc-c/c_bytes_field.cc:80:52: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 80 | "\"" + CEscape(descriptor->default_value_string()) + "\""; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_bytes_field.cc:64: ./protoc-c/c_helpers.h:88:40: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::CEscape(const string&)' 88 | std::string CEscape(const std::string& src); | ~~~~~~~~~~~~~~~~~~~^~~ 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:99:30: warning: 'google::protobuf::internal::FieldDescriptorLite::Label google::protobuf::FieldDescriptor::label() const' is deprecated: Use is_required() or is_repeated() instead. [-Wdeprecated-declarations] 99 | switch (descriptor_->label()) { | ^ In file included from ./protoc-c/c_field.h:68, from ./protoc-c/c_bytes_field.h:68, from protoc-c/c_bytes_field.cc:63: ./google/protobuf/descriptor.h:2900:31: note: declared here 2900 | inline FieldDescriptor::Label FieldDescriptor::label() const { | ^~~~~~~~~~~~~~~ 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:117:70: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 117 | vars["default_value_data"] = FullNameToLower(descriptor_->full_name(), descriptor_->file()) | ~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_bytes_field.cc:64: ./protoc-c/c_helpers.h:124:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToLower(const string&, const google::protobuf::FileDescriptor*)' 124 | std::string FullNameToLower(const std::string &full_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ 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:125:70: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 125 | vars["default_value_data"] = FullNameToLower(descriptor_->full_name(), descriptor_->file()) | ~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_bytes_field.cc:64: ./protoc-c/c_helpers.h:124:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToLower(const string&, const google::protobuf::FileDescriptor*)' 124 | std::string FullNameToLower(const std::string &full_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ protoc-c/c_bytes_field.cc:127:62: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 127 | vars["escaped"] = CEscape(descriptor_->default_value_string()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_bytes_field.cc:64: ./protoc-c/c_helpers.h:88:40: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::CEscape(const string&)' 88 | std::string CEscape(const std::string& src); | ~~~~~~~~~~~~~~~~~~~^~~ protoc-c/c_bytes_field.cc: In member function 'virtual std::string google::protobuf::compiler::c::BytesFieldGenerator::GetDefaultValue() const': protoc-c/c_bytes_field.cc:135:42: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 135 | + FullNameToLower(descriptor_->full_name(), descriptor_->file()) | ~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_bytes_field.cc:64: ./protoc-c/c_helpers.h:124:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToLower(const string&, const google::protobuf::FileDescriptor*)' 124 | std::string FullNameToLower(const std::string &full_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ 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:140:30: warning: 'google::protobuf::internal::FieldDescriptorLite::Label google::protobuf::FieldDescriptor::label() const' is deprecated: Use is_required() or is_repeated() instead. [-Wdeprecated-declarations] 140 | switch (descriptor_->label()) { | ^ In file included from ./protoc-c/c_field.h:68, from ./protoc-c/c_bytes_field.h:68, from protoc-c/c_bytes_field.cc:63: ./google/protobuf/descriptor.h:2900:31: note: declared here 2900 | inline FieldDescriptor::Label FieldDescriptor::label() const { | ^~~~~~~~~~~~~~~ protoc-c/c_helpers.cc: In function 'std::string google::protobuf::compiler::c::FieldName(const google::protobuf::FieldDescriptor*)': protoc-c/c_helpers.cc:298:43: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 298 | std::string result = ToLower(field->name()); | ~~~~~~~~~~~^~ protoc-c/c_helpers.cc:155:40: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::ToLower(const string&)' 155 | std::string ToLower(const std::string &name) { | ~~~~~~~~~~~~~~~~~~~^~~~ protoc-c/c_field.cc: In member function 'void google::protobuf::compiler::c::FieldGenerator::GenerateDescriptorInitializerGeneric(google::protobuf::io::Printer*, bool, const string&, const string&) const': protoc-c/c_field.cc:113:74: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 113 | variables["classname"] = FullNameToC(FieldScope(descriptor_)->full_name(), FieldScope(descriptor_)->file()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_field.cc:69: ./protoc-c/c_helpers.h:128:44: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToC(const string&, const google::protobuf::FileDescriptor*)' 128 | std::string FullNameToC(const std::string &class_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ protoc-c/c_field.cc:122:54: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 122 | variables["oneofname"] = CamelToLower(oneof->name()); | ~~~~~~~~~~~^~ In file included from protoc-c/c_field.cc:69: ./protoc-c/c_helpers.h:114:45: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::CamelToLower(const string&)' 114 | std::string CamelToLower(const std::string &class_name); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ protoc-c/c_field.cc:125:24: warning: 'google::protobuf::internal::FieldDescriptorLite::Label google::protobuf::FieldDescriptor::label() const' is deprecated: Use is_required() or is_repeated() instead. [-Wdeprecated-declarations] 125 | descriptor_->label() == FieldDescriptor::LABEL_OPTIONAL) { | ^ In file included from ./protoc-c/c_field.h:68, from protoc-c/c_field.cc:63: ./google/protobuf/descriptor.h:2900:31: note: declared here 2900 | inline FieldDescriptor::Label FieldDescriptor::label() const { | ^~~~~~~~~~~~~~~ protoc-c/c_field.cc:129:71: warning: 'google::protobuf::internal::FieldDescriptorLite::Label google::protobuf::FieldDescriptor::label() const' is deprecated: Use is_required() or is_repeated() instead. [-Wdeprecated-declarations] 129 | variables["LABEL"] = CamelToUpper(GetLabelName(descriptor_->label())); | ^ In file included from ./protoc-c/c_field.h:68, from protoc-c/c_field.cc:63: ./google/protobuf/descriptor.h:2900:31: note: declared here 2900 | inline FieldDescriptor::Label FieldDescriptor::label() const { | ^~~~~~~~~~~~~~~ protoc-c/c_field.cc:134:72: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 134 | + FullNameToLower(descriptor_->full_name(), descriptor_->file()) | ~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_field.cc:69: ./protoc-c/c_helpers.h:124:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToLower(const string&, const google::protobuf::FileDescriptor*)' 124 | std::string FullNameToLower(const std::string &full_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ protoc-c/c_field.cc:145:26: warning: 'google::protobuf::internal::FieldDescriptorLite::Label google::protobuf::FieldDescriptor::label() const' is deprecated: Use is_required() or is_repeated() instead. [-Wdeprecated-declarations] 145 | if (descriptor_->label() == FieldDescriptor::LABEL_REPEATED | ^ In file included from ./protoc-c/c_field.h:68, from protoc-c/c_field.cc:63: ./google/protobuf/descriptor.h:2900:31: note: declared here 2900 | inline FieldDescriptor::Label FieldDescriptor::label() const { | ^~~~~~~~~~~~~~~ protoc-c/c_field.cc:149:33: warning: 'google::protobuf::internal::FieldDescriptorLite::Label google::protobuf::FieldDescriptor::label() const' is deprecated: Use is_required() or is_repeated() instead. [-Wdeprecated-declarations] 149 | } else if (descriptor_->label() == FieldDescriptor::LABEL_REPEATED | ^ In file included from ./protoc-c/c_field.h:68, from protoc-c/c_field.cc:63: ./google/protobuf/descriptor.h:2900:31: note: declared here 2900 | inline FieldDescriptor::Label FieldDescriptor::label() const { | ^~~~~~~~~~~~~~~ protoc-c/c_field.cc:179:30: warning: 'google::protobuf::internal::FieldDescriptorLite::Label google::protobuf::FieldDescriptor::label() const' is deprecated: Use is_required() or is_repeated() instead. [-Wdeprecated-declarations] 179 | switch (descriptor_->label()) { | ^ In file included from ./protoc-c/c_field.h:68, from protoc-c/c_field.cc:63: ./google/protobuf/descriptor.h:2900:31: note: declared here 2900 | inline FieldDescriptor::Label FieldDescriptor::label() const { | ^~~~~~~~~~~~~~~ protoc-c/c_enum_field.cc: In function 'void google::protobuf::compiler::c::SetEnumVariables(const google::protobuf::FieldDescriptor*, std::map, std::__cxx11::basic_string >*)': protoc-c/c_enum_field.cc:81:72: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 81 | (*variables)["type"] = FullNameToC(descriptor->enum_type()->full_name(), descriptor->enum_type()->file()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_enum_field.cc:64: ./protoc-c/c_helpers.h:128:44: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToC(const string&, const google::protobuf::FileDescriptor*)' 128 | std::string FullNameToC(const std::string &class_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ protoc-c/c_enum_field.cc:83:77: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 83 | (*variables)["default"] = FullNameToUpper(default_value->type()->full_name(), default_value->type()->file()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_enum_field.cc:64: ./protoc-c/c_helpers.h:125:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToUpper(const string&, const google::protobuf::FileDescriptor*)' 125 | std::string FullNameToUpper(const std::string &full_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ 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:101:30: warning: 'google::protobuf::internal::FieldDescriptorLite::Label google::protobuf::FieldDescriptor::label() const' is deprecated: Use is_required() or is_repeated() instead. [-Wdeprecated-declarations] 101 | switch (descriptor_->label()) { | ^ In file included from ./protoc-c/c_field.h:68, from ./protoc-c/c_enum_field.h:68, from protoc-c/c_enum_field.cc:63: ./google/protobuf/descriptor.h:2900:31: note: declared here 2900 | inline FieldDescriptor::Label FieldDescriptor::label() const { | ^~~~~~~~~~~~~~~ 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:123:30: warning: 'google::protobuf::internal::FieldDescriptorLite::Label google::protobuf::FieldDescriptor::label() const' is deprecated: Use is_required() or is_repeated() instead. [-Wdeprecated-declarations] 123 | switch (descriptor_->label()) { | ^ In file included from ./protoc-c/c_field.h:68, from ./protoc-c/c_enum_field.h:68, from protoc-c/c_enum_field.cc:63: ./google/protobuf/descriptor.h:2900:31: note: declared here 2900 | inline FieldDescriptor::Label FieldDescriptor::label() const { | ^~~~~~~~~~~~~~~ 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:79: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 141 | std::string addr = "&" + FullNameToLower(descriptor_->enum_type()->full_name(), descriptor_->enum_type()->file()) + "__descriptor"; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from protoc-c/c_enum_field.cc:64: ./protoc-c/c_helpers.h:124:48: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::FullNameToLower(const string&, const google::protobuf::FileDescriptor*)' 124 | std::string FullNameToLower(const std::string &full_name, const FileDescriptor *file); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ protoc-c/c_generator.cc: In member function 'virtual bool google::protobuf::compiler::c::CGenerator::Generate(const google::protobuf::FileDescriptor*, const string&, google::protobuf::compiler::OutputDirectory*, std::string*) const': protoc-c/c_generator.cc:149:47: error: invalid initialization of reference of type 'const string&' {aka 'const std::__cxx11::basic_string&'} from expression of type 'absl::lts_20250512::string_view' {aka 'std::basic_string_view'} 149 | std::string basename = StripProto(file->name()); | ~~~~~~~~~~^~ In file included from protoc-c/c_generator.cc:70: ./protoc-c/c_helpers.h:137:43: note: in passing argument 1 of 'std::string google::protobuf::compiler::c::StripProto(const string&)' 137 | std::string StripProto(const std::string& filename); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ gmake: *** [Makefile:1577: protoc-c/protoc_gen_c-c_enum.o] Error 1 gmake: *** Waiting for unfinished jobs.... gmake: *** [Makefile:1563: protoc-c/protoc_gen_c-c_bytes_field.o] Error 1 gmake: *** [Makefile:1633: protoc-c/protoc_gen_c-c_file.o] Error 1 gmake: *** [Makefile:1661: protoc-c/protoc_gen_c-c_helpers.o] Error 1 gmake: *** [Makefile:1647: protoc-c/protoc_gen_c-c_generator.o] Error 1 gmake: *** [Makefile:1619: protoc-c/protoc_gen_c-c_field.o] Error 1 gmake: *** [Makefile:1591: protoc-c/protoc_gen_c-c_enum_field.o] Error 1 *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/devel/protobuf-c *** Error code 1 Stop. make: stopped in /usr/pkgsrc/devel/protobuf-c