hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Castain (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-4866) Protocol buffer support cannot compile under C
Date Thu, 30 May 2013 14:21:20 GMT

     [ https://issues.apache.org/jira/browse/HDFS-4866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Ralph Castain updated HDFS-4866:

    Attachment: pcreate.pl

For ease or reproducing the problem, I've attached a perl script that cycles across the Hadoop
tree and compiles all the .proto files using protobuf-c. This script is executed in the top-level
directory and just takes --prefix=<dir-for-output> as its argument.
> Protocol buffer support cannot compile under C
> ----------------------------------------------
>                 Key: HDFS-4866
>                 URL: https://issues.apache.org/jira/browse/HDFS-4866
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.0.4-alpha
>            Reporter: Ralph Castain
>         Attachments: NamenodeProtocol.pb-c.c, NamenodeProtocol.pb-c.h, pcreate.pl
> When compiling Hadoop's .proto descriptions for use in C, an error occurs because one
of the RPC's in NamenodeProtocol.proto is named "register". This name is a reserved word in
languages such as C. When using the Java and C++ languages, the name is hidden inside a class
and therefore doesn't cause an error. Unfortunately, that is not the case in non-class languages
such as C.
> Note: generating the C translation of the .proto files requires installation of the protobuf-c
package from google:
> http://code.google.com/p/protobuf-c/

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message