hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anatoli Shein (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HDFS-12237) libhdfs++: PROTOC_IS_COMPATIBLE check fails if protobuf library is built from source
Date Mon, 07 Aug 2017 15:25:00 GMT

    [ https://issues.apache.org/jira/browse/HDFS-12237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16116731#comment-16116731
] 

Anatoli Shein edited comment on HDFS-12237 at 8/7/17 3:24 PM:
--------------------------------------------------------------

Added a test to check if protobuf library exists (searches for 
{code}
google::protobuf::compiler::Parser::Parser()
{code}
in the protobuf library).

Also added
{code}
set (CMAKE_REQUIRED_INCLUDES ${PROTOBUF_INCLUDE_DIRS})
{code}
to resolve errors when protobuf library is placed in the uncommon location.


was (Author: anatoli.shein):
Added a test to check if protobuf library exists (searches for 
{code}
google::protobuf::compiler::Parser::Parser()
{code}
in the protobuf library).

Also added set
{code}
(CMAKE_REQUIRED_INCLUDES ${PROTOBUF_INCLUDE_DIRS})
{code}
to resolve errors when protobuf library is placed in the uncommon location.

> libhdfs++: PROTOC_IS_COMPATIBLE check fails if protobuf library is built from source
> ------------------------------------------------------------------------------------
>
>                 Key: HDFS-12237
>                 URL: https://issues.apache.org/jira/browse/HDFS-12237
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>            Reporter: Anatoli Shein
>            Assignee: Anatoli Shein
>         Attachments: HDFS-12237.HDFS-8707.000.patch
>
>
> Looks like the PROTOC_IS_COMPATIBLE check fails when Protobuf library is built from source.
This happens because the check if performed during the cmake phase, and the protobuf library
needed for this test is build from source only during the make phase, so the check fails with
"ld: cannot find -lprotobuf" because it was not built yet. We should probably restrict this
test to run only in cases when Protobuf library is already present and not being built from
source.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message