Source: protobuf
Version: 2.6.1-2
Severity: important
Justification: fails to build from source (but built successfully in the past)

The hurd-i386 build of protobuf failed:

  google/protobuf/compiler/command_line_interface.cc: In function 'bool 
google::protobuf::compiler::{anonymous}::GetProtocAbsolutePath(std::__cxx11::string*)':
  google/protobuf/compiler/command_line_interface.cc:209:15: error: 'PATH_MAX' 
was not declared in this scope
     char buffer[PATH_MAX];
                 ^~~~~~~~
  google/protobuf/compiler/command_line_interface.cc:210:40: error: 'buffer' 
was not declared in this scope
     int len = readlink("/proc/self/exe", buffer, PATH_MAX);
                                          ^~~~~~
  Makefile:3880: recipe for target 
'google/protobuf/compiler/command_line_interface.lo' failed

Please rework this code either to use sysconf(_SC_PATH_MAX) or to fall
back to a hardcoded default value; IIRC, 4096 is traditional in the
latter case.

Thanks!

Reply via email to