Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5828

[C++] Add Protocol Buffers version check

    Details

      Description

      If we use old Protocol Buffers, bundled gRPC reports build error:

      https://lists.apache.org/thread.html/10f8c4d2372638c57c3a956180b2fa3bbd036a27d79eb2eb7b9ffe76@%3Cdev.arrow.apache.org%3E

        /tmp/arrow-0.14.0.dJDu3/apache-arrow-0.14.0/cpp/build/grpc_ep-prefix/src/grpc_ep/src/compiler/php_generator.cc:21:10:
      fatal error: google/protobuf/compiler/php/php_generator.h: No such
      file or directory
         #include <google/protobuf/compiler/php/php_generator.h>
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        compilation terminated.
        make[5]: *** [CMakeFiles/grpc_plugin_support.dir/src/compiler/php_generator.cc.o]
      Error 1
        make[5]: *** Waiting for unfinished jobs....
        /tmp/arrow-0.14.0.dJDu3/apache-arrow-0.14.0/cpp/build/grpc_ep-prefix/src/grpc_ep/src/compiler/ruby_generator.cc:
      In function ‘grpc::string grpc_ruby_generator::GetServices(const
      FileDescriptor*)’:
        /tmp/arrow-0.14.0.dJDu3/apache-arrow-0.14.0/cpp/build/grpc_ep-prefix/src/grpc_ep/src/compiler/ruby_generator.cc:165:25:
      error: ‘const class google::protobuf::FileOptions’ has no member named
      ‘has_ruby_package’; did you mean ‘has_java_package’?
             if (file->options().has_ruby_package()) {
                                 ^~~~~~~~~~~~~~~~
                                 has_java_package
        /tmp/arrow-0.14.0.dJDu3/apache-arrow-0.14.0/cpp/build/grpc_ep-prefix/src/grpc_ep/src/compiler/ruby_generator.cc:166:38:
      error: ‘const class google::protobuf::FileOptions’ has no member named
      ‘ruby_package’; did you mean ‘java_package’?
               package_name = file->options().ruby_package();
                                              ^~~~~~~~~~~~
                                              java_package
        make[5]: *** [CMakeFiles/grpc_plugin_support.dir/src/compiler/ruby_generator.cc.o]
      Error 1
        make[4]: *** [CMakeFiles/grpc_plugin_support.dir/all] Error 2
        make[4]: *** Waiting for unfinished jobs....
        make[3]: *** [all] Error 2
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kou Sutou Kouhei
                Reporter:
                kou Sutou Kouhei
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m